-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
chore(tools): Cache rework for .circleci
jobs (part2)
#14156
Conversation
Download PR build artifacts for linux_amd64.tar.gz, darwin_amd64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
.circleci
jobs (part2)
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 for tracking this all down. I have one extra print/echo below, otherwise, happy to see this land soon!
} | ||
|
||
export PATH="/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin:$PATH" | ||
echo "$PATH" |
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.
This is printed here and below, are both necessary?
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.
@powersj Just to see what chocolatey
added to the $PATH
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.
Nice job! Thanks for tackling this issue @zak-pawel!
(cherry picked from commit 4413991)
This reverts commit 4413991.
Improvement/fixes
windows
:go
, so we need to be sure that duringgo
upgrade there will not be any clashes or leftovers (like we could observe here) so/c/Program Files/Go
will be removed just beforerestore_cache
. These clashes may also appear duringgo
upgrade from previously cached version to newer version.MinGW
will also be cached and/c/ProgramData/chocolatey/lib/mingw
will be removed just beforerestore_cache
(for the same reason as forgo
mentioned above).$PATH
manipulations were also needed (to check for originalgcc
inside/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin
and not for shim version in/c/ProgramData/chocolatey/bin
) when installingMinGW
and running tests with-race
.darwin
:/usr/local/Cellar/go
and create it with proper ownership just beforerestore_cache
. It was done to fix a lot ofpermission denied
errors which occurred during cache restore. Introduced during update frommacos.x86.medium.gen2
tomacos.m1.medium.gen1
.go-bins-<< parameters.cache_version >>-<< parameters.os >>-<< parameters.arch >>-go<< parameters.goversion >>-{{ checksum "go.sum" }}
go-caches-<< parameters.cache_version >>-<< parameters.os >>-<< parameters.arch >>-go<< parameters.goversion >>-{{ checksum "go.sum" }}
$PATH
, binary (go
/gcc
) location and version added.