-
Notifications
You must be signed in to change notification settings - Fork 102
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
Assertion error: self.metadata.channels == other.metadata.channels when updating lockfile with added channels #283
Comments
Channel addition can ONLY be additive on the top. In this case you should just delete your existing lockfile and relock with the new channels |
Given things like this and #196, how would you feel about by default regenerating the lockfile from scratch. I don't have experience with other lockfile systems, but I find it very unintuitive that lockfiles are stateful. |
The fact that there is additive behavior is also not clear from the readme or command line options. In fact, it only talks about using this option to supply a different output filename (and this is what I was looking for). (Also, it generally seems to be discouraged to use |
But this is what happened here. It seems to me that any channel modification is vetoed by the assert statement. Or perhaps I misunderstood you? |
Edit: This only happens when running with the
--lockfile
option. It seems to be a bug that is triggered when updating a lock file that doesn't contain a new channel yet.Workaround: Delete lock file and run without
--lockfile
optionWhat I ran:
Output:
The file
default.yml
:Additional information using
conda-lock --pdb
:The text was updated successfully, but these errors were encountered: