Skip to content
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

Chore/upgrade pkg #3632

Merged
merged 1 commit into from
Aug 31, 2022
Merged

Chore/upgrade pkg #3632

merged 1 commit into from
Aug 31, 2022

Conversation

PeterSchafer
Copy link
Collaborator

@PeterSchafer PeterSchafer commented Aug 29, 2022

What does this PR do?

  • Upgrading pkg from 5.6.0 to 5.8.0 to also upgrade pkg-fetch from 3.3.0 to 3.4.2, this updates the bundled Node runtime from 16.14.2 to 16.16.0, makes these fixes available and addresses CVE-2022-32223, CVE-2022-32212 ...

  • Upgrading depcheck from 1.4.1 to 1.4.3 due to incorrectly detected unused dependencies when running npx ts-node ./scripts/check-dependencies.ts

@PeterSchafer PeterSchafer requested a review from a team as a code owner August 29, 2022 13:57
@PeterSchafer PeterSchafer changed the title Chore/upgrade pkg test Chore/upgrade pkg Aug 29, 2022
@PeterSchafer PeterSchafer requested a review from a team as a code owner August 30, 2022 13:31
@PeterSchafer PeterSchafer force-pushed the chore/upgrade_pkg_test branch 6 times, most recently from 190030b to 3c2e062 Compare August 31, 2022 09:40
Signed-off-by: Peter Schäfer <[email protected]>

chore: upgrade depcheck from 1.4.1 to 1.4.3

… resolves issue of false positive unused dependencies when running
`npx ts-node ./scripts/check-dependencies.ts`

Signed-off-by: Peter Schäfer <[email protected]>

chore: pin pkg to the exact version

Signed-off-by: Peter Schäfer <[email protected]>

chore: update nodejs 16.14.2 to 16.16.0

Signed-off-by: Peter Schäfer <[email protected]>

chore: disable sudo since the new docker node image …

… doesn’t support it

Signed-off-by: Peter Schäfer <[email protected]>

chore: inverse default value of ‘npm_global_sudo’ and adapt usage

Signed-off-by: Peter Schäfer <[email protected]>

chore: update nodejs versions 14.19.1 to 14.20.0

Signed-off-by: Peter Schäfer <[email protected]>

chore: extend jest matrix test

Signed-off-by: Peter Schäfer <[email protected]>
Signed-off-by: Peter Schäfer <[email protected]>
Signed-off-by: Peter Schäfer <[email protected]>
Signed-off-by: Peter Schäfer <[email protected]>
Signed-off-by: Peter Schäfer <[email protected]>
@PeterSchafer PeterSchafer force-pushed the chore/upgrade_pkg_test branch from 3c2e062 to 3f93319 Compare August 31, 2022 10:18
@@ -74,7 +74,7 @@ commands:
default: /mnt/ramdisk/.npm
npm_global_sudo:
type: boolean
default: true
default: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these npm changes done due to the failing tests that had no npm installed? did you find out what was the problem?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. In the image cimg/node:16.16.0 npm is not available with sudo but for the current user. With this I felt it would make sense to change the default behavior here and invert it basically everywhere where it was set to false before.

@PeterSchafer PeterSchafer merged commit 7ceadd5 into master Aug 31, 2022
@PeterSchafer PeterSchafer deleted the chore/upgrade_pkg_test branch August 31, 2022 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants