Skip to content

Commit

Permalink
update golang version to fix cves (#1360)
Browse files Browse the repository at this point in the history
  • Loading branch information
ganga1980 committed Feb 26, 2025
1 parent d315f8a commit e6bd736
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
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

0 comments on commit e6bd736

Please sign in to comment.