From 85629a2b7b715f45d5ed96376159bce22a99b4b3 Mon Sep 17 00:00:00 2001 From: Ira Limitanei Date: Tue, 18 Jun 2024 11:56:39 +0900 Subject: [PATCH 1/2] fix: Adjust package name to match directory name --- core/shell.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/shell.go b/core/shell.go index d8abd0d..c4f03aa 100644 --- a/core/shell.go +++ b/core/shell.go @@ -1,9 +1,8 @@ -package main +package core import ( "errors" "strings" - "fmt" "github.com/mitchellh/mapstructure" "github.com/vanilla-os/vib/api" From 99cac0087bdb243255b17fe532b09e13f9cc412b Mon Sep 17 00:00:00 2001 From: Ira Limitanei Date: Tue, 18 Jun 2024 11:58:58 +0900 Subject: [PATCH 2/2] fix: Update apt commands to use apt-get --- plugins/apt.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/apt.go b/plugins/apt.go index f470cbb..f908bd7 100644 --- a/plugins/apt.go +++ b/plugins/apt.go @@ -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"` @@ -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 { @@ -103,4 +104,3 @@ func BuildModule(moduleInterface *C.char, recipeInterface *C.char) *C.char { } func main() {} -