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

tools: make choco install script readable #54002

Merged
merged 2 commits into from
Sep 28, 2024
Merged

Conversation

RedYetiDev
Copy link
Member

This PR improves the readability of the chocolatey install script by splitting the long command into multiple lines.

@nodejs-github-bot nodejs-github-bot added install Issues and PRs related to the installers. needs-ci PRs that need a full CI run. tools Issues and PRs related to the tools directory. windows Issues and PRs related to the Windows platform. labels Jul 23, 2024
@sepehrst
Copy link

Trailing backticks cannot be used here as the PowerShell command is invoked in the context of a batch file. The trailing caret ^ (strictly the last character on the line) is the line continuation character for batch scripts, unless an unpaired double quote " is present on the line, in which case the caret is treated as a literal character, even without a closing quote.

@RedYetiDev
Copy link
Member Author

Trailing backticks cannot be used here as the PowerShell command is invoked in the context of a batch file. The trailing caret ^ (strictly the last character on the line) is the line continuation character for batch scripts, unless an unpaired double quote " is present on the line, in which case the caret is treated as a literal character, even without a closing quote.

" are not used in the newlines, so what is the issue?

@sepehrst
Copy link

" are not used in the newlines, so what is the issue?

The current issue is, in batch files, backticks can not be used as line continuation character. Carets ^ have to be used for that purpose.

(What I wrote about " was an additional explanation/caution about how double-quotes. in some circumstances, might silently cause problems and disturb the ^ rule for line continuation. It does not apply to your current modifications, but something to watch for)

Copy link

@sepehrst sepehrst left a comment

Choose a reason for hiding this comment

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

"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" ^
-NoProfile ^
-InputFormat None ^

Ditto for rest of the lines

Co-Authored-By: sepehrst <sepehrst@users.noreply.github.com>
@RedYetiDev
Copy link
Member Author

@nodejs/platform-windows to review the new changes

@RedYetiDev RedYetiDev added the commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. label Aug 21, 2024
@RedYetiDev
Copy link
Member Author

Hey, could someone start a CI so that this can land? (It needs a CI, right?)

@jasnell jasnell added the request-ci Add this label to start a Jenkins CI on a PR. label Sep 7, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Sep 7, 2024
@nodejs-github-bot
Copy link
Collaborator

@RedYetiDev
Copy link
Member Author

CI LGTM

@RedYetiDev RedYetiDev added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Sep 23, 2024
@RedYetiDev
Copy link
Member Author

Can someone commit-queue this please?

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@H4ad H4ad added the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 26, 2024
@nodejs-github-bot nodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Sep 26, 2024
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/54002
✔  Done loading data for nodejs/node/pull/54002
----------------------------------- PR info ------------------------------------
Title      tools: make choco install script readable (#54002)
Author     Aviv Keller <redyetidev@gmail.com> (@RedYetiDev)
Branch     RedYetiDev:patch-86 -> nodejs:main
Labels     windows, install, tools, author ready, needs-ci, commit-queue-squash
Commits    2
 - tools: make choco install script readable
 - fix backticks
Committers 1
 - GitHub <noreply@github.com>
PR-URL: https://github.com/nodejs/node/pull/54002
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/54002
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
--------------------------------------------------------------------------------
   ⚠  Commits were pushed since the last approving review:
   ⚠  - fix backticks
   ℹ  This PR was created on Tue, 23 Jul 2024 10:55:23 GMT
   ✔  Approvals: 2
   ✔  - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/54002#pullrequestreview-2194777045
   ✔  - Stefan Stojanovic (@StefanStojanovic): https://github.com/nodejs/node/pull/54002#pullrequestreview-2196297478
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2024-09-25T14:41:26Z: https://ci.nodejs.org/job/node-test-pull-request/62762/
- Querying data for job/node-test-pull-request/62762/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/11061465059

@aduh95 aduh95 merged commit e8127db into nodejs:main Sep 28, 2024
61 checks passed
@aduh95
Copy link
Contributor

aduh95 commented Sep 28, 2024

Landed in e8127db

targos pushed a commit that referenced this pull request Oct 4, 2024
PR-URL: #54002
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
targos pushed a commit that referenced this pull request Oct 4, 2024
PR-URL: #54002
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
@aduh95 aduh95 mentioned this pull request Oct 9, 2024
louwers pushed a commit to louwers/node that referenced this pull request Nov 2, 2024
PR-URL: nodejs#54002
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-failed An error occurred while landing this pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. install Issues and PRs related to the installers. needs-ci PRs that need a full CI run. tools Issues and PRs related to the tools directory. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants