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

nimble reevaluates every package in nimble dir #1331

Open
SolitudeSF opened this issue Jan 13, 2025 · 5 comments
Open

nimble reevaluates every package in nimble dir #1331

SolitudeSF opened this issue Jan 13, 2025 · 5 comments

Comments

@SolitudeSF
Copy link
Contributor

nimble reevaluates every package in nimble dir. if your global nimble dir is polluted, it makes a simple nimble build take multiple minutes to run.

@jmgomez
Copy link
Collaborator

jmgomez commented Jan 14, 2025

Is this specific to solver:sat or it does take a similar amount of time when using solver:legacy?
Thanks

@SolitudeSF
Copy link
Contributor Author

with solver:legacy it evaluates much less packages, but still more than required. for my package with single dependency and no transitive dependencies, it still for some reason evaluated 4 additional completely unrelated packages.

@jmgomez
Copy link
Collaborator

jmgomez commented Jan 14, 2025

The issue is mostly that it is slow to evaluate the packages, but sat does need to go over them upfront. We are going to make it faster soon. In the meantime, you may benefit from using local which will be the new default soon.

@SolitudeSF
Copy link
Contributor Author

is package cache supposed to be stored in tmp? issue would also not be present, if it used persistent cache location, so nimble didn't need to reevaluate everythign after every reboot, but i have no clue, if package cache is supposed to be invalidated regularly.

@jmgomez
Copy link
Collaborator

jmgomez commented Jan 14, 2025

is package cache supposed to be stored in tmp?

Only for the legacy solver and in some edge cases. There is a pkgcache folder but thats orthogonal to the reason of why it takes that long. We cant cache sat just yet as the way nimble requires works today isnt deterministic with a cache in front. But we are aiming into that direction

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

No branches or pull requests

2 participants