diff --git a/internal/locale/locales/en-us.yaml b/internal/locale/locales/en-us.yaml index c33b900cad..50558aa40b 100644 --- a/internal/locale/locales/en-us.yaml +++ b/internal/locale/locales/en-us.yaml @@ -1448,6 +1448,9 @@ err_packages_update_runtime_init: other: Could not initialize runtime. pkg_already_uptodate: other: Dependencies for your project are already configured and installed. +notice_async_runtime: + other: | + [WARNING]Warning:[/RESET] Skipping runtime sourcing since {{.V0}} is enabled. Please run '[ACTIONABLE]state refresh[/RESET]' to manually source the runtime. install_runtime: other: Sourcing Runtime install_runtime_info: @@ -1541,7 +1544,7 @@ err_uninstall_platform_nomatch: err_uninstall_platform_multimatch: other: | The platform query you provided matches multiple platforms in your project. - Please specify the platform to uninstall by using its version and bit-width. + Please specify the platform to uninstall by using its version and bit-width. To view the platforms your project uses run: [ACTIONABLE]state platforms[/RESET]. progress_requirements: other: "• Updating requirements" diff --git a/internal/runbits/reqop_runbit/update.go b/internal/runbits/reqop_runbit/update.go index 99333a0a90..350aaddbff 100644 --- a/internal/runbits/reqop_runbit/update.go +++ b/internal/runbits/reqop_runbit/update.go @@ -108,6 +108,9 @@ func UpdateAndReload(prime primeable, script *buildscript.BuildScript, oldCommit } return errs.Wrap(err, "Failed to refresh runtime") } + } else { + prime.Output().Notice("") // blank line + prime.Output().Notice(locale.Tr("notice_async_runtime", constants.AsyncRuntimeConfig)) } // Update commit ID diff --git a/internal/runbits/runtime/runtime.go b/internal/runbits/runtime/runtime.go index a872b8bd47..7cea9664f0 100644 --- a/internal/runbits/runtime/runtime.go +++ b/internal/runbits/runtime/runtime.go @@ -225,6 +225,8 @@ func Update( // any errors regarding solves, buildscripts, etc. if prime.Config().GetBool(constants.AsyncRuntimeConfig) && !opts.IgnoreAsync { logging.Debug("Skipping runtime update due to async runtime") + prime.Output().Notice("") // blank line + prime.Output().Notice(locale.Tr("notice_async_runtime", constants.AsyncRuntimeConfig)) return rt, nil } diff --git a/internal/runners/exec/exec.go b/internal/runners/exec/exec.go index 038d1354a9..6ddca60d0a 100644 --- a/internal/runners/exec/exec.go +++ b/internal/runners/exec/exec.go @@ -126,7 +126,7 @@ func (s *Exec) Run(params *Params, args ...string) (rerr error) { s.out.Notice(locale.Tr("operating_message", projectNamespace, projectDir)) - rt, err := runtime_runbit.Update(s.prime, trigger, runtime_runbit.WithoutHeaders(), runtime_runbit.WithIgnoreAsync()) + rt, err := runtime_runbit.Update(s.prime, trigger, runtime_runbit.WithoutHeaders()) if err != nil { return errs.Wrap(err, "Could not initialize runtime") } diff --git a/internal/runners/shell/shell.go b/internal/runners/shell/shell.go index 3c469ddb8d..43cc179806 100644 --- a/internal/runners/shell/shell.go +++ b/internal/runners/shell/shell.go @@ -93,7 +93,7 @@ func (u *Shell) Run(params *Params) error { return locale.NewInputError("err_shell_commit_id_mismatch") } - rti, err := runtime_runbit.Update(u.prime, trigger.TriggerShell, runtime_runbit.WithoutHeaders(), runtime_runbit.WithIgnoreAsync()) + rti, err := runtime_runbit.Update(u.prime, trigger.TriggerShell, runtime_runbit.WithoutHeaders()) if err != nil { return locale.WrapExternalError(err, "err_shell_runtime_new", "Could not start a shell/prompt for this project.") } diff --git a/internal/runners/use/use.go b/internal/runners/use/use.go index 821d53bf02..1169a16deb 100644 --- a/internal/runners/use/use.go +++ b/internal/runners/use/use.go @@ -90,7 +90,7 @@ func (u *Use) Run(params *Params) error { return locale.NewInputError("err_use_commit_id_mismatch") } - rti, err := runtime_runbit.Update(u.prime, trigger.TriggerUse, runtime_runbit.WithoutHeaders(), runtime_runbit.WithIgnoreAsync()) + rti, err := runtime_runbit.Update(u.prime, trigger.TriggerUse, runtime_runbit.WithoutHeaders()) if err != nil { return locale.WrapError(err, "err_use_runtime_new", "Cannot use this project.") } diff --git a/internal/scriptrun/scriptrun.go b/internal/scriptrun/scriptrun.go index 1671fca444..12f94c17c9 100644 --- a/internal/scriptrun/scriptrun.go +++ b/internal/scriptrun/scriptrun.go @@ -82,7 +82,7 @@ func (s *ScriptRun) NeedsActivation() bool { // PrepareVirtualEnv sets up the relevant runtime and prepares the environment. func (s *ScriptRun) PrepareVirtualEnv() (rerr error) { - rt, err := runtime_runbit.Update(s.prime, trigger.TriggerScript, runtime_runbit.WithoutHeaders(), runtime_runbit.WithIgnoreAsync()) + rt, err := runtime_runbit.Update(s.prime, trigger.TriggerScript, runtime_runbit.WithoutHeaders()) if err != nil { return locale.WrapError(err, "err_activate_runtime", "Could not initialize a runtime for this project.") }