From 0999a8b08fd276d60252f765b841b632f5d9c619 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 7 Nov 2021 22:44:16 +0300 Subject: workflows/test: python3 is no longer a symlink The upstream project seems to have made a decision to no longer make python3 a symlink to python3.X.exe, which is weird. Now we check the same thing about cc, which is still a symlink. --- .github/workflows/test.yml | 12 ++++++------ README.md | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6ed85a0..694e942 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,7 +45,7 @@ jobs: with: platform: '${{ matrix.platform }}' install-dir: C:\cg - packages: cmake gcc python3 + packages: cmake gcc env: '${{ matrix.env }}' hardlinks: '${{ matrix.hardlinks }}' @@ -65,15 +65,15 @@ jobs: $(Test-Path env:CYGWIN) -or $(throw '%CYGWIN% is not set!') $($env:CYGWIN -eq '${{ matrix.env }}') -or $(throw "Unexpected %CYGWIN% value: $env:CYGWIN") - - name: python3 is a symlink + - name: cc is a symlink run: | - $(Get-Command python3.exe -ErrorAction SilentlyContinue) -and $(throw (Get-Command python3.exe)) + $(Get-Command cc.exe -ErrorAction SilentlyContinue) -and $(throw (Get-Command cc.exe)) if: '!matrix.hardlinks' - - name: python3 is a hardlink + - name: cc is a hardlink run: | - $((Get-Command python3.exe).Path -eq 'C:\cg\bin\python3.exe') -or $(throw (Get-Command python3.exe)) - python3.exe --version + $((Get-Command cc.exe).Path -eq 'C:\cg\bin\cc.exe') -or $(throw (Get-Command cc.exe)) + cc.exe --version if: matrix.hardlinks shell_igncr: diff --git a/README.md b/README.md index 3efd13d..dfe4689 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Use it in your workflow like this: uses: egor-tensin/setup-cygwin@v3 with: platform: x64 - packages: cmake python3 + packages: cmake gcc # Cygwin executables are added to PATH, so you can call them directly: - run: | @@ -96,11 +96,11 @@ Executable symlinks ------------------- Some packages install symlinks in /usr/bin along with real executables. -An example is package "python3", which (as of January 2021) installs symlink -`python3`, pointing to the real executable `python3.8.exe`. +An example is package "gcc", which (as of November 2021) installs symlink `cc`, +pointing to the real executable `gcc.exe`. Calling Cygwin symlinks from Windows' command prompt is unsupported, but might -be convenient (e.g. if you don't know the exact Python version), so there's an -option to convert them to hardlinks instead (the `hardlinks` parameter). +be convenient so there's an option to convert them to hardlinks instead (the +`hardlinks` parameter). License ------- -- cgit v1.2.3