state: force use of stdlib embed - temporarily until universe repo is ready

Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
This commit is contained in:
Sam Alba 2021-10-22 15:41:14 -07:00
parent 5e6d1261f7
commit 994a8034c5

View File

@ -12,7 +12,6 @@ import (
"github.com/rs/zerolog/log"
"go.dagger.io/dagger/keychain"
"go.dagger.io/dagger/mod"
"go.dagger.io/dagger/stdlib"
"gopkg.in/yaml.v3"
)
@ -397,7 +396,9 @@ func vendorUniverse(ctx context.Context, p string) error {
}
log.Ctx(ctx).Debug().Str("mod", p).Msg("vendoring universe")
if _, err := mod.Install(ctx, p, "alpha.dagger.io", ""); err != nil {
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 {
return err
}