vendoring: .gitignore universe.dagger.io
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
2f92d8db4e
commit
5d832a15e8
@ -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
|
||||
|
Reference in New Issue
Block a user