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

The first command takes a long time without feedback #445

Open
jkarni opened this issue Nov 25, 2023 · 3 comments
Open

The first command takes a long time without feedback #445

jkarni opened this issue Nov 25, 2023 · 3 comments

Comments

@jkarni
Copy link
Contributor

jkarni commented Nov 25, 2023

I tried garn enter --help, and it hung for a while before continuing, without any feedback. And I've seen something similar in user tests.

After the first time it's much faster.

@jkarni
Copy link
Contributor Author

jkarni commented Nov 25, 2023

On a bad network connection, this has already taken 5 minutes!

@jkarni
Copy link
Contributor Author

jkarni commented Nov 25, 2023

It now finished. Part of the problem seems to be gomod2nix:

nix path-info -Sh 'github:nix-community/gomod2nix?rev=f95720e89af6165c8c0aa77f180461fe786f3c21'
/nix/store/yvzwmzwdkbign8h0433m0hvzy01hpzxf-gomod2nix-dev	557.5M

But additionally, I think we should have a helper function that, every time we run a command, logs what the command being run is, if it takes longer than, say, 3 seconds.

@jkarni
Copy link
Contributor Author

jkarni commented Nov 25, 2023

Maybe for all these commands that fetch things, we should first check whether they're installed already. If not, log that we're installing them, that we're done installing them, and then run them.

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

1 participant