-
Notifications
You must be signed in to change notification settings - Fork 62
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
flox upgrade
reports no packages upgraded with catalog even though they are
#1485
Comments
## Proposed Changes <!-- Describe the changes proposed in this pull request. --> <!-- Please provide links to any issue(s) which are expected to be resolved. --> Makes copies of `flox upgrade` tests for use with catalog service. All tests are skipped for now due to #1485. Anything not in `upgrade.bats` was added for debugging or to fix a bug in dumping catalog responses. ## Release Notes <!-- Describe any user facing changes. Use "N/A" if not applicable. --> N/A <!-- Many thanks! -->
As part of this ticket, we should unskip the tests added in #1488 |
I'm not able to reproduce this using the original instructions:
Removing the version constraint on an existing package also works:
Although it says that it's upgraded every time, even when there are no changes to the lock:
|
Ahh, I see a difference between what's happening above and the commented tests. The "old_hello" fixture also modifies the
It will still require some work to:
|
when using the catalog the diff is calculated after locking the manifest here: flox/cli/flox-rust-sdk/src/models/environment/core_environment.rs Lines 659 to 671 in 6474bf7
in particular the current predicate for a package to count as "upgraded" is a change of its Also it's hard to call the lockfile "upgraded" when wrt a single package both revisions are indeed equivalent. IMO the missing message is "New lockfile written, no package upgraded" if we do write a lockfile. Saying " |
Steps to reproduce:
hello
and dump the responserev_count
from the response to make the package look "old"FLOX_FEATURES_USE_CATALOG=true flox upgrade
From discussion:
There's two issues
The text was updated successfully, but these errors were encountered: