From ac8695dc0db0c7ef4f0564e0bf8582386c3a0997 Mon Sep 17 00:00:00 2001 From: John Howard Date: Tue, 14 Sep 2021 11:20:21 -0700 Subject: [PATCH] Fix formatting to pass with go1.17 The CI job currently uses an unpinned image. This was recently updated to golang 1.17, causing all PRs to fail. This fixes those build failures --- tag/profile_19.go | 1 + tag/profile_not19.go | 1 + trace/trace_go11.go | 1 + trace/trace_nongo11.go | 1 + 4 files changed, 4 insertions(+) diff --git a/tag/profile_19.go b/tag/profile_19.go index b34d95e34..8fb17226f 100644 --- a/tag/profile_19.go +++ b/tag/profile_19.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build go1.9 // +build go1.9 package tag diff --git a/tag/profile_not19.go b/tag/profile_not19.go index 83adbce56..e28cf13cd 100644 --- a/tag/profile_not19.go +++ b/tag/profile_not19.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !go1.9 // +build !go1.9 package tag diff --git a/trace/trace_go11.go b/trace/trace_go11.go index b7d8aaf28..b8fc1e495 100644 --- a/trace/trace_go11.go +++ b/trace/trace_go11.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build go1.11 // +build go1.11 package trace diff --git a/trace/trace_nongo11.go b/trace/trace_nongo11.go index e25419859..da488fc87 100644 --- a/trace/trace_nongo11.go +++ b/trace/trace_nongo11.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !go1.11 // +build !go1.11 package trace