-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Corepack isn't persisted between sessions #20244
Comments
Hi @davidrhoderick, How are you enabling corepack for the first time? Is there a public repo I can take a look at? |
I noticed it after forking the Redwood.js repo and I've only made changes to my Prisma schema so far so I think that should be representative. It seems the |
So I tried to add the following steps to my command: image: gitpod/workspace-postgres
tasks:
- init: |
# Cleanup terminal
printf "\033[3J\033c\033[3J"
nvm install 20.15.1
nvm use 20.15.1
corepack enable
corepack prepare yarn@stable --activate
# Auto init a redwoodjs project for Gitpod if missing
if test ! -e redwood.toml; then {
# Create
COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack yarn create redwood-app . --overwrite --yes
} else {
COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack yarn install
} fi
command: |
corepack enable
corepack prepare yarn@stable --activate
cmd="yarn rw dev"
printf "Executing '%s' ..." "${cmd}"
${cmd} But it still doesn't work. I'm not sure I'm understanding exactly where to add this so that it runs every time a workspace is restarted... |
Looks to me that even when I make changes to the |
Hi @davidrhoderick, sorry for the the late follow up. One quick fix is to replace Let me know if this works! |
Bug description
After the first
init
run of my workspace, every time I start the workspace, I have to re-enable corepack. I can't find in the documentation how to persist corepack from session to session.Steps to reproduce
yarn rw dev
without first enabling corepack.Workspace affected
redwoodjs-starter-1973l3npt3n
Expected behavior
I wish it would retain corepack's enabled state between sessions, just like my computer does.
Example repository
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: