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

NixOS download on every startup #1250

Open
yanneckb opened this issue Jun 4, 2024 · 3 comments
Open

NixOS download on every startup #1250

yanneckb opened this issue Jun 4, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@yanneckb
Copy link

yanneckb commented Jun 4, 2024

Hello,
we have some shopware projects running with devenv. Everytime I start the project and the shell is builded with devenv up or devenv shell it downloads the nixOS Package and it takes veeery long
[2.0/40.9 MiB DL] downloading 'https://github.com/NixOS/nixpkgs/archive/4a4ecb0ab415c9fccfb005567a215e6a9564cdf5.tar.gz'
I've followed the setup instructions from shopware (https://developer.shopware.com/docs/guides/installation/devenv.html#devenv)
Does anyone have an idea why devenv is downloading the package every time and why the download is so slow?

Greetings
Yanneck

@yanneckb yanneckb added the bug Something isn't working label Jun 4, 2024
@shyim
Copy link
Contributor

shyim commented Jun 9, 2024

Why it is slow is related to NixOS/nix#10683, feel free to add a like there.

@yamin-oanda
Copy link

I am seeing this as well:

$ devenv shell
• Building shell ...
• Using Cachix: nixpkgs-python, devenv
✔ Building shell in 6.3s.
• Entering shell
[9.7/42.1 MiB DL] downloading 'https://github.com/NixOS/nixpkgs/archive/a14c5d651cee9ed70f9cd9e83f323f1e531002db.tar.gz'

It seems to be redownloading this archive periodically even without making any changes to the devenv config. Could it be cached in the /tmp directory which is erased daily on macOS (eg)?

@hasrthur
Copy link

hasrthur commented Jul 23, 2024

Why it is slow is related to NixOS/nix#10683, feel free to add a like there.

I guess the question is more "why should we download anything if we already have lock file generated and all the required packages installed?". The slowness of download is a side-effect since it shouldn't happen at all, at least from my perspective

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants