From 2fae362cf65486d38b69a2864ae952d33bbe62d8 Mon Sep 17 00:00:00 2001 From: Nathan Rijksen Date: Mon, 10 Jun 2024 15:27:58 -0700 Subject: [PATCH] Update prime based on selected project --- internal/runners/refresh/refresh.go | 2 ++ internal/runners/shell/shell.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/internal/runners/refresh/refresh.go b/internal/runners/refresh/refresh.go index 3817921d23..1bbe1b1022 100644 --- a/internal/runners/refresh/refresh.go +++ b/internal/runners/refresh/refresh.go @@ -70,6 +70,8 @@ func (r *Refresh) Run(params *Params) error { return rationalize.ErrNoProject } + r.prime.SetProject(proj) + needsUpdate, err := runtime_helpers.NeedsUpdate(proj, nil) if err != nil { return errs.Wrap(err, "could not determine if runtime needs update") diff --git a/internal/runners/shell/shell.go b/internal/runners/shell/shell.go index 0426c173fc..134081b518 100644 --- a/internal/runners/shell/shell.go +++ b/internal/runners/shell/shell.go @@ -80,6 +80,8 @@ func (u *Shell) Run(params *Params) error { return locale.WrapError(err, "err_shell_cannot_load_project") } + u.prime.SetProject(proj) + commitID, err := localcommit.Get(proj.Dir()) if err != nil { return errs.Wrap(err, "Unable to get local commit")