Skip to content
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

update golang version to fix CVEs related stdlib #1360

Merged
merged 1 commit into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/run_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
Golang-Tests:
runs-on: ubuntu-latest
steps:
- name: Setup Go 1.22.5
- name: Setup Go 1.23.5
uses: actions/setup-go@v4
with:
go-version: '1.22.5'
go-version: '1.23.5'
- name: Check out repository code
uses: actions/checkout@v2
- name: Run unit tests
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/azure_pipeline_mergedbranches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ jobs:
# Find in cache or download a specific version of Go and add it to the PATH.
- task: GoTool@0
inputs:
version: '1.22.5'
version: '1.23.5'

- bash: |
cd $(System.DefaultWorkingDirectory)/build/linux/
Expand Down
8 changes: 4 additions & 4 deletions scripts/build/windows/install-build-pre-requisites.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ function Install-Go {
exit 1
}

$url = "https://go.dev/dl/go1.22.5.windows-amd64.msi"
$output = Join-Path -Path $tempGo -ChildPath "go1.22.5.windows-amd64.msi"
$url = "https://go.dev/dl/go1.23.5.windows-amd64.msi"
$output = Join-Path -Path $tempGo -ChildPath "go1.23.5.windows-amd64.msi"
Write-Host("downloading go msi into directory path : " + $output + " ...")
Invoke-WebRequest -Uri $url -OutFile $output -ErrorAction Stop
Write-Host("downloading of go msi into directory path : " + $output + " completed")
Expand Down Expand Up @@ -146,7 +146,7 @@ function Install-cmetrics() {
git submodule sync
git -c protocol.version=2 submodule update --init --force --depth=1
git submodule foreach git config --local gc.auto 0
cmake --fresh -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX="$destinationPath" .
cmake --fresh -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX="$destinationPath" .
make
make install
}
Expand All @@ -155,7 +155,7 @@ function Install-cmetrics() {
# https://stackoverflow.com/questions/28682642/powershell-why-is-using-invoke-webrequest-much-slower-than-a-browser-download
$ProgressPreference = 'SilentlyContinue'

Write-Host "Install GO 1.22.5 version"
Write-Host "Install GO 1.23.5 version"
Install-Go
Write-Host "Install Build dependencies"
Build-Dependencies
Expand Down
4 changes: 1 addition & 3 deletions source/plugins/go/input/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module Docker-Provider/source/plugins/go/input

go 1.21.0

toolchain go1.22.5
go 1.23.5

require github.com/calyptia/plugin v1.0.2

Expand Down
4 changes: 1 addition & 3 deletions source/plugins/go/src/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module Docker-Provider/source/plugins/go/src

go 1.21

toolchain go1.22.5
go 1.23.5

require (
github.com/Microsoft/go-winio v0.6.1
Expand Down
Loading