-
Notifications
You must be signed in to change notification settings - Fork 17
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
fix: Set YARN_CHECKSUM_BEHAVIOR=update when 'yarn up' is called #565
fix: Set YARN_CHECKSUM_BEHAVIOR=update when 'yarn up' is called #565
Conversation
47d53e8
to
3586bb9
Compare
3586bb9
to
51cf081
Compare
51cf081
to
577526c
Compare
@@ -23,6 +23,9 @@ export type SpawnOptions = { | |||
// Command line args given to `node` or the `bin` script specified | |||
args?: string[]; | |||
|
|||
// Additional environment variables given to `node` or the `bin` script specified | |||
env?: Record<string, string>; | |||
|
|||
// If specified, write log messages to the given output channel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should already be included via childProcess.SpawnOptionsWithoutStdio
interface ProcessEnvOptions {
uid?: number | undefined;
gid?: number | undefined;
cwd?: string | undefined;
env?: NodeJS.ProcessEnv | undefined;
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is.
🎉 This PR is included in version 0.57.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Attempt to fix the following type of error we often see in the logs
When an archive checksum in
yarn.lock
is incorrect andYARN_CHECKSUM_BEHAVIOR=update yarn
is called instead of onlyyarn
, the archive is fetched again and doesn't produce this error.Addresses #547 but it's uncertain if it will fix it. It's uncertain if archive checksums were calculated incorrectly due to bugs in yarn when the archive was created or if there's some other error, like something weird going on with the network.
--
To test this I created a vsix file and installed it with logging in
nodeDependencyProcess.ts:spawn
that showedYARN_CHECKSUM_BEHAVIOR
was set