-
Notifications
You must be signed in to change notification settings - Fork 165
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 does not work #448
Comments
Seems like my mistake was using
Perhaps adding an example to the Readme would help others in the future? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to the docs there is supposed to be an offline workflow where
corepack
doesn't need internet:I've created an example project to reproduce the bug with the following Dockerfile:
The Dockerfile is supposed to download
pnpm
using corepack and then cache it usingcorepack pack
.Then it tries to install it from the cache
At last I try to run a
pnpm
command throughcorepack
withCOREPACK_ENABLE_NETWORK=0
to simulate no internet. This does not work. Neithercorepack pnpm install
norcorepack pnpm --version
.Error log
docker build -f ./Dockerfile -t corepack-offline-bug . --progress plain
:The text was updated successfully, but these errors were encountered: