Skip to content

tools: make update-eslint.sh work with npm@9 - #46088

Closed
lpinca wants to merge 2 commits into
nodejs:mainfrom
lpinca:fix/update-eslint-script
Closed

tools: make update-eslint.sh work with npm@9#46088
lpinca wants to merge 2 commits into
nodejs:mainfrom
lpinca:fix/update-eslint-script

Conversation

@lpinca

@lpincalpinca commented Jan 4, 2023

Copy link
Copy Markdown
Member

Make the update-eslint.sh script work with npm@9.

Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64

@nodejs-github-botnodejs-github-bot added the tools Issues and PRs related to the tools directory. label Jan 4, 2023
Comment threadtools/update-eslint.sh Outdated

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

The --global-style option has been deprecated in favor of --install-strategy=shallow.

Comment threadtools/update-eslint.sh Outdated

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

The default value has been flipped.

Comment threadtools/update-eslint.sh Outdated

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Ditto.

Comment threadtools/update-eslint.sh Outdated

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

I'm not sure why but an ENOENT error is raised with the original command.

@lpinca
lpincaforce-pushed the fix/update-eslint-script branch from dc78120 to 975aeffCompareJanuary 4, 2023 09:19
@lpincalpinca added the commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. label Jan 4, 2023
@aduh95

Copy link
Copy Markdown
Contributor

Duplicate of #45974?

@lpinca

Copy link
Copy Markdown
MemberAuthor

I did not see #45974 but it seems it does not include the --install-links change, and it fails without it.

@aduh95

Copy link
Copy Markdown
Contributor

I did not see #45974 but it seems it does not include the --install-links change, and it fails without it.

My PR works FWIW (yes even without --install-links), but I like yours better. Would you consider moving the script to tools/dep_updaters?

@lpinca

lpinca commented Jan 4, 2023

Copy link
Copy Markdown
MemberAuthor

My PR works FWIW (yes even without --install-links), but I like yours better.

It did not work on WSL (Ubuntu 22.04). I don't have access to it at the moment, but I can test again tomorrow.

Would you consider moving the script to tools/dep_updaters?

Yes, I can add a commit for it. I will do it later.

@lpinca
lpincaforce-pushed the fix/update-eslint-script branch from 975aeff to e78ebf0CompareJanuary 4, 2023 19:56
@lpincalpinca added commit-queue-rebase Add this label to allow the Commit Queue to land a PR in several commits. and removed commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Jan 4, 2023
Make the `update-eslint.sh` script work with `npm@9`.
Move the `update-eslint.sh` script to the `dep_updaters/` directory.
@lpinca
lpincaforce-pushed the fix/update-eslint-script branch from e78ebf0 to 9766106CompareJanuary 4, 2023 20:35
@aduh95aduh95 added commit-queue Add this label to land a pull request using GitHub Actions. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. labels Jan 5, 2023
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 6, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 6f50acd...6668c4d

nodejs-github-bot pushed a commit that referenced this pull request Jan 6, 2023
Make the `update-eslint.sh` script work with `npm@9`.
PR-URL: #46088
Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64
Reviewed-By: Ruy Adorno <ruyadorno@google.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
nodejs-github-bot pushed a commit that referenced this pull request Jan 6, 2023
Move the `update-eslint.sh` script to the `dep_updaters/` directory.
PR-URL: #46088
Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64
Reviewed-By: Ruy Adorno <ruyadorno@google.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@lpinca
lpinca deleted the fix/update-eslint-script branch January 6, 2023 09:18
RafaelGSS pushed a commit to RafaelGSS/node that referenced this pull request Jan 17, 2023
Make the `update-eslint.sh` script work with `npm@9`.
PR-URL: nodejs#46088
Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64
Reviewed-By: Ruy Adorno <ruyadorno@google.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
RafaelGSS pushed a commit to RafaelGSS/node that referenced this pull request Jan 17, 2023
Move the `update-eslint.sh` script to the `dep_updaters/` directory.
PR-URL: nodejs#46088
Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64
Reviewed-By: Ruy Adorno <ruyadorno@google.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
RafaelGSS pushed a commit that referenced this pull request Jan 20, 2023
Make the `update-eslint.sh` script work with `npm@9`.
PR-URL: #46088
Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64
Reviewed-By: Ruy Adorno <ruyadorno@google.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
RafaelGSS pushed a commit that referenced this pull request Jan 20, 2023
Move the `update-eslint.sh` script to the `dep_updaters/` directory.
PR-URL: #46088
Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64
Reviewed-By: Ruy Adorno <ruyadorno@google.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@RafaelGSSRafaelGSS mentioned this pull request Jan 20, 2023
juanarbol pushed a commit that referenced this pull request Jan 26, 2023
Make the `update-eslint.sh` script work with `npm@9`.
PR-URL: #46088
Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64
Reviewed-By: Ruy Adorno <ruyadorno@google.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
juanarbol pushed a commit that referenced this pull request Jan 26, 2023
Move the `update-eslint.sh` script to the `dep_updaters/` directory.
PR-URL: #46088
Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64
Reviewed-By: Ruy Adorno <ruyadorno@google.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@juanarboljuanarbol mentioned this pull request Jan 28, 2023
juanarbol pushed a commit that referenced this pull request Jan 31, 2023
Make the `update-eslint.sh` script work with `npm@9`.
PR-URL: #46088
Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64
Reviewed-By: Ruy Adorno <ruyadorno@google.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
juanarbol pushed a commit that referenced this pull request Jan 31, 2023
Move the `update-eslint.sh` script to the `dep_updaters/` directory.
PR-URL: #46088
Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64
Reviewed-By: Ruy Adorno <ruyadorno@google.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.commit-queue-rebaseAdd this label to allow the Commit Queue to land a PR in several commits.toolsIssues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@lpinca@aduh95@nodejs-github-bot@ruyadorno