Skip to content
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

Fix documentation regarding relocking #645

Closed
maresb opened this issue Jun 9, 2024 · 6 comments · Fixed by #647
Closed

Fix documentation regarding relocking #645

maresb opened this issue Jun 9, 2024 · 6 comments · Fixed by #647

Comments

@maresb
Copy link
Contributor

maresb commented Jun 9, 2024

It seems that part of #632 doesn't accurately reflect the current behavior of how existing lockfiles are used when relocking.

#632 (comment)

@sfinkens
Copy link
Contributor

As far as I can tell, there's currently no direct way to add a new package while keeping the rest fixed. Right? So I would just remove that section.

@maresb
Copy link
Contributor Author

maresb commented Jun 12, 2024

I think it's possible by adding the new package to environment.yml and then run conda-lock --update newpackage, though I haven't tested it.

Unfortunately --update is pretty broken at the moment due to #639. 🙈

@sfinkens
Copy link
Contributor

I think it's possible by adding the new package to environment.yml and then run conda-lock --update newpackage, though I haven't tested it.

That works, but also updates all the existing packages. Same without --update

@maresb
Copy link
Contributor Author

maresb commented Jun 12, 2024

Is it actually updating the existing packages or is it merely clobbering the extensions?

@sfinkens
Copy link
Contributor

I'm not sure I understand what you mean by clobbering extensions. But I think it's updating. For example, I have numpy=1.25 in the lockfile, then add pandas to the environment file and run conda-lock again. After that I have numpy=1.26 in the lockfile.

@maresb
Copy link
Contributor Author

maresb commented Jun 12, 2024

Ah, thanks for the clarification, I guess it is updating the existing packages. (By "clobbering extensions" I meant replacing all .conda builds with .tar.bz2.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants