remove hardcoded stdlib path
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
@@ -399,7 +399,7 @@ func VendorUniverse(ctx context.Context, p string) error {
|
||||
// add universe and lock file to `.gitignore`
|
||||
if err := os.WriteFile(
|
||||
path.Join(p, "cue.mod", "pkg", ".gitignore"),
|
||||
[]byte(fmt.Sprintf("# generated by dagger\n%s\ndagger.lock\n", stdlib.PackageName)),
|
||||
[]byte(fmt.Sprintf("# generated by dagger\n%s\ndagger.lock\n", stdlib.ModuleName)),
|
||||
0600,
|
||||
); err != nil {
|
||||
return err
|
||||
@@ -408,7 +408,7 @@ func VendorUniverse(ctx context.Context, p string) error {
|
||||
log.Ctx(ctx).Debug().Str("mod", p).Msg("vendoring universe")
|
||||
if err := stdlib.Vendor(ctx, p); err != nil {
|
||||
// FIXME(samalba): disabled install remote stdlib temporarily
|
||||
// if _, err := mod.Install(ctx, p, "alpha.dagger.io", ""); err != nil {
|
||||
// if _, err := mod.Install(ctx, p, stdlib.ModuleName, ""); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user