Skip to content

Commit

Permalink
[updatecli][githubrelease] Bump version to 1.20.10 (#149)
Browse files Browse the repository at this point in the history
* chore: Updated the content of the file "/tmp/updatecli/github/elastic...

... /elastic-agent-libs/.golangci.yml"

Made with ❤️️ by updatecli

* chore: Updated the content of the file "/tmp/updatecli/github/elastic...

... /elastic-agent-libs/.go-version"

Made with ❤️️ by updatecli

* chore: Updated the content of the file "/tmp/updatecli/github/elastic...

... /elastic-agent-libs/.go-version"

Made with ❤️️ by updatecli

* chore: Updated the content of the file "/tmp/updatecli/github/elastic...

... /elastic-agent-libs/.golangci.yml"

Made with ❤️️ by updatecli

* chore: Updated the content of the file "/tmp/updatecli/github/elastic...

... /elastic-agent-libs/.golangci.yml"

Made with ❤️️ by updatecli

* chore: Updated the content of the file "/tmp/updatecli/github/elastic...

... /elastic-agent-libs/.go-version"

Made with ❤️️ by updatecli

* buildkite: pre-command hook for Windows

To setup the goversion

* similarly done in https://github.com/elastic/elastic-agent/blob/29386eb727f7644824de1119aef4c8be5eadeb50/.buildkite/hooks/pre-command.ps1\#L6

---------

Co-authored-by: apmmachine <apmmachine@users.noreply.github.com>
Co-authored-by: Victor Martinez <VictorMartinezRubio@gmail.com>
3 people authored Nov 10, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 0a0897a commit 4f24665
Showing 4 changed files with 20 additions and 16 deletions.
15 changes: 15 additions & 0 deletions .buildkite/hooks/pre-command.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$env:GO_VERSION = Get-Content -Path .go-version

# Install gvm and go
# TODO: Move GVM download to the base VM image
$env:GvmVersion = "0.5.2"
[Net.ServicePointManager]::SecurityProtocol = "tls12"
$env:GoVersion = Get-Content -Path .go-version
Invoke-WebRequest -URI https://github.com/andrewkroh/gvm/releases/download/v$env:GvmVersion/gvm-windows-amd64.exe -Outfile C:\Windows\System32\gvm.exe
gvm --format=powershell $env:GO_VERSION | Invoke-Expression
go version

$GOPATH = $(go env GOPATH)
$env:Path = "$GOPATH\bin;" + $env:Path
[Environment]::SetEnvironmentVariable("GOPATH", "$GOPATH", [EnvironmentVariableTarget]::Machine)
[Environment]::SetEnvironmentVariable("Path", "$GOPATH\bin;$env:Path", [EnvironmentVariableTarget]::Machine)
11 changes: 0 additions & 11 deletions .buildkite/scripts/test.ps1
Original file line number Diff line number Diff line change
@@ -8,24 +8,13 @@ function fixCRLF {
git reset --quiet --hard
}

function withGolang($version) {
Write-Host "-- Install golang --"
choco install -y golang --version $version
$env:ChocolateyInstall = Convert-Path "$((Get-Command choco).Path)\..\.."
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
refreshenv
go version
go env
}

function withGoJUnitReport {
Write-Host "-- Install go-junit-report --"
go install github.com/jstemmer/go-junit-report/v2@latest
}

Write-Host "--- Prepare enviroment"
fixCRLF
withGolang $env:GO_VERSION
withGoJUnitReport

Write-Host "--- Run test"
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.20.7
1.20.10
8 changes: 4 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@ linters-settings:

gosimple:
# Select the Go version to target. The default is '1.13'.
go: "1.20.7"
go: "1.20.10"

nakedret:
# make an issue if func has more lines of code than this setting and it has naked returns; default is 30
@@ -117,19 +117,19 @@ linters-settings:

staticcheck:
# Select the Go version to target. The default is '1.13'.
go: "1.20.7"
go: "1.20.10"
# https://staticcheck.io/docs/options#checks
checks: ["all"]

stylecheck:
# Select the Go version to target. The default is '1.13'.
go: "1.20.7"
go: "1.20.10"
# https://staticcheck.io/docs/options#checks
checks: ["all"]

unused:
# Select the Go version to target. The default is '1.13'.
go: "1.20.7"
go: "1.20.10"

gosec:
excludes:

0 comments on commit 4f24665

Please sign in to comment.