Skip to content

Commit e5aec80

Browse files
authored
Update to the latest two versions of Go (Azure#23536)
* Update to the latest two versions of Go Remove setting nocoverageredesign as the underlying issue has been fixed, so it's no longer required. Update to latest version of golangci-lint. * clean up lint
1 parent fc43101 commit e5aec80

File tree

14 files changed

+41
-111
lines changed

14 files changed

+41
-111
lines changed

eng/pipelines/mgmt-auto-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extends:
3131

3232
- task: GoTool@0
3333
inputs:
34-
version: '1.22.0'
34+
version: '1.23.2'
3535

3636
- task: ShellScript@2
3737
inputs:

eng/pipelines/templates/jobs/archetype-sdk-client-samples.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,22 @@ stages:
2424
pool.name: azsdk-pool-mms-win-2022-general
2525
image.name: MMS2022
2626
go.version: '1.18.10'
27-
Linux_Go121:
27+
Linux_Go122:
2828
pool.name: azsdk-pool-mms-ubuntu-2004-general
2929
image.name: MMSUbuntu20.04
30-
go.version: '1.21.7'
31-
Windows_Go121:
30+
go.version: '1.22.8'
31+
Windows_Go122:
3232
pool.name: azsdk-pool-mms-win-2022-general
3333
image.name: MMS2022
34-
go.version: '1.21.7'
35-
Linux_Go122:
34+
go.version: '1.22.8'
35+
Linux_Go123:
3636
pool.name: azsdk-pool-mms-ubuntu-2004-general
3737
image.name: MMSUbuntu20.04
38-
go.version: '1.22.0'
39-
GOEXPERIMENT: nocoverageredesign
40-
Windows_Go122:
38+
go.version: '1.23.2'
39+
Windows_Go123:
4140
pool.name: azsdk-pool-mms-win-2022-general
4241
image.name: MMS2022
43-
go.version: '1.22.0'
44-
GOEXPERIMENT: nocoverageredesign
42+
go.version: '1.23.2'
4543
pool:
4644
name: $(pool.name)
4745
vmImage: $(image.name)
@@ -75,7 +73,7 @@ stages:
7573
steps:
7674
- task: GoTool@0
7775
inputs:
78-
version: '1.22.0'
76+
version: '1.23.2'
7977
displayName: "Select Go Version"
8078

8179
- template: ../steps/create-go-workspace.yml

eng/pipelines/templates/jobs/archetype-sdk-client.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ extends:
153153

154154
- task: GoTool@0
155155
inputs:
156-
version: '1.22.0'
156+
version: '1.23.2'
157157
displayName: "Select Go Version"
158158

159159
- template: /eng/pipelines/templates/steps/create-go-workspace.yml@self

eng/pipelines/templates/jobs/archetype-sdk-eng-client.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,22 @@ stages:
4040
pool.name: azsdk-pool-mms-win-2022-general
4141
image.name: MMS2022
4242
go.version: '1.18.10'
43-
Linux_Go121:
43+
Linux_Go122:
4444
pool.name: azsdk-pool-mms-ubuntu-2004-general
4545
image.name: MMSUbuntu20.04
46-
go.version: '1.21.7'
47-
Windows_Go121:
46+
go.version: '1.22.8'
47+
Windows_Go122:
4848
pool.name: azsdk-pool-mms-win-2022-general
4949
image.name: MMS2022
50-
go.version: '1.21.7'
51-
Linux_Go122:
50+
go.version: '1.22.8'
51+
Linux_Go123:
5252
pool.name: azsdk-pool-mms-ubuntu-2004-general
5353
image.name: MMSUbuntu20.04
54-
go.version: '1.22.0'
55-
GOEXPERIMENT: nocoverageredesign
56-
Windows_Go122:
54+
go.version: '1.23.2'
55+
Windows_Go123:
5756
pool.name: azsdk-pool-mms-win-2022-general
5857
image.name: MMS2022
59-
go.version: '1.22.0'
60-
GOEXPERIMENT: nocoverageredesign
58+
go.version: '1.23.2'
6159
generate.bom: true
6260
pool:
6361
name: $(pool.name)
@@ -97,7 +95,7 @@ stages:
9795

9896
- task: GoTool@0
9997
inputs:
100-
version: '1.22.0'
98+
version: '1.23.2'
10199
displayName: "Select Go Version"
102100

103101
- template: ../steps/create-go-workspace.yml

eng/pipelines/templates/jobs/mgmt-mock-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
displayName: 'Install autorest'
2020
- task: GoTool@0
2121
inputs:
22-
version: '1.22.0'
22+
version: '1.23.2'
2323
displayName: "Select Go Version"
2424

2525
- template: /eng/pipelines/templates/steps/create-go-workspace.yml

eng/pipelines/templates/stages/ci-platform-matrix-complete.json

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,6 @@
1010
"OSVmImage": "env:LINUXVMIMAGE", "Pool": "env:LINUXPOOL"
1111
}
1212
},
13-
"go.version": ["1.21.7", "1.18.10"]
14-
},
15-
"include": [
16-
{
17-
"WindowsNoCoverage": {
18-
"windows-22_1220_nocoverage":
19-
{
20-
"go.version": "1.22.0",
21-
"GOEXPERIMENT": "nocoverageredesign",
22-
"generate.bom": "true",
23-
"OSVmImage": "env:WINDOWSVMIMAGE",
24-
"Pool":"env:WINDOWSPOOL"
25-
}
26-
}
27-
},
28-
{
29-
"LinuxNoCoverage": {
30-
"ubuntu-2004_nocoverage": {
31-
"go.version": "1.22.0",
32-
"GOEXPERIMENT": "nocoverageredesign",
33-
"OSVmImage": "env:LINUXVMIMAGE",
34-
"Pool": "env:LINUXPOOL"
35-
}
36-
}
37-
}
38-
]
13+
"go.version": ["1.23.2", "1.22.8", "1.18.10"]
14+
}
3915
}

eng/pipelines/templates/stages/ci-platform-matrix.json

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,6 @@
1010
"OSVmImage": "env:LINUXVMIMAGE", "Pool": "env:LINUXPOOL"
1111
}
1212
},
13-
"go.version": ["1.21.7"]
14-
},
15-
"include": [
16-
{
17-
"WindowsNoCoverage": {
18-
"windows-22_1220_nocoverage":
19-
{
20-
"go.version": "1.22.0",
21-
"GOEXPERIMENT": "nocoverageredesign",
22-
"generate.bom": "true",
23-
"OSVmImage": "env:WINDOWSVMIMAGE",
24-
"Pool":"env:WINDOWSPOOL"
25-
}
26-
}
27-
},
28-
{
29-
"LinuxNoCoverage": {
30-
"ubuntu-2004_nocoverage": {
31-
"go.version": "1.22.0",
32-
"GOEXPERIMENT": "nocoverageredesign",
33-
"OSVmImage": "env:LINUXVMIMAGE",
34-
"Pool": "env:LINUXPOOL"
35-
}
36-
}
37-
}
38-
]
13+
"go.version": ["1.23.2", "1.22.8"]
14+
}
3915
}

eng/pipelines/templates/stages/platform-matrix.json

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,8 @@
1212
},
1313
"GoVersion": [
1414
"1.18.10",
15-
"1.21.7"
15+
"1.22.8",
16+
"1.23.2"
1617
]
17-
},
18-
"include": [
19-
{
20-
"Agent": {
21-
"ubuntu-20.04": {
22-
"OSVmImage": "env:LINUXVMIMAGE",
23-
"Pool": "env:LINUXPOOL"
24-
},
25-
"windows-2022": {
26-
"OSVmImage": "env:WINDOWSVMIMAGE",
27-
"Pool": "env:WINDOWSPOOL"
28-
}
29-
},
30-
"GoVersion": [
31-
"1.22.0"
32-
],
33-
"GOEXPERIMENT": "nocoverageredesign"
34-
}
35-
]
18+
}
3619
}

eng/pipelines/templates/variables/globals.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
variables:
2-
GoLintCLIVersion: 'v1.59.0'
2+
GoLintCLIVersion: 'v1.61.0'
33
Package.EnableSBOMSigning: true
44
# Enable go native component governance detection
55
# https://docs.opensource.microsoft.com/tools/cg/index.html

eng/scripts/automation_init.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ outputFile="$(realpath $outputFile)"
1616
echo "output json file: $outputFile"
1717

1818
TMPDIR="/tmp"
19-
if [ ! "$(go version | awk '{print $3}' | cut -c 3-6)" = "1.22" ]
19+
if [ ! "$(go version | awk '{print $3}' | cut -c 3-6)" = "1.23" ]
2020
then
21-
wget -q https://golang.org/dl/go1.22.0.linux-amd64.tar.gz
22-
tar -C $TMPDIR -xzf go1.22.0.linux-amd64.tar.gz
21+
wget -q https://golang.org/dl/go1.23.2.linux-amd64.tar.gz
22+
tar -C $TMPDIR -xzf go1.23.2.linux-amd64.tar.gz
2323
export GOROOT=$TMPDIR/go
2424
export PATH=$GOROOT/bin:$PATH
2525
fi

0 commit comments

Comments
 (0)