Skip to content

Commit

Permalink
Update build constraints to Go 1.18 (#16966)
Browse files Browse the repository at this point in the history
Specify 1.18 in go.mod file.
  • Loading branch information
jhendrixMSFT committed Mar 15, 2022
1 parent 0451e84 commit 7401e75
Show file tree
Hide file tree
Showing 84 changed files with 172 additions and 168 deletions.
4 changes: 2 additions & 2 deletions sdk/azcore/arm/client_options.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build go1.16
// +build go1.16
//go:build go1.18
// +build go1.18

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

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

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

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
4 changes: 2 additions & 2 deletions sdk/azcore/arm/internal/pollers/async/async_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build go1.16
// +build go1.16
//go:build go1.18
// +build go1.18

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

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
4 changes: 2 additions & 2 deletions sdk/azcore/arm/internal/pollers/body/body_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build go1.16
// +build go1.16
//go:build go1.18
// +build go1.18

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

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Expand Down
4 changes: 2 additions & 2 deletions sdk/azcore/arm/internal/pollers/loc/loc_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build go1.16
// +build go1.16
//go:build go1.18
// +build go1.18

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

go 1.16
require (
github.com/davecgh/go-spew v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/text v0.3.6 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
)

go 1.18
3 changes: 0 additions & 3 deletions sdk/azcore/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qx
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
Expand Down
4 changes: 2 additions & 2 deletions sdk/azcore/internal/pipeline/pipeline.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build go1.16
// +build go1.16
//go:build go1.18
// +build go1.18

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

0 comments on commit 7401e75

Please sign in to comment.