Skip to content

Commit

Permalink
Update CI to the latest two versions of Go (#22395)
Browse files Browse the repository at this point in the history
* Update CI to the latest two versions of Go

* bump to latest golangci-lint
  • Loading branch information
jhendrixMSFT committed Feb 15, 2024
1 parent b5a231a commit f229c5f
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion eng/pipelines/mgmt-auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ stages:

- task: GoTool@0
inputs:
version: '1.21.0'
version: '1.22.0'

- task: ShellScript@2
inputs:
Expand Down
18 changes: 9 additions & 9 deletions eng/pipelines/templates/jobs/archetype-sdk-client-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@ stages:
pool.name: azsdk-pool-mms-win-2022-general
image.name: MMS2022
go.version: '1.18.10'
Linux_Go120:
Linux_Go121:
pool.name: azsdk-pool-mms-ubuntu-2004-general
image.name: MMSUbuntu20.04
go.version: '1.20.7'
Windows_Go120:
go.version: '1.21.7'
Windows_Go121:
pool.name: azsdk-pool-mms-win-2022-general
image.name: MMS2022
go.version: '1.20.7'
Linux_Go121:
go.version: '1.21.7'
Linux_Go122:
pool.name: azsdk-pool-mms-ubuntu-2004-general
image.name: MMSUbuntu20.04
go.version: '1.21.0'
Windows_Go121:
go.version: '1.22.0'
Windows_Go122:
pool.name: azsdk-pool-mms-win-2022-general
image.name: MMS2022
go.version: '1.21.0'
go.version: '1.22.0'
pool:
name: $(pool.name)
vmImage: $(image.name)
Expand Down Expand Up @@ -71,7 +71,7 @@ stages:
steps:
- task: GoTool@0
inputs:
version: '1.21.0'
version: '1.22.0'
displayName: "Select Go Version"

- template: ../steps/create-go-workspace.yml
Expand Down
18 changes: 9 additions & 9 deletions eng/pipelines/templates/jobs/archetype-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,22 +98,22 @@ stages:
pool.name: azsdk-pool-mms-win-2022-general
image.name: MMS2022
go.version: '1.18.10'
Linux_Go120:
Linux_Go121:
pool.name: azsdk-pool-mms-ubuntu-2004-general
image.name: MMSUbuntu20.04
go.version: '1.20.7'
Windows_Go120:
go.version: '1.21.7'
Windows_Go121:
pool.name: azsdk-pool-mms-win-2022-general
image.name: MMS2022
go.version: '1.20.7'
Linux_Go121:
go.version: '1.21.7'
Linux_Go122:
pool.name: azsdk-pool-mms-ubuntu-2004-general
image.name: MMSUbuntu20.04
go.version: '1.21.0'
Windows_Go121:
go.version: '1.22.0'
Windows_Go122:
pool.name: azsdk-pool-mms-win-2022-general
image.name: MMS2022
go.version: '1.21.0'
go.version: '1.22.0'
generate.bom: true
pool:
name: $(pool.name)
Expand Down Expand Up @@ -166,7 +166,7 @@ stages:

- task: GoTool@0
inputs:
version: '1.21.0'
version: '1.22.0'
displayName: "Select Go Version"

- template: ../steps/create-go-workspace.yml
Expand Down
18 changes: 9 additions & 9 deletions eng/pipelines/templates/jobs/archetype-sdk-eng-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,22 @@ stages:
pool.name: azsdk-pool-mms-win-2022-general
image.name: MMS2022
go.version: '1.18.10'
Linux_Go120:
Linux_Go121:
pool.name: azsdk-pool-mms-ubuntu-2004-general
image.name: MMSUbuntu20.04
go.version: '1.20.7'
Windows_Go120:
go.version: '1.21.7'
Windows_Go121:
pool.name: azsdk-pool-mms-win-2022-general
image.name: MMS2022
go.version: '1.20.7'
Linux_Go121:
go.version: '1.21.7'
Linux_Go122:
pool.name: azsdk-pool-mms-ubuntu-2004-general
image.name: MMSUbuntu20.04
go.version: '1.21.0'
Windows_Go121:
go.version: '1.22.0'
Windows_Go122:
pool.name: azsdk-pool-mms-win-2022-general
image.name: MMS2022
go.version: '1.21.0'
go.version: '1.22.0'
generate.bom: true
pool:
name: $(pool.name)
Expand Down Expand Up @@ -92,7 +92,7 @@ stages:

- task: GoTool@0
inputs:
version: '1.21.0'
version: '1.22.0'
displayName: "Select Go Version"

- template: ../steps/create-go-workspace.yml
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/jobs/mgmt-mock-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
displayName: 'Install autorest'
- task: GoTool@0
inputs:
version: '1.21.0'
version: '1.22.0'
displayName: "Select Go Version"

- template: /eng/pipelines/templates/steps/create-go-workspace.yml
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/templates/stages/platform-matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
},
"GoVersion": [
"1.18.10",
"1.20.7",
"1.21.0"
"1.21.7",
"1.22.0"
]
}
}
2 changes: 1 addition & 1 deletion eng/pipelines/templates/variables/globals.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
variables:
GoLintCLIVersion: 'v1.54.2'
GoLintCLIVersion: 'v1.56.2'
Package.EnableSBOMSigning: true
# Enable go native component governance detection
# https://docs.opensource.microsoft.com/tools/cg/index.html
Expand Down
6 changes: 3 additions & 3 deletions eng/scripts/automation_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ outputFile="$(realpath $outputFile)"
echo "output json file: $outputFile"

TMPDIR="/tmp"
if [ ! "$(go version | awk '{print $3}' | cut -c 3-6)" = "1.21" ]
if [ ! "$(go version | awk '{print $3}' | cut -c 3-6)" = "1.22" ]
then
wget https://golang.org/dl/go1.21.0.linux-amd64.tar.gz
tar -C $TMPDIR -xzf go1.21.0.linux-amd64.tar.gz
wget https://golang.org/dl/go1.22.0.linux-amd64.tar.gz
tar -C $TMPDIR -xzf go1.22.0.linux-amd64.tar.gz
export GOROOT=$TMPDIR/go
export PATH=$GOROOT/bin:$PATH
fi
Expand Down

0 comments on commit f229c5f

Please sign in to comment.