Skip to content

Commit

Permalink
[Buildkite] Use Go version from file (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodm authored Aug 29, 2023
1 parent 5cf4f70 commit 037631b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ source .buildkite/scripts/tooling.sh

GITHUB_TOKEN_VAULT_PATH=kv/ci-shared/platform-ingest/github_token

export GO_VERSION=$(cat .go-version)

# Secrets must be redacted
# https://buildkite.com/docs/pipelines/managing-log-output#redacted-environment-variables

Expand Down
1 change: 0 additions & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
env:
SETUP_GVM_VERSION: 'v0.5.0' # https://github.com/andrewkroh/gvm/issues/44#issuecomment-1013231151
SETUP_MAGE_VERSION: "latest"
GO_VERSION: "1.20.3"
GO_LINUX_AGENT_IMAGE: "golang:${GO_VERSION}"
GO_WINDOWS_AGENT_IMAGE: "family/ci-windows-2022"

Expand Down
2 changes: 1 addition & 1 deletion .buildkite/scripts/run-win-tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function fixCRLF {
git reset --quiet --hard
}
function withGolang($version) {
Write-Host "-- Install golang --"
Write-Host "-- Install golang $version --"
choco install -y golang --version $version
$env:ChocolateyInstall = Convert-Path "$((Get-Command choco).Path)\..\.."
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
Expand Down

0 comments on commit 037631b

Please sign in to comment.