-
Notifications
You must be signed in to change notification settings - Fork 170
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
Offline workflow #4
Comments
Of note, this would also enable private proxies & registries at no configuration cost: users would just have to fetch the tarballs themselves, using their preferred tools. Basic example:
|
cc @mmarchini |
yeah, I think that works. Would it also be possible to have a global config file for pmm where we could set pmm to never download the package manager (useful for Docker images) or to always download without asking (useful for adventurous users on development environments), along other settings? |
It could - one tricky thing with configuration variables is that .. well .. you need to load this configuration, and things get ever so slightly more complicated. Do you think keeping that as an environment variable would work? Something like:
|
yeah, environment variables could work too. I think configuration files are more user-friendly (especially for users not super familiar with Unix systems or for Windows users), but env variables work especially if we have a really limited set of configuration options. |
Implemented |
Some users will not want to download things dynamically. This should be addressed in the available tools.
Proposed workflow:
A command (let's say
pmm hydrate
) would install a tarball within the package manager cache:How these archives will be retrieved doesn't matter: users have the responsibility for that. Some popular options will be:
To make the tarball creation easier, pmm would include a
pmm pack yarn@1.22.4
command that would generate the tgz file for the given package manager (in a format suitable forpmm hydrate
).The text was updated successfully, but these errors were encountered: