GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update node modules PR check with fixed `npm` version by angelapwen · Pull Request #1357 · github/codeql-action

Conversation

@angelapwen

@angelapwen angelapwen commented Nov 10, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

We used to always use the latest version of npm in this PR check, but the most recent version of npm would create a different package-lock.json file that causes the PR check to fail. We are unable to update this package-lock.json file because it would not be backwards compatible, so instead we are pinning the PR check to version 8.19.2.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@angelapwen
Add node setup step
0eee1e9
aeisenberg
aeisenberg reviewed Nov 10, 2022
View reviewed changes
Comment thread .github/workflows/pr-checks.yml Resolved

Uh oh!

There was an error while loading. Please reload this page.

@angelapwen
Specify v16.18.0
d39a4f6
@angelapwen angelapwen mentioned this pull request Nov 10, 2022
Support Swift for private beta #1350
Merged
3 tasks done
angelapwen added 3 commits November 10, 2022 15:35
@angelapwen
Remove setup node Action
9a2a2da
@angelapwen
Update package-lock with latest npm version
259a837
@angelapwen
Add npm update to error message
e42f82e
@angelapwen angelapwen changed the title Add node setup step to Check node modules PR check Update node modules with new npm version Nov 10, 2022
@angelapwen angelapwen changed the title Update node modules with new npm version Update node modules PR check with fixed npm version Nov 10, 2022
@angelapwen
angelapwen marked this pull request as ready for review November 11, 2022 00:00
@angelapwen
angelapwen requested a review from a team as a code owner November 11, 2022 00:00
aeisenberg
aeisenberg reviewed Nov 11, 2022
View reviewed changes
Comment thread .github/workflows/script/check-node-modules.sh
if [ ! -z "$(git status --porcelain)" ]; then
# If we get a fail here then the PR needs attention
>&2 echo "Failed: node_modules are not up to date. Run 'npm ci && npm run removeNPMAbsolutePaths' on a macOS machine to update. Note it is important this command is run on macOS and not any other operating system as there is one dependency (fsevents) that is needed for macOS and may not be installed if the command is run on a Windows or Linux machine."
>&2 echo "Failed: node_modules are not up to date. Run 'npm ci && npm run removeNPMAbsolutePaths' on a macOS machine to update and commit. Note it is important this command is run on macOS and not any other operating system as there is one dependency (fsevents) that is needed for macOS and may not be installed if the command is run on a Windows or Linux machine. If there are no changes, run 'npm install --force -g npm@latest' with root permissions first."

@aeisenberg aeisenberg Nov 11, 2022

Copy link
Copy Markdown
Contributor

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.

Are we going to pin to v8.19.2? I don't think we can move to package-lock v3 while we also need to support node v12.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@henrymercer henrymercer Nov 11, 2022

Copy link
Copy Markdown
Contributor

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.

The latest v8 release (8.19.3) of npm is compatible with Node 12. I think package-lock v3 should be compatible with Node 12 since the package-lock is only consumed by npm

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@angelapwen

angelapwen commented Nov 14, 2022

Copy link
Copy Markdown
Contributor Author

Closing as this PR check was fixed in #1348

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@angelapwen angelapwen closed this Nov 14, 2022
@angelapwen
angelapwen deleted the fix-node-modules-check branch November 14, 2022 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@aeisenberg aeisenberg aeisenberg left review comments
@henrymercer henrymercer henrymercer left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@angelapwen @aeisenberg @henrymercer
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.