Skip to content

Commit

Permalink
update go versions (go1.15, go1.16, go1.17) (#646)
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Aug 23, 2021
1 parent 76c7860 commit 34360dd
Show file tree
Hide file tree
Showing 30 changed files with 44 additions and 21 deletions.
2 changes: 1 addition & 1 deletion autorest/adal/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/Azure/go-autorest/autorest/adal

go 1.12
go 1.15

require (
github.com/Azure/go-autorest v14.2.0+incompatible
Expand Down
1 change: 1 addition & 0 deletions autorest/adal/go_mod_tidy_hack.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build modhack
// +build modhack

package adal
Expand Down
1 change: 1 addition & 0 deletions autorest/adal/token_1.13.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build go1.13
// +build go1.13

// Copyright 2017 Microsoft Corporation
Expand Down
1 change: 1 addition & 0 deletions autorest/adal/token_legacy.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !go1.13
// +build !go1.13

// Copyright 2017 Microsoft Corporation
Expand Down
2 changes: 1 addition & 1 deletion autorest/azure/auth/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/Azure/go-autorest/autorest/azure/auth

go 1.12
go 1.15

require (
github.com/Azure/go-autorest v14.2.0+incompatible
Expand Down
1 change: 1 addition & 0 deletions autorest/azure/auth/go_mod_tidy_hack.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build modhack
// +build modhack

package auth
Expand Down
2 changes: 1 addition & 1 deletion autorest/azure/cli/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/Azure/go-autorest/autorest/azure/cli

go 1.12
go 1.15

require (
github.com/Azure/go-autorest v14.2.0+incompatible
Expand Down
1 change: 1 addition & 0 deletions autorest/azure/cli/go_mod_tidy_hack.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build modhack
// +build modhack

package cli
Expand Down
2 changes: 1 addition & 1 deletion autorest/date/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/Azure/go-autorest/autorest/date

go 1.12
go 1.15

require github.com/Azure/go-autorest v14.2.0+incompatible
1 change: 1 addition & 0 deletions autorest/date/go_mod_tidy_hack.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build modhack
// +build modhack

package date
Expand Down
1 change: 1 addition & 0 deletions autorest/date/unixtime_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build go1.7
// +build go1.7

package date
Expand Down
2 changes: 1 addition & 1 deletion autorest/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/Azure/go-autorest/autorest

go 1.12
go 1.15

require (
github.com/Azure/go-autorest v14.2.0+incompatible
Expand Down
1 change: 1 addition & 0 deletions autorest/go_mod_tidy_hack.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build modhack
// +build modhack

package autorest
Expand Down
2 changes: 1 addition & 1 deletion autorest/mocks/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/Azure/go-autorest/autorest/mocks

go 1.12
go 1.15

require github.com/Azure/go-autorest v14.2.0+incompatible
1 change: 1 addition & 0 deletions autorest/mocks/go_mod_tidy_hack.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build modhack
// +build modhack

package mocks
Expand Down
1 change: 1 addition & 0 deletions autorest/retriablerequest_1.7.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !go1.8
// +build !go1.8

// Copyright 2017 Microsoft Corporation
Expand Down
1 change: 1 addition & 0 deletions autorest/retriablerequest_1.8.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build go1.8
// +build go1.8

// Copyright 2017 Microsoft Corporation
Expand Down
2 changes: 1 addition & 1 deletion autorest/to/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/Azure/go-autorest/autorest/to

go 1.12
go 1.15

require github.com/Azure/go-autorest v14.2.0+incompatible
1 change: 1 addition & 0 deletions autorest/to/go_mod_tidy_hack.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build modhack
// +build modhack

package to
Expand Down
1 change: 1 addition & 0 deletions autorest/utility_1.13.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build go1.13
// +build go1.13

// Copyright 2017 Microsoft Corporation
Expand Down
1 change: 1 addition & 0 deletions autorest/utility_1.13_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build go1.13
// +build go1.13

// Copyright 2017 Microsoft Corporation
Expand Down
1 change: 1 addition & 0 deletions autorest/utility_legacy.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !go1.13
// +build !go1.13

// Copyright 2017 Microsoft Corporation
Expand Down
2 changes: 1 addition & 1 deletion autorest/validation/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/Azure/go-autorest/autorest/validation

go 1.12
go 1.15

require (
github.com/Azure/go-autorest v14.2.0+incompatible
Expand Down
1 change: 1 addition & 0 deletions autorest/validation/go_mod_tidy_hack.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build modhack
// +build modhack

package validation
Expand Down
25 changes: 15 additions & 10 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
variables:
GO111MODULE: 'auto'
GOPATH: '$(system.defaultWorkingDirectory)/work'
sdkPath: '$(GOPATH)/src/github.com/$(build.repository.name)'

Expand All @@ -8,12 +9,16 @@ jobs:

strategy:
matrix:
Linux_Go113:
Linux_Go115:
vm.image: 'ubuntu-18.04'
go.version: '1.13'
Linux_Go114:
go.version: '1.15'
Linux_Go116:
vm.image: 'ubuntu-18.04'
go.version: '1.14'
go.version: '1.16'
Linux_Go117:
vm.image: 'ubuntu-18.04'
go.version: '1.17'
current_go: 'true'

pool:
vmImage: '$(vm.image)'
Expand All @@ -37,11 +42,11 @@ jobs:
set -e
curl -sSL https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure -v
go install ./vendor/golang.org/x/lint/golint
go get github.com/jstemmer/go-junit-report
go get github.com/axw/gocov/gocov
go get github.com/AlekSi/gocov-xml
go get -u github.com/matm/gocov-html
GO111MODULE=on go get golang.org/x/lint/golint@latest
GO111MODULE=on go get github.com/jstemmer/go-junit-report@latest
GO111MODULE=on go get github.com/axw/gocov/gocov@latest
GO111MODULE=on go get github.com/AlekSi/gocov-xml@latest
GO111MODULE=on go get github.com/matm/gocov-html@latest
workingDirectory: '$(sdkPath)'
displayName: 'Install Dependencies'
Expand Down Expand Up @@ -81,7 +86,7 @@ jobs:
workingDirectory: '$(sdkPath)'
displayName: 'Format Check'
failOnStderr: true
condition: succeededOrFailed()
condition: and(succeededOrFailed(), eq(variables['current_go'], 'true'))
- script: |
golint ./autorest/... >&2
Expand Down
2 changes: 1 addition & 1 deletion logger/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/Azure/go-autorest/logger

go 1.12
go 1.15

require github.com/Azure/go-autorest v14.2.0+incompatible
1 change: 1 addition & 0 deletions logger/go_mod_tidy_hack.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build modhack
// +build modhack

package logger
Expand Down
2 changes: 1 addition & 1 deletion tracing/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/Azure/go-autorest/tracing

go 1.12
go 1.15

require github.com/Azure/go-autorest v14.2.0+incompatible
1 change: 1 addition & 0 deletions tracing/go_mod_tidy_hack.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build modhack
// +build modhack

package tracing
Expand Down
2 changes: 1 addition & 1 deletion tracing/opencensus/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/Azure/go-autorest/tracing/opencensus

go 1.12
go 1.15

require (
contrib.go.opencensus.io/exporter/ocagent v0.6.0
Expand Down

0 comments on commit 34360dd

Please sign in to comment.