summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-02-14 03:26:42 -0800
committergVisor bot <gvisor-bot@google.com>2020-02-14 03:27:34 -0800
commitb2e86906ea4f7bc43b8d2d3a4735a87eca779b33 (patch)
tree4b6e965e9eb53dc73c4d6165a56082537a4c8f30 /pkg/abi
parenta6024f7f5f6f438c11e30be0f93657b1956fd5ba (diff)
Fix various issues related to enabling go-marshal.
- Add missing build tags to files in the abi package. - Add the marshal package as a sentry dependency, allowed by deps_test. - Fix an issue with our top-level go_library BUILD rule, which incorrectly shadows the variable containing the input set of source files. This caused the expansion for the go_marshal clause to silently omit input files. - Fix formatting when copying build tags to gomarshal-generated files. - Fix a bug with import statement collision detection in go-marshal. PiperOrigin-RevId: 295112284
Diffstat (limited to 'pkg/abi')
-rw-r--r--pkg/abi/linux/file_amd64.go2
-rw-r--r--pkg/abi/linux/file_arm64.go2
2 files changed, 4 insertions, 0 deletions
diff --git a/pkg/abi/linux/file_amd64.go b/pkg/abi/linux/file_amd64.go
index 9d307e840..8693d49c8 100644
--- a/pkg/abi/linux/file_amd64.go
+++ b/pkg/abi/linux/file_amd64.go
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// +build amd64
+
package linux
// Constants for open(2).
diff --git a/pkg/abi/linux/file_arm64.go b/pkg/abi/linux/file_arm64.go
index 26a54f416..ea3adc5f5 100644
--- a/pkg/abi/linux/file_arm64.go
+++ b/pkg/abi/linux/file_arm64.go
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// +build arm64
+
package linux
// Constants for open(2).