-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Propagate args to pnpm install
command via pnpm sst upgrade
#4257
Comments
is there a reason you're running |
I have github workflows that run on a schedule to auto-upgrade dependencies for various projects. What are the better ways to do the upgrade? |
I guess I could update the package.json to use I'm still curious about other potential better ways to handle this. I realize upgrading deps in CI might be a little backwards. |
Yeah I think that might be a better way. The |
Ok, that's reasonable. Thanks! |
Hi, by default
pnpm install
when ran in CI environments prevents the lock file from being out of sync with the package.json file. This makespnpm sst upgrade
impossible to run in CI via pnpm. (I try to do this to auto upgrade the SST version nightly.) They allow passing a--no-frozen-lockfile
argument to thepnpm install
command to overcome this.I couldn't find any other environment variable override to fix it and I think it might be detecting the CI-ness of it because it is installed via a github action, but I am just speculating... I dug through the code but it seems a little too gnarly/unfamiliar for me to find the root cause of it in a quick look through.
However, regardless of whether there would be a fix outside of argument propagation, I think it might be worthwhile to implement argument propagation to the install commands (pnpm, npm, yarn, bun) around here.
Thoughts?
I'd be happy to take a stab at it, but not sure if you guys have other ideas around it.
The text was updated successfully, but these errors were encountered: