Skip to content

[update] Fix update bug #1108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 7, 2023
Merged

[update] Fix update bug #1108

merged 3 commits into from
Jun 7, 2023

Conversation

mikeland73
Copy link
Contributor

Summary

Calling removePackagesFromProfile after forcing a resolve was causing an error because package doesn't exist in profile. Also, make update a little more forgiving, don't break if you can't remove pkg from profile.

How was it tested?

  • Hand changed devbox.lock to older version of go and older hash.
  • deleted .devbox dir
  • Ran devbox install
  • Ran devbox update
  • Observed new version of go installed, old one removed. No error.

@mikeland73 mikeland73 requested review from gcurtis and savil June 6, 2023 21:33
@mikeland73 mikeland73 merged commit 1cc79b0 into main Jun 7, 2023
@mikeland73 mikeland73 deleted the landau/fix-update-bug branch June 7, 2023 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants