Skip to content

Commit

Permalink
try installing go1.20 on Windows
Browse files Browse the repository at this point in the history
The TestFromDirSymlink test is failing on Windows;

    === Failed
    === FAIL: fs TestFromDirSymlink (0.01s)
        ops_test.go:55: assertion failed: directory C:\Users\circleci\AppData\Local\Temp\test-from-dir-992742947 does not match expected:
            \a\b\3
              target: expected C:\some\inexistent\link got \some\inexistent\link

Unlike Linux, Windows is always testing against "latest" version of Golang;

    Chocolatey v2.2.2
    Upgrading the following packages:
    golang
    By upgrading, you accept licenses for the packages.

    You have golang v1.22.2 installed. Version 1.23.0 is available based on your source(s).
    Progress: Downloading golang 1.23.0... 100%

Try installing go1.20 to see if that's related

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Aug 22, 2024
1 parent 05b199a commit 63f3a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ workflows:
git config --global core.autocrlf false
git config --global core.symlinks true
- run: |
choco upgrade golang
choco install golang --allow-downgrade --version=1.20.1
echo 'export PATH="$PATH:/c/Program Files/Go/bin"' > $BASH_ENV
- run: go version

Expand Down

0 comments on commit 63f3a9f

Please sign in to comment.