From 08169baa564d103512573d3f076337ea4d44cda9 Mon Sep 17 00:00:00 2001 From: Cody Oss <6331106+codyoss@users.noreply.github.com> Date: Thu, 26 Aug 2021 06:48:57 -0600 Subject: [PATCH] chore: update infra to 1.17 (#4675) --- .github/renovate.json | 2 +- .github/workflows/release-submodule.yaml | 2 +- accessapproval/go_mod_tidy_hack.go | 1 + aiplatform/go_mod_tidy_hack.go | 1 + analytics/go_mod_tidy_hack.go | 1 + apigateway/go_mod_tidy_hack.go | 1 + apigeeconnect/go_mod_tidy_hack.go | 1 + appengine/go_mod_tidy_hack.go | 1 + area120/go_mod_tidy_hack.go | 1 + artifactregistry/go_mod_tidy_hack.go | 1 + asset/go_mod_tidy_hack.go | 1 + assuredworkloads/go_mod_tidy_hack.go | 1 + automl/go_mod_tidy_hack.go | 1 + bigquery/benchmarks/bench.go | 3 ++- bigquery/go_mod_tidy_hack.go | 1 + bigtable/go_mod_tidy_hack.go | 1 + billing/go_mod_tidy_hack.go | 1 + binaryauthorization/go_mod_tidy_hack.go | 1 + channel/go_mod_tidy_hack.go | 1 + cloudbuild/go_mod_tidy_hack.go | 1 + clouddms/go_mod_tidy_hack.go | 1 + cloudtasks/go_mod_tidy_hack.go | 1 + cmd/go-cloud-debug-agent/debuglet.go | 1 + .../internal/debug/cmd/debugproxy/main.go | 1 + cmd/go-cloud-debug-agent/internal/debug/dwarf/frame_test.go | 1 + cmd/go-cloud-debug-agent/internal/debug/dwarf/pclntab_test.go | 1 + cmd/go-cloud-debug-agent/internal/debug/elf/file_test.go | 1 + cmd/go-cloud-debug-agent/internal/debug/elf/symbols_test.go | 1 + cmd/go-cloud-debug-agent/internal/debug/gosym/pclntab_test.go | 1 + cmd/go-cloud-debug-agent/internal/debug/local/local.go | 1 + cmd/go-cloud-debug-agent/internal/debug/remote/remote.go | 1 + cmd/go-cloud-debug-agent/internal/debug/server/dwarf.go | 1 + cmd/go-cloud-debug-agent/internal/debug/server/eval.go | 1 + cmd/go-cloud-debug-agent/internal/debug/server/peek.go | 1 + cmd/go-cloud-debug-agent/internal/debug/server/print.go | 1 + cmd/go-cloud-debug-agent/internal/debug/server/ptrace.go | 1 + cmd/go-cloud-debug-agent/internal/debug/server/server.go | 1 + cmd/go-cloud-debug-agent/internal/debug/server/value.go | 1 + .../internal/debug/tests/peek/peek_test.go | 1 + compute/metadata/retry_linux.go | 1 + compute/metadata/retry_linux_test.go | 1 + container/go_mod_tidy_hack.go | 1 + containeranalysis/go_mod_tidy_hack.go | 1 + datacatalog/go_mod_tidy_hack.go | 1 + dataflow/go_mod_tidy_hack.go | 1 + datafusion/go_mod_tidy_hack.go | 1 + datalabeling/go_mod_tidy_hack.go | 1 + dataproc/go_mod_tidy_hack.go | 1 + dataqna/go_mod_tidy_hack.go | 1 + datastore/go_mod_tidy_hack.go | 1 + datastream/go_mod_tidy_hack.go | 1 + dialogflow/go_mod_tidy_hack.go | 1 + dlp/go_mod_tidy_hack.go | 1 + documentai/go_mod_tidy_hack.go | 1 + domains/go_mod_tidy_hack.go | 1 + errorreporting/go_mod_tidy_hack.go | 1 + essentialcontacts/go_mod_tidy_hack.go | 1 + eventarc/go_mod_tidy_hack.go | 1 + firestore/go_mod_tidy_hack.go | 1 + functions/go_mod_tidy_hack.go | 1 + gaming/go_mod_tidy_hack.go | 1 + gkeconnect/go_mod_tidy_hack.go | 1 + gkehub/go_mod_tidy_hack.go | 1 + grafeas/go_mod_tidy_hack.go | 1 + gsuiteaddons/go_mod_tidy_hack.go | 1 + httpreplay/cmd/httpr/integration_test.go | 1 + iap/go_mod_tidy_hack.go | 1 + internal/apidiff/apidiff.go | 1 + internal/apidiff/apidiff_test.go | 1 + internal/gapicgen/cmd/genbot/Dockerfile | 2 +- internal/gapicgen/cmd/genbot/bot.go | 1 + internal/gapicgen/cmd/genbot/generate.go | 1 + internal/gapicgen/cmd/genbot/local.go | 1 + internal/gapicgen/cmd/genbot/main.go | 1 + internal/gapicgen/cmd/genbot/update.go | 1 + internal/gapicgen/generator/generator.go | 1 + internal/gapicgen/tools.go | 1 + internal/godocfx/godocfx_test.go | 1 + internal/godocfx/index.go | 1 + internal/godocfx/index_test.go | 1 + internal/godocfx/main.go | 1 + internal/godocfx/parse.go | 1 + internal/godocfx/timesaver.go | 1 + internal/kokoro/check_incompat_changes.sh | 4 ++-- internal/kokoro/vet.sh | 2 +- internal/pretty/diff.go | 1 + iot/go_mod_tidy_hack.go | 1 + kms/go_mod_tidy_hack.go | 1 + language/go_mod_tidy_hack.go | 1 + lifesciences/go_mod_tidy_hack.go | 1 + logging/go_mod_tidy_hack.go | 1 + managedidentities/go_mod_tidy_hack.go | 1 + mediatranslation/go_mod_tidy_hack.go | 1 + memcache/go_mod_tidy_hack.go | 1 + metastore/go_mod_tidy_hack.go | 1 + monitoring/go_mod_tidy_hack.go | 1 + networkconnectivity/go_mod_tidy_hack.go | 1 + networkmanagement/go_mod_tidy_hack.go | 1 + notebooks/go_mod_tidy_hack.go | 1 + orgpolicy/go_mod_tidy_hack.go | 1 + osconfig/go_mod_tidy_hack.go | 1 + oslogin/go_mod_tidy_hack.go | 1 + phishingprotection/go_mod_tidy_hack.go | 1 + policytroubleshooter/go_mod_tidy_hack.go | 1 + privatecatalog/go_mod_tidy_hack.go | 1 + profiler/go_mod_tidy_hack.go | 1 + profiler/integration_test.go | 1 + pubsub/debug.go | 1 + pubsub/go_mod_tidy_hack.go | 1 + pubsub/nodebug.go | 1 + pubsublite/go_mod_tidy_hack.go | 1 + pubsublite/internal/wire/version.go | 1 + pubsublite/internal/wire/version_not112.go | 1 + pubsublite/internal/wire/version_test.go | 1 + recaptchaenterprise/go_mod_tidy_hack.go | 1 + recommendationengine/go_mod_tidy_hack.go | 1 + recommender/go_mod_tidy_hack.go | 1 + redis/go_mod_tidy_hack.go | 1 + resourcemanager/go_mod_tidy_hack.go | 1 + resourcesettings/go_mod_tidy_hack.go | 1 + retail/go_mod_tidy_hack.go | 1 + scheduler/go_mod_tidy_hack.go | 1 + secretmanager/go_mod_tidy_hack.go | 1 + security/go_mod_tidy_hack.go | 1 + securitycenter/go_mod_tidy_hack.go | 1 + servicecontrol/go_mod_tidy_hack.go | 1 + servicedirectory/go_mod_tidy_hack.go | 1 + servicemanagement/go_mod_tidy_hack.go | 1 + serviceusage/go_mod_tidy_hack.go | 1 + shell/go_mod_tidy_hack.go | 1 + spanner/big_pdml_test.go | 1 + spanner/errors112.go | 1 + spanner/errors113.go | 1 + spanner/go_mod_tidy_hack.go | 1 + spanner/spansql/fuzz.go | 1 + speech/go_mod_tidy_hack.go | 1 + storage/go_mod_tidy_hack.go | 1 + storage/reader_go114_test.go | 1 + storagetransfer/go_mod_tidy_hack.go | 1 + talent/go_mod_tidy_hack.go | 1 + texttospeech/go_mod_tidy_hack.go | 1 + third_party/go/doc/comment.go | 1 + third_party/go/doc/comment_test.go | 1 + third_party/go/doc/doc.go | 1 + third_party/go/doc/example.go | 1 + third_party/go/doc/example_test.go | 1 + third_party/go/doc/exports.go | 1 + third_party/go/doc/filter.go | 1 + third_party/go/doc/headscan.go | 1 + third_party/go/doc/reader.go | 1 + third_party/go/doc/synopsis.go | 1 + third_party/go/doc/synopsis_test.go | 1 + third_party/pkgsite/print_type.go | 1 + tpu/go_mod_tidy_hack.go | 1 + trace/go_mod_tidy_hack.go | 1 + translate/go_mod_tidy_hack.go | 1 + video/go_mod_tidy_hack.go | 1 + videointelligence/go_mod_tidy_hack.go | 1 + vision/go_mod_tidy_hack.go | 1 + vpcaccess/go_mod_tidy_hack.go | 1 + webrisk/go_mod_tidy_hack.go | 1 + websecurityscanner/go_mod_tidy_hack.go | 1 + workflows/go_mod_tidy_hack.go | 1 + 163 files changed, 165 insertions(+), 7 deletions(-) diff --git a/.github/renovate.json b/.github/renovate.json index 8ff991fac54..2a7289f1987 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -15,7 +15,7 @@ ], "force": { "constraints": { - "go": "1.16" + "go": "1.17" } } } diff --git a/.github/workflows/release-submodule.yaml b/.github/workflows/release-submodule.yaml index f4ad84be4cc..d383e3f4d14 100644 --- a/.github/workflows/release-submodule.yaml +++ b/.github/workflows/release-submodule.yaml @@ -22,7 +22,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v2 with: - go-version: '^1.16' + go-version: '^1.17' - id: interrogate run: go run internal/actions/cmd/changefinder/main.go release-pr: # Create the release PR based on commit history: diff --git a/accessapproval/go_mod_tidy_hack.go b/accessapproval/go_mod_tidy_hack.go index 4a768aadef8..58dcfc2b827 100644 --- a/accessapproval/go_mod_tidy_hack.go +++ b/accessapproval/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package accessapproval diff --git a/aiplatform/go_mod_tidy_hack.go b/aiplatform/go_mod_tidy_hack.go index aff966b4206..62c708ca8ea 100644 --- a/aiplatform/go_mod_tidy_hack.go +++ b/aiplatform/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package aiplatform diff --git a/analytics/go_mod_tidy_hack.go b/analytics/go_mod_tidy_hack.go index 673ffbbb615..21ab77910ea 100644 --- a/analytics/go_mod_tidy_hack.go +++ b/analytics/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package analytics diff --git a/apigateway/go_mod_tidy_hack.go b/apigateway/go_mod_tidy_hack.go index fc42dc3321a..7712a366f2b 100644 --- a/apigateway/go_mod_tidy_hack.go +++ b/apigateway/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package apigateway diff --git a/apigeeconnect/go_mod_tidy_hack.go b/apigeeconnect/go_mod_tidy_hack.go index 524e77beae0..c09dd81c658 100644 --- a/apigeeconnect/go_mod_tidy_hack.go +++ b/apigeeconnect/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package apigeeconnect diff --git a/appengine/go_mod_tidy_hack.go b/appengine/go_mod_tidy_hack.go index 2a3edd0c94b..1b1b405fb93 100644 --- a/appengine/go_mod_tidy_hack.go +++ b/appengine/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package appengine diff --git a/area120/go_mod_tidy_hack.go b/area120/go_mod_tidy_hack.go index 73a1fae3f97..95639e0a8f5 100644 --- a/area120/go_mod_tidy_hack.go +++ b/area120/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package area120 diff --git a/artifactregistry/go_mod_tidy_hack.go b/artifactregistry/go_mod_tidy_hack.go index 4a53906cc5c..68394e59862 100644 --- a/artifactregistry/go_mod_tidy_hack.go +++ b/artifactregistry/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package artifactregistry diff --git a/asset/go_mod_tidy_hack.go b/asset/go_mod_tidy_hack.go index ec459936331..92c2d3219d5 100644 --- a/asset/go_mod_tidy_hack.go +++ b/asset/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package asset diff --git a/assuredworkloads/go_mod_tidy_hack.go b/assuredworkloads/go_mod_tidy_hack.go index e7ae55d1679..d91c28a5668 100644 --- a/assuredworkloads/go_mod_tidy_hack.go +++ b/assuredworkloads/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package assuredworkloads diff --git a/automl/go_mod_tidy_hack.go b/automl/go_mod_tidy_hack.go index b5e3f0b1d40..217d139721f 100644 --- a/automl/go_mod_tidy_hack.go +++ b/automl/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package automl diff --git a/bigquery/benchmarks/bench.go b/bigquery/benchmarks/bench.go index 4149bc48375..5aff71d1eea 100644 --- a/bigquery/benchmarks/bench.go +++ b/bigquery/benchmarks/bench.go @@ -12,7 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -//+build ignore +//go:build ignore +// +build ignore package main diff --git a/bigquery/go_mod_tidy_hack.go b/bigquery/go_mod_tidy_hack.go index 876db71fe1e..84f789e4bef 100644 --- a/bigquery/go_mod_tidy_hack.go +++ b/bigquery/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package bigquery diff --git a/bigtable/go_mod_tidy_hack.go b/bigtable/go_mod_tidy_hack.go index 90d00ac433c..364fbc3d774 100644 --- a/bigtable/go_mod_tidy_hack.go +++ b/bigtable/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package bigtable diff --git a/billing/go_mod_tidy_hack.go b/billing/go_mod_tidy_hack.go index f38e5b143cc..d176f26683d 100644 --- a/billing/go_mod_tidy_hack.go +++ b/billing/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package billing diff --git a/binaryauthorization/go_mod_tidy_hack.go b/binaryauthorization/go_mod_tidy_hack.go index 420f647324b..8e926fab9a6 100644 --- a/binaryauthorization/go_mod_tidy_hack.go +++ b/binaryauthorization/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package binaryauthorization diff --git a/channel/go_mod_tidy_hack.go b/channel/go_mod_tidy_hack.go index 3ded7334557..5fd8c178da2 100644 --- a/channel/go_mod_tidy_hack.go +++ b/channel/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package channel diff --git a/cloudbuild/go_mod_tidy_hack.go b/cloudbuild/go_mod_tidy_hack.go index 3ce87342ea2..5de97e58ac5 100644 --- a/cloudbuild/go_mod_tidy_hack.go +++ b/cloudbuild/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package cloudbuild diff --git a/clouddms/go_mod_tidy_hack.go b/clouddms/go_mod_tidy_hack.go index f238b1dc424..2f208c64e37 100644 --- a/clouddms/go_mod_tidy_hack.go +++ b/clouddms/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package clouddms diff --git a/cloudtasks/go_mod_tidy_hack.go b/cloudtasks/go_mod_tidy_hack.go index 1d68e18801d..fcd30812a91 100644 --- a/cloudtasks/go_mod_tidy_hack.go +++ b/cloudtasks/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package cloudtasks diff --git a/cmd/go-cloud-debug-agent/debuglet.go b/cmd/go-cloud-debug-agent/debuglet.go index 24c59cb7ac8..1e9831bf1ef 100644 --- a/cmd/go-cloud-debug-agent/debuglet.go +++ b/cmd/go-cloud-debug-agent/debuglet.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux && go1.7 // +build linux,go1.7 // Deprecated. diff --git a/cmd/go-cloud-debug-agent/internal/debug/cmd/debugproxy/main.go b/cmd/go-cloud-debug-agent/internal/debug/cmd/debugproxy/main.go index 23e6ec6e6b5..6632d09bbe8 100644 --- a/cmd/go-cloud-debug-agent/internal/debug/cmd/debugproxy/main.go +++ b/cmd/go-cloud-debug-agent/internal/debug/cmd/debugproxy/main.go @@ -15,6 +15,7 @@ // debugproxy connects to the target binary, and serves an RPC interface using // the types in server/protocol to access and control it. +//go:build linux // +build linux package main diff --git a/cmd/go-cloud-debug-agent/internal/debug/dwarf/frame_test.go b/cmd/go-cloud-debug-agent/internal/debug/dwarf/frame_test.go index 9aa04f2ef3f..ec526a11e30 100644 --- a/cmd/go-cloud-debug-agent/internal/debug/dwarf/frame_test.go +++ b/cmd/go-cloud-debug-agent/internal/debug/dwarf/frame_test.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux // +build linux package dwarf_test diff --git a/cmd/go-cloud-debug-agent/internal/debug/dwarf/pclntab_test.go b/cmd/go-cloud-debug-agent/internal/debug/dwarf/pclntab_test.go index 485c76d6029..9de667bcba1 100644 --- a/cmd/go-cloud-debug-agent/internal/debug/dwarf/pclntab_test.go +++ b/cmd/go-cloud-debug-agent/internal/debug/dwarf/pclntab_test.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux && go1.10 // +build linux,go1.10 package dwarf_test diff --git a/cmd/go-cloud-debug-agent/internal/debug/elf/file_test.go b/cmd/go-cloud-debug-agent/internal/debug/elf/file_test.go index 4cc2699dba9..76b9c179b92 100644 --- a/cmd/go-cloud-debug-agent/internal/debug/elf/file_test.go +++ b/cmd/go-cloud-debug-agent/internal/debug/elf/file_test.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build go1.7 // +build go1.7 package elf diff --git a/cmd/go-cloud-debug-agent/internal/debug/elf/symbols_test.go b/cmd/go-cloud-debug-agent/internal/debug/elf/symbols_test.go index 1eac61fd67f..6d7d0857a85 100644 --- a/cmd/go-cloud-debug-agent/internal/debug/elf/symbols_test.go +++ b/cmd/go-cloud-debug-agent/internal/debug/elf/symbols_test.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build go1.7 // +build go1.7 package elf diff --git a/cmd/go-cloud-debug-agent/internal/debug/gosym/pclntab_test.go b/cmd/go-cloud-debug-agent/internal/debug/gosym/pclntab_test.go index c7ac8a8b3e7..1fe27ef4718 100644 --- a/cmd/go-cloud-debug-agent/internal/debug/gosym/pclntab_test.go +++ b/cmd/go-cloud-debug-agent/internal/debug/gosym/pclntab_test.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux // +build linux package gosym diff --git a/cmd/go-cloud-debug-agent/internal/debug/local/local.go b/cmd/go-cloud-debug-agent/internal/debug/local/local.go index 69ce7f980a2..7f6ace5021b 100644 --- a/cmd/go-cloud-debug-agent/internal/debug/local/local.go +++ b/cmd/go-cloud-debug-agent/internal/debug/local/local.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux // +build linux // Package local provides access to a local program. diff --git a/cmd/go-cloud-debug-agent/internal/debug/remote/remote.go b/cmd/go-cloud-debug-agent/internal/debug/remote/remote.go index 481078bae85..f120bc3940e 100644 --- a/cmd/go-cloud-debug-agent/internal/debug/remote/remote.go +++ b/cmd/go-cloud-debug-agent/internal/debug/remote/remote.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux // +build linux // Package remote provides remote access to a debugproxy server. diff --git a/cmd/go-cloud-debug-agent/internal/debug/server/dwarf.go b/cmd/go-cloud-debug-agent/internal/debug/server/dwarf.go index a1282ef6a2e..5a0f4d93852 100644 --- a/cmd/go-cloud-debug-agent/internal/debug/server/dwarf.go +++ b/cmd/go-cloud-debug-agent/internal/debug/server/dwarf.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux // +build linux package server diff --git a/cmd/go-cloud-debug-agent/internal/debug/server/eval.go b/cmd/go-cloud-debug-agent/internal/debug/server/eval.go index cf944ff6f9d..1d0ead28771 100644 --- a/cmd/go-cloud-debug-agent/internal/debug/server/eval.go +++ b/cmd/go-cloud-debug-agent/internal/debug/server/eval.go @@ -20,6 +20,7 @@ // Stricter type checking. // More expression types. +//go:build linux // +build linux package server diff --git a/cmd/go-cloud-debug-agent/internal/debug/server/peek.go b/cmd/go-cloud-debug-agent/internal/debug/server/peek.go index 1c6ff695ede..33e0b3eba7a 100644 --- a/cmd/go-cloud-debug-agent/internal/debug/server/peek.go +++ b/cmd/go-cloud-debug-agent/internal/debug/server/peek.go @@ -14,6 +14,7 @@ // Functions for reading values of various types from a program's memory. +//go:build linux // +build linux package server diff --git a/cmd/go-cloud-debug-agent/internal/debug/server/print.go b/cmd/go-cloud-debug-agent/internal/debug/server/print.go index feb2e5db031..e8f290cb80a 100644 --- a/cmd/go-cloud-debug-agent/internal/debug/server/print.go +++ b/cmd/go-cloud-debug-agent/internal/debug/server/print.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux // +build linux package server diff --git a/cmd/go-cloud-debug-agent/internal/debug/server/ptrace.go b/cmd/go-cloud-debug-agent/internal/debug/server/ptrace.go index 7df857dbc49..4fd05890577 100644 --- a/cmd/go-cloud-debug-agent/internal/debug/server/ptrace.go +++ b/cmd/go-cloud-debug-agent/internal/debug/server/ptrace.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux // +build linux package server diff --git a/cmd/go-cloud-debug-agent/internal/debug/server/server.go b/cmd/go-cloud-debug-agent/internal/debug/server/server.go index 54c1f1c1057..55b894f7cf4 100644 --- a/cmd/go-cloud-debug-agent/internal/debug/server/server.go +++ b/cmd/go-cloud-debug-agent/internal/debug/server/server.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux // +build linux // Package server provides RPC access to a local program being debugged. diff --git a/cmd/go-cloud-debug-agent/internal/debug/server/value.go b/cmd/go-cloud-debug-agent/internal/debug/server/value.go index 18a3ef367ed..87633e846e9 100644 --- a/cmd/go-cloud-debug-agent/internal/debug/server/value.go +++ b/cmd/go-cloud-debug-agent/internal/debug/server/value.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux // +build linux package server diff --git a/cmd/go-cloud-debug-agent/internal/debug/tests/peek/peek_test.go b/cmd/go-cloud-debug-agent/internal/debug/tests/peek/peek_test.go index d85de78146f..6ff8caed643 100644 --- a/cmd/go-cloud-debug-agent/internal/debug/tests/peek/peek_test.go +++ b/cmd/go-cloud-debug-agent/internal/debug/tests/peek/peek_test.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux // +build linux package peek_test diff --git a/compute/metadata/retry_linux.go b/compute/metadata/retry_linux.go index 6e90cb85ba7..bb412f8917e 100644 --- a/compute/metadata/retry_linux.go +++ b/compute/metadata/retry_linux.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux // +build linux package metadata diff --git a/compute/metadata/retry_linux_test.go b/compute/metadata/retry_linux_test.go index a046c697357..af61d30df1c 100644 --- a/compute/metadata/retry_linux_test.go +++ b/compute/metadata/retry_linux_test.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux // +build linux package metadata diff --git a/container/go_mod_tidy_hack.go b/container/go_mod_tidy_hack.go index fd4f5d928a4..9abdd8594d6 100644 --- a/container/go_mod_tidy_hack.go +++ b/container/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package container diff --git a/containeranalysis/go_mod_tidy_hack.go b/containeranalysis/go_mod_tidy_hack.go index 0788d31657f..f7dcd341ae2 100644 --- a/containeranalysis/go_mod_tidy_hack.go +++ b/containeranalysis/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package containeranalysis diff --git a/datacatalog/go_mod_tidy_hack.go b/datacatalog/go_mod_tidy_hack.go index 3eecb36f096..acecacb0d18 100644 --- a/datacatalog/go_mod_tidy_hack.go +++ b/datacatalog/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package datacatalog diff --git a/dataflow/go_mod_tidy_hack.go b/dataflow/go_mod_tidy_hack.go index 87b4704b104..272b5a66368 100644 --- a/dataflow/go_mod_tidy_hack.go +++ b/dataflow/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package dataflow diff --git a/datafusion/go_mod_tidy_hack.go b/datafusion/go_mod_tidy_hack.go index 39b0035218e..6fd6f16e0b0 100644 --- a/datafusion/go_mod_tidy_hack.go +++ b/datafusion/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package datafusion diff --git a/datalabeling/go_mod_tidy_hack.go b/datalabeling/go_mod_tidy_hack.go index e8acd5011f6..91b972954b5 100644 --- a/datalabeling/go_mod_tidy_hack.go +++ b/datalabeling/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package datalabeling diff --git a/dataproc/go_mod_tidy_hack.go b/dataproc/go_mod_tidy_hack.go index 94dd4a13165..bdbc99c33db 100644 --- a/dataproc/go_mod_tidy_hack.go +++ b/dataproc/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package dataproc diff --git a/dataqna/go_mod_tidy_hack.go b/dataqna/go_mod_tidy_hack.go index 3a6d94c3cfd..e1cbd39152d 100644 --- a/dataqna/go_mod_tidy_hack.go +++ b/dataqna/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package dataqna diff --git a/datastore/go_mod_tidy_hack.go b/datastore/go_mod_tidy_hack.go index 376c5185067..217bd13f1b9 100644 --- a/datastore/go_mod_tidy_hack.go +++ b/datastore/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package datastore diff --git a/datastream/go_mod_tidy_hack.go b/datastream/go_mod_tidy_hack.go index 5909fcfc41b..2f7f6c27e8f 100644 --- a/datastream/go_mod_tidy_hack.go +++ b/datastream/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package datastream diff --git a/dialogflow/go_mod_tidy_hack.go b/dialogflow/go_mod_tidy_hack.go index ba1dfce25c4..9e8fb8aec90 100644 --- a/dialogflow/go_mod_tidy_hack.go +++ b/dialogflow/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package dialogflow diff --git a/dlp/go_mod_tidy_hack.go b/dlp/go_mod_tidy_hack.go index 1fe41ad0707..fbde73db994 100644 --- a/dlp/go_mod_tidy_hack.go +++ b/dlp/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package dlp diff --git a/documentai/go_mod_tidy_hack.go b/documentai/go_mod_tidy_hack.go index 2cec3274f2c..2bf982fc324 100644 --- a/documentai/go_mod_tidy_hack.go +++ b/documentai/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package documentai diff --git a/domains/go_mod_tidy_hack.go b/domains/go_mod_tidy_hack.go index d16ca9fb1cc..7b17c16b24c 100644 --- a/domains/go_mod_tidy_hack.go +++ b/domains/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package domains diff --git a/errorreporting/go_mod_tidy_hack.go b/errorreporting/go_mod_tidy_hack.go index 81ea410b143..f3b01efbee0 100644 --- a/errorreporting/go_mod_tidy_hack.go +++ b/errorreporting/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package errorreporting diff --git a/essentialcontacts/go_mod_tidy_hack.go b/essentialcontacts/go_mod_tidy_hack.go index a8de25df57d..f9d70aca835 100644 --- a/essentialcontacts/go_mod_tidy_hack.go +++ b/essentialcontacts/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package essentialcontacts diff --git a/eventarc/go_mod_tidy_hack.go b/eventarc/go_mod_tidy_hack.go index 38fd0fd9a96..c4b0e2c488b 100644 --- a/eventarc/go_mod_tidy_hack.go +++ b/eventarc/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package eventarc diff --git a/firestore/go_mod_tidy_hack.go b/firestore/go_mod_tidy_hack.go index 9b612f6765d..590a213d224 100644 --- a/firestore/go_mod_tidy_hack.go +++ b/firestore/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package firestore diff --git a/functions/go_mod_tidy_hack.go b/functions/go_mod_tidy_hack.go index e90b3aa0c51..016ae09d6b6 100644 --- a/functions/go_mod_tidy_hack.go +++ b/functions/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package functions diff --git a/gaming/go_mod_tidy_hack.go b/gaming/go_mod_tidy_hack.go index 9c7b8e50af7..a7f55f12ee1 100644 --- a/gaming/go_mod_tidy_hack.go +++ b/gaming/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package gaming diff --git a/gkeconnect/go_mod_tidy_hack.go b/gkeconnect/go_mod_tidy_hack.go index a364153373f..8b52122ce1d 100644 --- a/gkeconnect/go_mod_tidy_hack.go +++ b/gkeconnect/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package gkeconnect diff --git a/gkehub/go_mod_tidy_hack.go b/gkehub/go_mod_tidy_hack.go index e2afdbf879a..58a7a5f3348 100644 --- a/gkehub/go_mod_tidy_hack.go +++ b/gkehub/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package gkehub diff --git a/grafeas/go_mod_tidy_hack.go b/grafeas/go_mod_tidy_hack.go index f8513b3f89f..c864af5f5a6 100644 --- a/grafeas/go_mod_tidy_hack.go +++ b/grafeas/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package grafeas diff --git a/gsuiteaddons/go_mod_tidy_hack.go b/gsuiteaddons/go_mod_tidy_hack.go index 70f398abe91..a0e6135427e 100644 --- a/gsuiteaddons/go_mod_tidy_hack.go +++ b/gsuiteaddons/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package gsuiteaddons diff --git a/httpreplay/cmd/httpr/integration_test.go b/httpreplay/cmd/httpr/integration_test.go index bcce2dfb326..0b1915d48b5 100644 --- a/httpreplay/cmd/httpr/integration_test.go +++ b/httpreplay/cmd/httpr/integration_test.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux // +build linux package main_test diff --git a/iap/go_mod_tidy_hack.go b/iap/go_mod_tidy_hack.go index 7aa355cd34d..562cd04f3e2 100644 --- a/iap/go_mod_tidy_hack.go +++ b/iap/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package iap diff --git a/internal/apidiff/apidiff.go b/internal/apidiff/apidiff.go index f97d1c72689..66d4ae890b9 100644 --- a/internal/apidiff/apidiff.go +++ b/internal/apidiff/apidiff.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux || darwin // +build linux darwin package main diff --git a/internal/apidiff/apidiff_test.go b/internal/apidiff/apidiff_test.go index c7c2ba35bcb..e4c4bf5b571 100644 --- a/internal/apidiff/apidiff_test.go +++ b/internal/apidiff/apidiff_test.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux || darwin // +build linux darwin package main diff --git a/internal/gapicgen/cmd/genbot/Dockerfile b/internal/gapicgen/cmd/genbot/Dockerfile index c6665d97d66..564b75fb911 100644 --- a/internal/gapicgen/cmd/genbot/Dockerfile +++ b/internal/gapicgen/cmd/genbot/Dockerfile @@ -16,7 +16,7 @@ RUN apk add protoc protobuf-dev RUN protoc --version # Install Go. -RUN wget -O /tmp/go.tgz https://dl.google.com/go/go1.16.linux-amd64.tar.gz && \ +RUN wget -O /tmp/go.tgz https://dl.google.com/go/go1.17.linux-amd64.tar.gz && \ tar -C /usr/local -xzf /tmp/go.tgz && \ rm /tmp/go.tgz ENV PATH /usr/local/go/bin:$PATH diff --git a/internal/gapicgen/cmd/genbot/bot.go b/internal/gapicgen/cmd/genbot/bot.go index 5ab3c3b3ff4..af39889b43e 100644 --- a/internal/gapicgen/cmd/genbot/bot.go +++ b/internal/gapicgen/cmd/genbot/bot.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows // +build !windows package main diff --git a/internal/gapicgen/cmd/genbot/generate.go b/internal/gapicgen/cmd/genbot/generate.go index b4ea82b336c..8a6e75a460e 100644 --- a/internal/gapicgen/cmd/genbot/generate.go +++ b/internal/gapicgen/cmd/genbot/generate.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows // +build !windows package main diff --git a/internal/gapicgen/cmd/genbot/local.go b/internal/gapicgen/cmd/genbot/local.go index 83d2c46c3f9..c926f94b81a 100644 --- a/internal/gapicgen/cmd/genbot/local.go +++ b/internal/gapicgen/cmd/genbot/local.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows // +build !windows package main diff --git a/internal/gapicgen/cmd/genbot/main.go b/internal/gapicgen/cmd/genbot/main.go index 3e099c836ca..5046928b94f 100644 --- a/internal/gapicgen/cmd/genbot/main.go +++ b/internal/gapicgen/cmd/genbot/main.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows // +build !windows // genbot is a binary for generating gapics and creating CLs/PRs with the results. diff --git a/internal/gapicgen/cmd/genbot/update.go b/internal/gapicgen/cmd/genbot/update.go index 1487c1cae15..47f99c42426 100644 --- a/internal/gapicgen/cmd/genbot/update.go +++ b/internal/gapicgen/cmd/genbot/update.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows // +build !windows package main diff --git a/internal/gapicgen/generator/generator.go b/internal/gapicgen/generator/generator.go index bea74721bc2..7285d588e33 100644 --- a/internal/gapicgen/generator/generator.go +++ b/internal/gapicgen/generator/generator.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows // +build !windows // Package generator provides tools for generating clients. diff --git a/internal/gapicgen/tools.go b/internal/gapicgen/tools.go index 2893fcdeea1..f91cd484029 100644 --- a/internal/gapicgen/tools.go +++ b/internal/gapicgen/tools.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows // +build !windows // Package gapicgen provides some helpers for gapicgen binaries. diff --git a/internal/godocfx/godocfx_test.go b/internal/godocfx/godocfx_test.go index d91c32ffcb2..9fee66fcbb2 100644 --- a/internal/godocfx/godocfx_test.go +++ b/internal/godocfx/godocfx_test.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build go1.15 // +build go1.15 package main diff --git a/internal/godocfx/index.go b/internal/godocfx/index.go index 83ec59dbdde..361027ea342 100644 --- a/internal/godocfx/index.go +++ b/internal/godocfx/index.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build go1.15 // +build go1.15 package main diff --git a/internal/godocfx/index_test.go b/internal/godocfx/index_test.go index db1e0b3ef97..3fe8250dd66 100644 --- a/internal/godocfx/index_test.go +++ b/internal/godocfx/index_test.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build go1.15 // +build go1.15 package main diff --git a/internal/godocfx/main.go b/internal/godocfx/main.go index 6ee5a8beb57..ba3152d97f6 100644 --- a/internal/godocfx/main.go +++ b/internal/godocfx/main.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux && go1.15 // +build linux,go1.15 /*Command godocfx generates DocFX YAML for Go code. diff --git a/internal/godocfx/parse.go b/internal/godocfx/parse.go index b1100e3c96b..884ac0b99a5 100644 --- a/internal/godocfx/parse.go +++ b/internal/godocfx/parse.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build go1.15 // +build go1.15 // TODO: diff --git a/internal/godocfx/timesaver.go b/internal/godocfx/timesaver.go index cf93234bf72..60dc9394454 100644 --- a/internal/godocfx/timesaver.go +++ b/internal/godocfx/timesaver.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build go1.15 // +build go1.15 package main diff --git a/internal/kokoro/check_incompat_changes.sh b/internal/kokoro/check_incompat_changes.sh index a20090e018e..3217e58c61f 100755 --- a/internal/kokoro/check_incompat_changes.sh +++ b/internal/kokoro/check_incompat_changes.sh @@ -16,8 +16,8 @@ # Display commands being run set -x -# Only run apidiff checks on go1.16 (we only need it once). -if [[ `go version` != *"go1.16"* ]]; then +# Only run apidiff checks on latest (we only need it once). +if [[ `go version` != *"go1.17"* ]]; then exit 0 fi diff --git a/internal/kokoro/vet.sh b/internal/kokoro/vet.sh index 5c0a0f7b8a4..bd87e2d9de3 100755 --- a/internal/kokoro/vet.sh +++ b/internal/kokoro/vet.sh @@ -19,7 +19,7 @@ set -e # Display commands being run set -x -if [[ $(go version) != *"go1.16"* ]]; then +if [[ $(go version) != *"go1.17"* ]]; then exit 0 fi diff --git a/internal/pretty/diff.go b/internal/pretty/diff.go index d9b5fb5f887..c5217244b7b 100644 --- a/internal/pretty/diff.go +++ b/internal/pretty/diff.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux // +build linux package pretty diff --git a/iot/go_mod_tidy_hack.go b/iot/go_mod_tidy_hack.go index a5700ce509c..e9e7b772f01 100644 --- a/iot/go_mod_tidy_hack.go +++ b/iot/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package iot diff --git a/kms/go_mod_tidy_hack.go b/kms/go_mod_tidy_hack.go index 8a98de88a14..07186e6a2fd 100644 --- a/kms/go_mod_tidy_hack.go +++ b/kms/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package kms diff --git a/language/go_mod_tidy_hack.go b/language/go_mod_tidy_hack.go index 010d3cb80f5..03b0cb87129 100644 --- a/language/go_mod_tidy_hack.go +++ b/language/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package language diff --git a/lifesciences/go_mod_tidy_hack.go b/lifesciences/go_mod_tidy_hack.go index c59c2e07ea8..037c4e41157 100644 --- a/lifesciences/go_mod_tidy_hack.go +++ b/lifesciences/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package lifesciences diff --git a/logging/go_mod_tidy_hack.go b/logging/go_mod_tidy_hack.go index a932c70c41e..6d11e4f7815 100644 --- a/logging/go_mod_tidy_hack.go +++ b/logging/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package logging diff --git a/managedidentities/go_mod_tidy_hack.go b/managedidentities/go_mod_tidy_hack.go index 5ad601b21d4..adffe5cafcd 100644 --- a/managedidentities/go_mod_tidy_hack.go +++ b/managedidentities/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package managedidentities diff --git a/mediatranslation/go_mod_tidy_hack.go b/mediatranslation/go_mod_tidy_hack.go index 20048f32c9b..8683ff06b79 100644 --- a/mediatranslation/go_mod_tidy_hack.go +++ b/mediatranslation/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package mediatranslation diff --git a/memcache/go_mod_tidy_hack.go b/memcache/go_mod_tidy_hack.go index 501a1a2c176..b9a92d26a83 100644 --- a/memcache/go_mod_tidy_hack.go +++ b/memcache/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package memcache diff --git a/metastore/go_mod_tidy_hack.go b/metastore/go_mod_tidy_hack.go index d624cf119e2..1bd6b314c7a 100644 --- a/metastore/go_mod_tidy_hack.go +++ b/metastore/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package metastore diff --git a/monitoring/go_mod_tidy_hack.go b/monitoring/go_mod_tidy_hack.go index c1e125cb2f5..cdde16d4f4f 100644 --- a/monitoring/go_mod_tidy_hack.go +++ b/monitoring/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package monitoring diff --git a/networkconnectivity/go_mod_tidy_hack.go b/networkconnectivity/go_mod_tidy_hack.go index 68eb72041b5..3cc42bb736d 100644 --- a/networkconnectivity/go_mod_tidy_hack.go +++ b/networkconnectivity/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package networkconnectivity diff --git a/networkmanagement/go_mod_tidy_hack.go b/networkmanagement/go_mod_tidy_hack.go index 97e12472bcb..31fd9fbfaac 100644 --- a/networkmanagement/go_mod_tidy_hack.go +++ b/networkmanagement/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package networkmanagement diff --git a/notebooks/go_mod_tidy_hack.go b/notebooks/go_mod_tidy_hack.go index ebb2aab05d8..5803b2b4b1e 100644 --- a/notebooks/go_mod_tidy_hack.go +++ b/notebooks/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package notebooks diff --git a/orgpolicy/go_mod_tidy_hack.go b/orgpolicy/go_mod_tidy_hack.go index a4247e32c36..319896bccf9 100644 --- a/orgpolicy/go_mod_tidy_hack.go +++ b/orgpolicy/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package orgpolicy diff --git a/osconfig/go_mod_tidy_hack.go b/osconfig/go_mod_tidy_hack.go index 5771704776a..5a6d9d3c2d6 100644 --- a/osconfig/go_mod_tidy_hack.go +++ b/osconfig/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package osconfig diff --git a/oslogin/go_mod_tidy_hack.go b/oslogin/go_mod_tidy_hack.go index 5b199c326d1..f23b7208610 100644 --- a/oslogin/go_mod_tidy_hack.go +++ b/oslogin/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package oslogin diff --git a/phishingprotection/go_mod_tidy_hack.go b/phishingprotection/go_mod_tidy_hack.go index e7a8c6ce0c1..cefb92649c9 100644 --- a/phishingprotection/go_mod_tidy_hack.go +++ b/phishingprotection/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package phishingprotection diff --git a/policytroubleshooter/go_mod_tidy_hack.go b/policytroubleshooter/go_mod_tidy_hack.go index ec28c5f7e2b..6369db6f8ae 100644 --- a/policytroubleshooter/go_mod_tidy_hack.go +++ b/policytroubleshooter/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package policytroubleshooter diff --git a/privatecatalog/go_mod_tidy_hack.go b/privatecatalog/go_mod_tidy_hack.go index 224f7c53b15..45dc480a029 100644 --- a/privatecatalog/go_mod_tidy_hack.go +++ b/privatecatalog/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package privatecatalog diff --git a/profiler/go_mod_tidy_hack.go b/profiler/go_mod_tidy_hack.go index 079c25085f7..75da91d83f4 100644 --- a/profiler/go_mod_tidy_hack.go +++ b/profiler/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package profiler diff --git a/profiler/integration_test.go b/profiler/integration_test.go index 53b9477bb7e..6db37a56514 100644 --- a/profiler/integration_test.go +++ b/profiler/integration_test.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux // +build linux package profiler diff --git a/pubsub/debug.go b/pubsub/debug.go index 977ae577f7e..056bd6342d4 100644 --- a/pubsub/debug.go +++ b/pubsub/debug.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build psdebug // +build psdebug package pubsub diff --git a/pubsub/go_mod_tidy_hack.go b/pubsub/go_mod_tidy_hack.go index 20b865930b9..9e87975b0a3 100644 --- a/pubsub/go_mod_tidy_hack.go +++ b/pubsub/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package pubsub diff --git a/pubsub/nodebug.go b/pubsub/nodebug.go index 774a74a58df..92760220afc 100644 --- a/pubsub/nodebug.go +++ b/pubsub/nodebug.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !psdebug // +build !psdebug package pubsub diff --git a/pubsublite/go_mod_tidy_hack.go b/pubsublite/go_mod_tidy_hack.go index ef20748b4f2..83aa0f67b94 100644 --- a/pubsublite/go_mod_tidy_hack.go +++ b/pubsublite/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package pubsublite diff --git a/pubsublite/internal/wire/version.go b/pubsublite/internal/wire/version.go index c3f92783518..b5677386994 100644 --- a/pubsublite/internal/wire/version.go +++ b/pubsublite/internal/wire/version.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and +//go:build go1.12 // +build go1.12 package wire diff --git a/pubsublite/internal/wire/version_not112.go b/pubsublite/internal/wire/version_not112.go index 28ccfbfce4d..d23f4da24c3 100644 --- a/pubsublite/internal/wire/version_not112.go +++ b/pubsublite/internal/wire/version_not112.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // TODO: Remove file when the minimum supported version is Go1.12. +//go:build !go1.12 // +build !go1.12 package wire diff --git a/pubsublite/internal/wire/version_test.go b/pubsublite/internal/wire/version_test.go index a84c84c696f..6621b1ee47e 100644 --- a/pubsublite/internal/wire/version_test.go +++ b/pubsublite/internal/wire/version_test.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and +//go:build go1.12 // +build go1.12 package wire diff --git a/recaptchaenterprise/go_mod_tidy_hack.go b/recaptchaenterprise/go_mod_tidy_hack.go index e0b444dafec..279de375112 100644 --- a/recaptchaenterprise/go_mod_tidy_hack.go +++ b/recaptchaenterprise/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package recaptchaenterprise diff --git a/recommendationengine/go_mod_tidy_hack.go b/recommendationengine/go_mod_tidy_hack.go index 2e9e0a3573c..5a244cd2baa 100644 --- a/recommendationengine/go_mod_tidy_hack.go +++ b/recommendationengine/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package recommendationengine diff --git a/recommender/go_mod_tidy_hack.go b/recommender/go_mod_tidy_hack.go index 3db4530f9d0..2b20235d23d 100644 --- a/recommender/go_mod_tidy_hack.go +++ b/recommender/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package recommender diff --git a/redis/go_mod_tidy_hack.go b/redis/go_mod_tidy_hack.go index 20c1cf16ca3..52645503385 100644 --- a/redis/go_mod_tidy_hack.go +++ b/redis/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package redis diff --git a/resourcemanager/go_mod_tidy_hack.go b/resourcemanager/go_mod_tidy_hack.go index a6870d4e799..0686d9d4305 100644 --- a/resourcemanager/go_mod_tidy_hack.go +++ b/resourcemanager/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package resourcemanager diff --git a/resourcesettings/go_mod_tidy_hack.go b/resourcesettings/go_mod_tidy_hack.go index d540674a22c..160d288d5f5 100644 --- a/resourcesettings/go_mod_tidy_hack.go +++ b/resourcesettings/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package resourcesettings diff --git a/retail/go_mod_tidy_hack.go b/retail/go_mod_tidy_hack.go index b2dd49b638b..034529b7723 100644 --- a/retail/go_mod_tidy_hack.go +++ b/retail/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package retail diff --git a/scheduler/go_mod_tidy_hack.go b/scheduler/go_mod_tidy_hack.go index 778405f5537..0fa2d97f891 100644 --- a/scheduler/go_mod_tidy_hack.go +++ b/scheduler/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package scheduler diff --git a/secretmanager/go_mod_tidy_hack.go b/secretmanager/go_mod_tidy_hack.go index 57aec436751..16427af198d 100644 --- a/secretmanager/go_mod_tidy_hack.go +++ b/secretmanager/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package secretmanager diff --git a/security/go_mod_tidy_hack.go b/security/go_mod_tidy_hack.go index ea4eed89ec3..61a756612a6 100644 --- a/security/go_mod_tidy_hack.go +++ b/security/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package security diff --git a/securitycenter/go_mod_tidy_hack.go b/securitycenter/go_mod_tidy_hack.go index 483a0c843ea..2fe7949d04f 100644 --- a/securitycenter/go_mod_tidy_hack.go +++ b/securitycenter/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package securitycenter diff --git a/servicecontrol/go_mod_tidy_hack.go b/servicecontrol/go_mod_tidy_hack.go index 86d7bda62a1..1ffc9f661b0 100644 --- a/servicecontrol/go_mod_tidy_hack.go +++ b/servicecontrol/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package servicecontrol diff --git a/servicedirectory/go_mod_tidy_hack.go b/servicedirectory/go_mod_tidy_hack.go index b5cc0699c95..0b04e75043c 100644 --- a/servicedirectory/go_mod_tidy_hack.go +++ b/servicedirectory/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package servicedirectory diff --git a/servicemanagement/go_mod_tidy_hack.go b/servicemanagement/go_mod_tidy_hack.go index f1a35906446..a56c9021985 100644 --- a/servicemanagement/go_mod_tidy_hack.go +++ b/servicemanagement/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package servicemanagement diff --git a/serviceusage/go_mod_tidy_hack.go b/serviceusage/go_mod_tidy_hack.go index ef75cdacd11..b3d330317bc 100644 --- a/serviceusage/go_mod_tidy_hack.go +++ b/serviceusage/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package serviceusage diff --git a/shell/go_mod_tidy_hack.go b/shell/go_mod_tidy_hack.go index 4fa719d4cfb..050799cdf09 100644 --- a/shell/go_mod_tidy_hack.go +++ b/shell/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package shell diff --git a/spanner/big_pdml_test.go b/spanner/big_pdml_test.go index e0983373b67..0c852727805 100644 --- a/spanner/big_pdml_test.go +++ b/spanner/big_pdml_test.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build bigtest // +build bigtest // An integration test for PDML using a relatively large database. diff --git a/spanner/errors112.go b/spanner/errors112.go index 318005e1e16..a6454696807 100644 --- a/spanner/errors112.go +++ b/spanner/errors112.go @@ -13,6 +13,7 @@ // limitations under the License. // TODO: Remove entire file when support for Go1.12 and lower has been dropped. +//go:build !go1.13 // +build !go1.13 package spanner diff --git a/spanner/errors113.go b/spanner/errors113.go index 41a6ea9e8a4..6ae0b89e465 100644 --- a/spanner/errors113.go +++ b/spanner/errors113.go @@ -13,6 +13,7 @@ // limitations under the License. // TODO: Remove entire file when support for Go1.12 and lower has been dropped. +//go:build go1.13 // +build go1.13 package spanner diff --git a/spanner/go_mod_tidy_hack.go b/spanner/go_mod_tidy_hack.go index 6138d355c81..addd024e816 100644 --- a/spanner/go_mod_tidy_hack.go +++ b/spanner/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package spanner diff --git a/spanner/spansql/fuzz.go b/spanner/spansql/fuzz.go index e95624be714..3621209f1da 100644 --- a/spanner/spansql/fuzz.go +++ b/spanner/spansql/fuzz.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build gofuzz // +build gofuzz package spansql diff --git a/speech/go_mod_tidy_hack.go b/speech/go_mod_tidy_hack.go index 95895483ed0..5c2cdfc8a58 100644 --- a/speech/go_mod_tidy_hack.go +++ b/speech/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package speech diff --git a/storage/go_mod_tidy_hack.go b/storage/go_mod_tidy_hack.go index 7df7a1d7155..1ae5c9186a3 100644 --- a/storage/go_mod_tidy_hack.go +++ b/storage/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package storage diff --git a/storage/reader_go114_test.go b/storage/reader_go114_test.go index 9a2c02ea31b..d01e6477bc6 100644 --- a/storage/reader_go114_test.go +++ b/storage/reader_go114_test.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build go1.14 // +build go1.14 // This test is only for Go1.14 and above because we need to use diff --git a/storagetransfer/go_mod_tidy_hack.go b/storagetransfer/go_mod_tidy_hack.go index 5098bc70f34..9599523c92b 100644 --- a/storagetransfer/go_mod_tidy_hack.go +++ b/storagetransfer/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package storagetransfer diff --git a/talent/go_mod_tidy_hack.go b/talent/go_mod_tidy_hack.go index 5b6df5bb7f8..5a3f4412b63 100644 --- a/talent/go_mod_tidy_hack.go +++ b/talent/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package talent diff --git a/texttospeech/go_mod_tidy_hack.go b/texttospeech/go_mod_tidy_hack.go index 132f99f43b9..4b07b9dda41 100644 --- a/texttospeech/go_mod_tidy_hack.go +++ b/texttospeech/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package texttospeech diff --git a/third_party/go/doc/comment.go b/third_party/go/doc/comment.go index 9b3732901cf..42495ae436f 100644 --- a/third_party/go/doc/comment.go +++ b/third_party/go/doc/comment.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build go1.16 // +build go1.16 // Godoc comment extraction and comment -> HTML formatting. diff --git a/third_party/go/doc/comment_test.go b/third_party/go/doc/comment_test.go index 62aa2bcd413..caa5995b8a9 100644 --- a/third_party/go/doc/comment_test.go +++ b/third_party/go/doc/comment_test.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build go1.16 // +build go1.16 package doc diff --git a/third_party/go/doc/doc.go b/third_party/go/doc/doc.go index 7a43adfeae3..fe775107351 100644 --- a/third_party/go/doc/doc.go +++ b/third_party/go/doc/doc.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build go1.16 // +build go1.16 // Package doc extracts source code documentation from a Go AST. diff --git a/third_party/go/doc/example.go b/third_party/go/doc/example.go index fdfa79a9d74..9d07adf5dd9 100644 --- a/third_party/go/doc/example.go +++ b/third_party/go/doc/example.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build go1.16 // +build go1.16 // Extract example functions from file ASTs. diff --git a/third_party/go/doc/example_test.go b/third_party/go/doc/example_test.go index 208ab9a4904..a7a2d168472 100644 --- a/third_party/go/doc/example_test.go +++ b/third_party/go/doc/example_test.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build go1.16 // +build go1.16 package doc_test diff --git a/third_party/go/doc/exports.go b/third_party/go/doc/exports.go index 2a73668895d..fa6bcbc5afb 100644 --- a/third_party/go/doc/exports.go +++ b/third_party/go/doc/exports.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build go1.16 // +build go1.16 // This file implements export filtering of an AST. diff --git a/third_party/go/doc/filter.go b/third_party/go/doc/filter.go index eaa874d9b01..7fc6e3d4170 100644 --- a/third_party/go/doc/filter.go +++ b/third_party/go/doc/filter.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build go1.16 // +build go1.16 package doc diff --git a/third_party/go/doc/headscan.go b/third_party/go/doc/headscan.go index a38bbfb45d8..fe7daa6b0d2 100644 --- a/third_party/go/doc/headscan.go +++ b/third_party/go/doc/headscan.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build ignore // +build ignore /* diff --git a/third_party/go/doc/reader.go b/third_party/go/doc/reader.go index 705b3b93f1e..bc22403ac49 100644 --- a/third_party/go/doc/reader.go +++ b/third_party/go/doc/reader.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build go1.16 // +build go1.16 package doc diff --git a/third_party/go/doc/synopsis.go b/third_party/go/doc/synopsis.go index a1ba156b1ae..8b9f58aadba 100644 --- a/third_party/go/doc/synopsis.go +++ b/third_party/go/doc/synopsis.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build go1.16 // +build go1.16 package doc diff --git a/third_party/go/doc/synopsis_test.go b/third_party/go/doc/synopsis_test.go index 162b9a53c7a..2af7f40b766 100644 --- a/third_party/go/doc/synopsis_test.go +++ b/third_party/go/doc/synopsis_test.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build go1.16 // +build go1.16 package doc diff --git a/third_party/pkgsite/print_type.go b/third_party/pkgsite/print_type.go index 8232fd6f657..200980a6860 100644 --- a/third_party/pkgsite/print_type.go +++ b/third_party/pkgsite/print_type.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build go1.15 // +build go1.15 // Package pkgsite is not for external use. May change at any time without diff --git a/tpu/go_mod_tidy_hack.go b/tpu/go_mod_tidy_hack.go index 70b817af738..bfbcdcd991b 100644 --- a/tpu/go_mod_tidy_hack.go +++ b/tpu/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package tpu diff --git a/trace/go_mod_tidy_hack.go b/trace/go_mod_tidy_hack.go index 737c920885a..a165a591103 100644 --- a/trace/go_mod_tidy_hack.go +++ b/trace/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package trace diff --git a/translate/go_mod_tidy_hack.go b/translate/go_mod_tidy_hack.go index 0a5d0090fff..3f7aad099cd 100644 --- a/translate/go_mod_tidy_hack.go +++ b/translate/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package translate diff --git a/video/go_mod_tidy_hack.go b/video/go_mod_tidy_hack.go index 8d65be9c5dc..9a8d8d53e3a 100644 --- a/video/go_mod_tidy_hack.go +++ b/video/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package video diff --git a/videointelligence/go_mod_tidy_hack.go b/videointelligence/go_mod_tidy_hack.go index 7cbbaa3c997..3db11b1db41 100644 --- a/videointelligence/go_mod_tidy_hack.go +++ b/videointelligence/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package videointelligence diff --git a/vision/go_mod_tidy_hack.go b/vision/go_mod_tidy_hack.go index 0f55c1a2855..85487aaaa49 100644 --- a/vision/go_mod_tidy_hack.go +++ b/vision/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package vision diff --git a/vpcaccess/go_mod_tidy_hack.go b/vpcaccess/go_mod_tidy_hack.go index cc1fd4284f6..1d4ae27421e 100644 --- a/vpcaccess/go_mod_tidy_hack.go +++ b/vpcaccess/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package vpcaccess diff --git a/webrisk/go_mod_tidy_hack.go b/webrisk/go_mod_tidy_hack.go index fd8e978080a..fb2f8dd885c 100644 --- a/webrisk/go_mod_tidy_hack.go +++ b/webrisk/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package webrisk diff --git a/websecurityscanner/go_mod_tidy_hack.go b/websecurityscanner/go_mod_tidy_hack.go index a480dda5053..58e8a67e618 100644 --- a/websecurityscanner/go_mod_tidy_hack.go +++ b/websecurityscanner/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package websecurityscanner diff --git a/workflows/go_mod_tidy_hack.go b/workflows/go_mod_tidy_hack.go index adc95b02e9e..ce2d2749e71 100644 --- a/workflows/go_mod_tidy_hack.go +++ b/workflows/go_mod_tidy_hack.go @@ -14,6 +14,7 @@ // This file, and the cloud.google.com/go import, won't actually become part of // the resultant binary. +//go:build modhack // +build modhack package workflows