Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to latest versions of Go #15304

Merged
merged 6 commits into from
Aug 17, 2021
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -10,22 +10,22 @@ stages:
- template: ../variables/globals.yml
strategy:
matrix:
Linux_Go115:
Linux_Go117:
pool.name: azsdk-pool-mms-ubuntu-2004-general
image.name: MMSUbuntu20.04
go.version: '1.15'
Windows_Go115:
go.version: '1.17'
Windows_Go117:
pool.name: azsdk-pool-mms-win-2019-general
image.name: MMS2019
go.version: '1.15'
Linux_Go114:
go.version: '1.17'
Linux_Go116:
pool.name: azsdk-pool-mms-ubuntu-2004-general
image.name: MMSUbuntu20.04
go.version: '1.14'
Windows_Go114:
go.version: '1.16'
Windows_Go116:
pool.name: azsdk-pool-mms-win-2019-general
image.name: MMS2019
go.version: '1.14'
go.version: '1.16'
pool:
name: $(pool.name)
vmImage: $(image.name)
Expand Down Expand Up @@ -64,7 +64,7 @@ stages:
steps:
- task: GoTool@0
inputs:
version: '1.15'
version: '1.17'
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 @@ -12,22 +12,22 @@ stages:
- template: ../variables/globals.yml
strategy:
matrix:
Linux_Go115:
Linux_Go117:
pool.name: azsdk-pool-mms-ubuntu-2004-general
image.name: MMSUbuntu20.04
go.version: '1.15'
Windows_Go115:
go.version: '1.17'
Windows_Go117:
pool.name: azsdk-pool-mms-win-2019-general
image.name: MMS2019
go.version: '1.15'
Linux_Go114:
go.version: '1.17'
Linux_Go116:
pool.name: azsdk-pool-mms-ubuntu-2004-general
image.name: MMSUbuntu20.04
go.version: '1.14'
Windows_Go114:
go.version: '1.16'
Windows_Go116:
pool.name: azsdk-pool-mms-win-2019-general
image.name: MMS2019
go.version: '1.14'
go.version: '1.16'
pool:
name: $(pool.name)
vmImage: $(image.name)
Expand Down Expand Up @@ -68,7 +68,7 @@ stages:
steps:
- task: GoTool@0
inputs:
version: '1.15'
version: '1.17'
displayName: "Select Go Version"

- template: ../steps/create-go-workspace.yml
Expand Down
2 changes: 2 additions & 0 deletions eng/scripts/create_coverage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Param(
)

Write-Host $serviceDirectory
Push-Location $serviceDirectory

$coverageFiles = [Collections.Generic.List[String]]@()
Get-ChildItem -recurse -path . -filter coverage.txt | ForEach-Object {
Expand All @@ -22,4 +23,5 @@ Get-Content ./coverage.json | gocov-xml > ./coverage.xml
Get-Content ./coverage.json | gocov-html > ./coverage.html

# use internal tool to fail if coverage is too low
Pop-Location
go run ../tools/internal/coverage/main.go -serviceDirectory $serviceDirectory
3 changes: 2 additions & 1 deletion sdk/azcore/core.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/core_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/credential.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/doc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright 2017 Microsoft Corporation. All rights reserved.
// Use of this source code is governed by an MIT
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/error.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/etag.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/etag_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/example_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright 2017 Microsoft Corporation. All rights reserved.
// Use of this source code is governed by an MIT
Expand Down
2 changes: 1 addition & 1 deletion sdk/azcore/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ require (
golang.org/x/net v0.0.0-20210610132358-84b48f89b13b
)

go 1.14
go 1.16
3 changes: 2 additions & 1 deletion sdk/azcore/log/log.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/log/log_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/policy_anonymous_credential.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/policy_anonymous_credential_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/policy_body_download.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/policy_body_download_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/policy_http_header.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/policy_http_header_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/policy_logging.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/policy_logging_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/policy_retry.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/policy_retry_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/policy_telemetry.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/policy_telemetry_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/poller.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/poller_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/progress.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/progress_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/request.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/request_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/response.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/response_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/transport_default_http_client.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/azcore/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/internal/atomic/atomic.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/internal/diag/diag.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/internal/diag/diag_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/internal/errorinfo/errorinfo.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
2 changes: 1 addition & 1 deletion sdk/internal/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/Azure/azure-sdk-for-go/sdk/internal

go 1.14
go 1.16

require (
github.com/davecgh/go-spew v1.1.1 // indirect
Expand Down
3 changes: 2 additions & 1 deletion sdk/internal/log/log.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/internal/mock/mock.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/internal/mock/mock_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/internal/recording/recording.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
3 changes: 2 additions & 1 deletion sdk/internal/recording/recording_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build go1.13
//go:build go1.16
// +build go1.16

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
Loading