-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
CI: Use bash to properly expand variable #127822
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
Conversation
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.
Thanks!
@@ -24,4 +24,5 @@ jobs: | |||
with: | |||
persist-credentials: false | |||
- name: Build CPython installer | |||
run: .\Tools\msi\build.bat --doc -"${ARCH}" | |||
run: ./Tools/msi/build.bat --doc -"${ARCH}" |
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 seems that with shell: bash
both /
and \\
work for paths, but not \
.
I've seen (and used) \\
elsewhere, but since this is the only instance in this file and /
is more readable we don't need to worry about consistency here.
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.
Yes, /
and \\
are both valid path separators on Windows, so using /
always works fine for paths on Windows. The difference between the platforms is that /
is not the default path separator on Windows.
Thanks @hugovk for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
(cherry picked from commit b2ad7e0) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
GH-127824 is a backport of this pull request to the 3.13 branch. |
Follow on from #127749.
Re: #127786 (comment).
Needs backporting to 3.13 but was already added to 3.12 in #127788.