Skip to content

Commit

Permalink
Update prime based on selected project
Browse files Browse the repository at this point in the history
  • Loading branch information
Naatan committed Jun 10, 2024
1 parent 4a06398 commit 2fae362
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/runners/refresh/refresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 2 additions & 0 deletions internal/runners/shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2fae362

Please sign in to comment.