diff --git a/core/apt.go b/core/apt.go index a403fea..72c374a 100644 --- a/core/apt.go +++ b/core/apt.go @@ -17,7 +17,7 @@ func BuildAptModule(recipe *Recipe, module Module) (string, error) { packages += pkg + " " } - return fmt.Sprintf("apt install -y %s", packages), nil + return fmt.Sprintf("apt install -y %s && apt clean", packages), nil } if len(module.Source.Paths) > 0 { @@ -45,6 +45,8 @@ func BuildAptModule(recipe *Recipe, module Module) (string, error) { if i != len(module.Source.Paths)-1 { cmd += "&& " + } else { + cmd += "&& apt clean" } } diff --git a/main.go b/main.go index 52b1927..059c8dc 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,7 @@ import ( ) var ( - Version = "0.2.8" + Version = "0.2.9" ) func main() {