Skip to content

Commit

Permalink
Fix NewInstallOpts
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidaguerre committed May 10, 2024
1 parent efb2df0 commit ddc2cc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/initialisation/init_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ func (i *InitData[T]) Init(ctx context.Context, args ...string) {
if viper.GetBool(constants.ArgModInstall) {
statushooks.SetStatus(ctx, "Installing workspace dependencies")
slog.Info("Installing workspace dependencies")
opts := modinstaller.NewInstallOpts(i.Workspace.Mod)
// arg pull should always be set (to a default at least) if ArgModInstall is set
updateStrategy := viper.GetString(constants.ArgPull)
opts := modinstaller.NewInstallOpts(i.Workspace.Mod, updateStrategy)
opts.UpdateStrategy = viper.GetString(constants.ArgPull)
// use force install so that errors are ignored during installation
// (we are validating prereqs later)
opts.Force = true
Expand Down

0 comments on commit ddc2cc7

Please # to comment.