Skip to content

Commit

Permalink
fix: Update apt commands to use apt-get
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdaclan authored and kbdharun committed Jun 18, 2024
1 parent 8e6b4ae commit eeee0f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/apt.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package main

import (
"C"
"bufio"
"encoding/json"
"fmt"
"os"
"path/filepath"

"C"

"github.com/vanilla-os/vib/api"
)
import "encoding/json"

type AptModule struct {
Name string `json:"name"`
Expand Down Expand Up @@ -63,7 +64,7 @@ func BuildModule(moduleInterface *C.char, recipeInterface *C.char) *C.char {
packages += pkg + " "
}

return C.CString(fmt.Sprintf("apt install -y %s %s && apt clean", args, packages))
return C.CString(fmt.Sprintf("apt-get install -y %s %s && apt-get clean", args, packages))
}

if len(module.Source.Paths) > 0 {
Expand Down Expand Up @@ -103,4 +104,3 @@ func BuildModule(moduleInterface *C.char, recipeInterface *C.char) *C.char {
}

func main() {}

0 comments on commit eeee0f6

Please sign in to comment.