Open shyim opened 1 year ago
--others
seems like REALLY slow down because it looks then also in the cache folder / node_modules and so
Seems like introduced by custom nix https://github.com/domenkozar/nix/commit/bf9922e7b21b83450006640d2382e04e5a203692
We need this to be able to support .devenv.flake.nix, probably a better way is to just to add it to the output.
We could also generate a generic flake.nix and commit that? 🤔
@shyim do you have a workaround for this or does it need to be fixed soon?
I am thinking about adding a hybrid solution. .envrc
uses nix flake directly and maybe the users still use devenv up
.
and the flake just imports existing devenv.nix
Flakes verbatim copy the whole repo into the /nix/store so that's also slower in general :)
okay then I don't have a solution 😂
But your --others
is there to find like devenv.nix and so? Can we not explicit check that this files exists?
I'll look into this tomorrow
I know what to fix there, needs a few hours of work. Making it high priority :)
Flakes verbatim copy the whole repo into the /nix/store so that's also slower in general :)
Eelco and others are working on getting rid of this constraint: https://github.com/NixOS/nix/pull/6530
devenv already includes this PR, but it's still slow (not minutes as it was before, but now in seconds).
devenv already includes this PR, but it's still slow (not minutes as it was before, but now in seconds).
Oh cool ! Do you think it will get merged upstream anytime soon ? Has it been working fine in devenv until now ?
devenv already includes this PR, but it's still slow (not minutes as it was before, but now in seconds).
Oh cool ! Do you think it will get merged upstream anytime soon ? Has it been working fine in devenv until now ?
I hope it will be merged soon, it has been working more or less fine :)
I believe this is fixed in #745, could you give it a try and report back?
I can't test it at Home, somehow the python cannot be built on my machine. It just hangs forever configure. I will try it at work tomorrow, maybe that helps.
I can't test it at Home, somehow the python cannot be built on my machine. It just hangs forever configure. I will try it at work tomorrow, maybe that helps.
Having the full log would be helpful and what OS exactly it hangs on.
I believe this is fixed in 1.0.1, can somebody confirm?
for me it takes like 25seconds to devenv up
starts the processes. feels long 🤔
Using 1.0.1? How can I reproduce this?
yup
devenv 1.0.1 (aarch64-darwin)
git clone https://github.com/shopware/shopware.git
cd shopware
devenv up
Is there something nice to debug what is slow at devenv up
. We have here an M1 Pro with 32GB of memory it takes 3 minutes to start it. It takes like a minute until it shows something and then two times resolving something
Maybe an idea to have an --debug
flag, which shows any command executed and the duration in the shell?
Describe the bug
When you have a big project and maybe some cache like 10 GB it gets really slowed down by git commands. Maybe that command can be ignored?