Skip to content

Commit cc3955d

Browse files
authored
update golang version to fix cves (#1360)
1 parent 9a8808d commit cc3955d

File tree

5 files changed

+9
-13
lines changed

5 files changed

+9
-13
lines changed

.github/workflows/run_unit_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
Golang-Tests:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- name: Setup Go 1.22.5
16+
- name: Setup Go 1.23.5
1717
uses: actions/setup-go@v4
1818
with:
19-
go-version: '1.22.5'
19+
go-version: '1.23.5'
2020
- name: Check out repository code
2121
uses: actions/checkout@v2
2222
- name: Run unit tests

.pipelines/azure_pipeline_mergedbranches.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ jobs:
332332
# Find in cache or download a specific version of Go and add it to the PATH.
333333
- task: GoTool@0
334334
inputs:
335-
version: '1.22.5'
335+
version: '1.23.5'
336336

337337
- bash: |
338338
cd $(System.DefaultWorkingDirectory)/build/linux/

scripts/build/windows/install-build-pre-requisites.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ function Install-Go {
1313
exit 1
1414
}
1515

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

158-
Write-Host "Install GO 1.22.5 version"
158+
Write-Host "Install GO 1.23.5 version"
159159
Install-Go
160160
Write-Host "Install Build dependencies"
161161
Build-Dependencies

source/plugins/go/input/go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module Docker-Provider/source/plugins/go/input
22

3-
go 1.21.0
4-
5-
toolchain go1.22.5
3+
go 1.23.5
64

75
require github.com/calyptia/plugin v1.0.2
86

source/plugins/go/src/go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module Docker-Provider/source/plugins/go/src
22

3-
go 1.21
4-
5-
toolchain go1.22.5
3+
go 1.23.5
64

75
require (
86
github.com/Microsoft/go-winio v0.6.1

0 commit comments

Comments
 (0)