Merge pull request #1420 from aluzzardi/gitignore-universe
vendoring: .gitignore universe.dagger.io
This commit is contained in:
commit
6adc80ee61
@ -9,6 +9,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/gofrs/flock"
|
"github.com/gofrs/flock"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
@ -65,7 +66,7 @@ func Vendor(ctx context.Context, p string) error {
|
|||||||
// generate `.gitignore`
|
// generate `.gitignore`
|
||||||
if err := os.WriteFile(
|
if err := os.WriteFile(
|
||||||
path.Join(cuePkgDir, ".gitignore"),
|
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,
|
0600,
|
||||||
); err != nil {
|
); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Reference in New Issue
Block a user