-
Notifications
You must be signed in to change notification settings - Fork 178
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
Unexpected behavior change from pixi v.0.18 to v0.19 for github pypi dependencies #1157
Comments
He quick reply from my phone, this was actually a fix in v0.19.0, your lockfile is probably incorrect because it misses |
Running |
Thanks @ruben-arts I take it #1148 is the fix you are referring to. I wonder if you would help clarify some things. If we update the lockfile as you suggest, will the setup-pixi action fail (as it does now) whenever a github dependency is found to be out of date? Do we need to set How would you suggest proceeding if we don't want to lock github dependencies? Historically we have elected to depend on github branches for projects which are developed more or less in lockstep with MODFLOW 6. Is there a post-install hook or some way to install them on |
That is indeed the fix. I'm not sure why the GitHub repos would trigger the invalid lockfile. I'll have to look into that, as we don't check if the revisions in the lockfile are up-to-date in the We implemented the same behavior as |
I think something is going wrong, haven't figured out what but with running
We are investigating further. |
It's a bigger problem with missing packages from the new pypi mapping, we are trying to fix this now. |
The current issue is that our map is out of date with |
We fixed the map. Locally I get the correct versions for modflow6. However, you need to regenerate the whole lock file once, sorry about that. |
Thanks, @tdejager. I've already regenerated it with pixi 0.19 and that seems to work fine. Or should I regenerate it with 0.18 to be sure? |
Would be good to see if there is now a difference between the two pixi versions, so if you could share that, that would be nice! @Hofer-Julian |
I ran the following:
The lockfiles differ and that's how they look like: |
Yeah, okay that's looking good, so the new lock file is only including the pypi source dependencies, which is what you want to achieve: - pypi: git+https://github.com/modflowpy/flopy.git@9e87acddcf0740aac491826ef86fd45ae2304dac
- pypi: git+https://github.com/MODFLOW-USGS/modflow-devtools.git@08eff72b73da66541f7a08ddf398298210ce3758
- pypi: git+https://github.com/MODFLOW-USGS/modflowapi.git@0c632e511fb54068d14dcdff44c572ccb6e8831f The rest is conda so this seems to be working. Also the |
Close as fixed |
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.Reproducible example
Issue description
We have recently switched our MODFLOW continuous integration approach to use pixi. We had it set up and working with pixi version 0.18 and things were working well. Our CI workflow started failing today in response to a change introduced to version 0.19. This is the error message we see:
The problem stems from the use of github pypi dependencies in our
pixi.toml
file.The pypi dependency hashes in
pixi.lock
are not up to date. Runningpixi install --locked
with 0.18 succeeds, andpixi install
does not update locked hashes. With 0.19,pixi install --locked
fails with the error message above, andpixi install
updates the hashes.It's unclear to us why pixi 0.19 is issuing the "lock-file not up-to-date with the project", whereas pixi 0.18 did not. I'm working on this with @wpbonelli and @Hofer-Julian.
Expected behavior
pixi version 0.19 should behave the same as 0.18 w.r.t. github pypi dependencies.
The text was updated successfully, but these errors were encountered: