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

Cache downloads #64

Closed
halvardssm opened this issue Sep 14, 2023 · 5 comments
Closed

Cache downloads #64

halvardssm opened this issue Sep 14, 2023 · 5 comments

Comments

@halvardssm
Copy link

Hi! I want to use this package in a pipeline, and I see that it is downloading the binary in the beginning. Is there a way to set download location using an env variable, in the hopes of caching the binary?

@github-actions
Copy link

Thank you for collaborating with the project by giving us feedback!

@jorgecasar
Copy link
Contributor

Hi @halvardssm

Do you mean npm cache? By default it cache inside ${HOME}/.npm maybe you can't cache this directory in your pipeline like occurs in Gitlab. Then, you use run --cache to change the cache folder destination were you want. I recommend to set it in .npm inside your current folder using npm ci --cache .npm. And include this folder into the pipeline cache

@halvardssm
Copy link
Author

Hi @jorgecasar! I am unsure to be honest, when running the script, I am seeing this when successful:

Screenshot 2023-09-15 at 10 02 32

And occasionally this when unsuccessful:

Screenshot 2023-09-15 at 10 03 00

I am assuming this is because the server that it needs to be downloaded from is overloaded, so I was hoping to cache this somewhere. The problem is that I can't find the download path for this download so that I can cache it.

@jorgecasar
Copy link
Contributor

Then I'm not sure what are you talking about. This is a command line to generate code and then you can complete and deploy where you want.

Are you talking about generating process or the resulting server?

@halvardssm
Copy link
Author

I am very sorry, I realized I was in the wrong repository (issue is related to this repo). Thank you for your help!

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