From 5d832a15e8f121345c5beb29eba1a097e7b68874 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Thu, 13 Jan 2022 14:36:49 -0800 Subject: [PATCH] vendoring: .gitignore universe.dagger.io Signed-off-by: Andrea Luzzardi --- pkg/pkg.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/pkg.go b/pkg/pkg.go index 44ec4238..c3dd2330 100644 --- a/pkg/pkg.go +++ b/pkg/pkg.go @@ -9,6 +9,7 @@ import ( "os" "path" "path/filepath" + "strings" "github.com/gofrs/flock" "github.com/rs/zerolog/log" @@ -65,7 +66,7 @@ func Vendor(ctx context.Context, p string) error { // generate `.gitignore` if err := os.WriteFile( path.Join(cuePkgDir, ".gitignore"), - []byte(fmt.Sprintf("# generated by dagger\n%s\n%s\ndagger.lock\n", AlphaModule, DaggerModule)), + []byte(fmt.Sprintf("# generated by dagger\ndagger.lock\n%s", strings.Join(modules, "\n"))), 0600, ); err != nil { return err