From 988cb79eb6c60b82d4b236dd5d6ffd415d9a8425 Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Tue, 3 May 2022 10:44:01 -0400 Subject: [PATCH] execabs: add legacy "//+build" constraints Go releases before Go 1.17 are no longer supported, and Go 1.17 supports the newer "//go:build" syntax, so the older "//+build" variation is no longer required by Go's support policy. However, the x/sys module is very low-level and empirically some users are still on unsupported Go releases, so there is little harm in adding the older variations. Fixes golang/go#52668. Change-Id: Ieb8e64e450b9d795f2753fc5f99b36816a3dbff3 Reviewed-on: https://go-review.googlesource.com/c/sys/+/403695 Run-TryBot: Bryan Mills Reviewed-by: Russ Cox --- execabs/execabs_go118.go | 1 + execabs/execabs_go119.go | 1 + 2 files changed, 2 insertions(+) diff --git a/execabs/execabs_go118.go b/execabs/execabs_go118.go index 23f4d6e3..6ab5f508 100644 --- a/execabs/execabs_go118.go +++ b/execabs/execabs_go118.go @@ -3,6 +3,7 @@ // license that can be found in the LICENSE file. //go:build !go1.19 +// +build !go1.19 package execabs diff --git a/execabs/execabs_go119.go b/execabs/execabs_go119.go index 6db68194..1e7a9ada 100644 --- a/execabs/execabs_go119.go +++ b/execabs/execabs_go119.go @@ -3,6 +3,7 @@ // license that can be found in the LICENSE file. //go:build go1.19 +// +build go1.19 package execabs