Skip to content

Commit

Permalink
Convert to Go 1.17 go:build directive (hashicorp#13579)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgmiller authored and heppu committed Jan 13, 2022
1 parent 83f072c commit d7b19d3
Show file tree
Hide file tree
Showing 64 changed files with 63 additions and 64 deletions.
2 changes: 1 addition & 1 deletion builtin/credential/aws/pkcs7/verify_test_dsa.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build go1.11 go1.12 go1.13 go1.14 go1.15
//go:build go1.11 || go1.12 || go1.13 || go1.14 || go1.15

package pkcs7

Expand Down
2 changes: 1 addition & 1 deletion command/agent/winsvc/service_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build windows
//go:build windows

package winsvc

Expand Down
2 changes: 1 addition & 1 deletion command/commands_nonwindows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !windows
//go:build !windows

package command

Expand Down
2 changes: 1 addition & 1 deletion command/commands_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build windows
//go:build windows

package command

Expand Down
2 changes: 1 addition & 1 deletion command/config/validate_listener.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !fips_140_3
//go:build !fips_140_3

package config

Expand Down
2 changes: 1 addition & 1 deletion command/operator_diagnose_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !race
//go:build !race

package command

Expand Down
1 change: 0 additions & 1 deletion command/operator_generate_root_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !race
// +build !race

package command

Expand Down
2 changes: 1 addition & 1 deletion command/operator_init_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !race
//go:build !race

package command

Expand Down
2 changes: 1 addition & 1 deletion command/operator_rekey_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !race
//go:build !race

package command

Expand Down
2 changes: 1 addition & 1 deletion command/server/config_oss_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package server

Expand Down
2 changes: 1 addition & 1 deletion command/server/config_test_helpers_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package server

Expand Down
2 changes: 1 addition & 1 deletion command/server/config_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package server

Expand Down
2 changes: 1 addition & 1 deletion command/server_noprofile.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !memprofiler
//go:build !memprofiler

package command

Expand Down
2 changes: 1 addition & 1 deletion command/server_profile.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build memprofiler
//go:build memprofiler

package command

Expand Down
2 changes: 1 addition & 1 deletion command/server_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !race,!hsm,!fips_140_3
//go:build !race && !hsm && !fips_140_3

// NOTE: we can't use this with HSM. We can't set testing mode on and it's not
// safe to use env vars since that provides an attack vector in the real world.
Expand Down
2 changes: 1 addition & 1 deletion helper/constants/constants_oss.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package constants

Expand Down
2 changes: 1 addition & 1 deletion helper/constants/fips.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !fips_140_3
//go:build !fips_140_3

package constants

Expand Down
2 changes: 1 addition & 1 deletion helper/hostutil/hostinfo.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !openbsd
//go:build !openbsd

package hostutil

Expand Down
2 changes: 1 addition & 1 deletion helper/hostutil/hostinfo_openbsd.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build openbsd
//go:build openbsd

package hostutil

Expand Down
2 changes: 1 addition & 1 deletion helper/testhelpers/testhelpers_oss.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package testhelpers

Expand Down
2 changes: 1 addition & 1 deletion http/assets.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build ui
//go:build ui

package http

Expand Down
2 changes: 1 addition & 1 deletion http/assets_stub.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !ui
//go:build !ui

package http

Expand Down
2 changes: 1 addition & 1 deletion internalshared/configutil/config_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package configutil

Expand Down
2 changes: 1 addition & 1 deletion physical/foundationdb/foundationdb.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build foundationdb
//go:build foundationdb

package foundationdb

Expand Down
2 changes: 1 addition & 1 deletion physical/foundationdb/foundationdb_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build foundationdb
//go:build foundationdb

package foundationdb

Expand Down
2 changes: 1 addition & 1 deletion physical/foundationdb/foundationdbstub.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !foundationdb
//go:build !foundationdb

package foundationdb

Expand Down
2 changes: 1 addition & 1 deletion physical/raft/bolt_32bit_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build 386 arm
//go:build 386 || arm

package raft

Expand Down
2 changes: 1 addition & 1 deletion physical/raft/bolt_64bit_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !386,!arm
//go:build !386 && !arm

package raft

Expand Down
2 changes: 1 addition & 1 deletion physical/raft/raft_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package raft

Expand Down
2 changes: 1 addition & 1 deletion physical/raft/vars_32bit.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build 386 arm
//go:build 386 || arm

package raft

Expand Down
2 changes: 1 addition & 1 deletion physical/raft/vars_64bit.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !386,!arm
//go:build !386 && !arm

package raft

Expand Down
2 changes: 1 addition & 1 deletion sdk/version/cgo.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build cgo
//go:build cgo

package version

Expand Down
2 changes: 1 addition & 1 deletion tools/tools.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build tools
//go:build tools

// This file ensures tool dependencies are kept in sync. This is the
// recommended way of doing this according to
Expand Down
2 changes: 1 addition & 1 deletion vault/acl_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/activity_log_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/barrier_view_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/core_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/deadlock.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build deadlock
//go:build deadlock

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/diagnose/file_checks_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !windows
//go:build !windows

package diagnose

Expand Down
2 changes: 1 addition & 1 deletion vault/diagnose/file_checks_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build windows
//go:build windows

package diagnose

Expand Down
2 changes: 1 addition & 1 deletion vault/diagnose/os_common.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !openbsd !arm
//go:build !openbsd || !arm

package diagnose

Expand Down
2 changes: 1 addition & 1 deletion vault/diagnose/os_openbsd_arm.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build openbsd,arm
//go:build openbsd && arm

package diagnose

Expand Down
2 changes: 1 addition & 1 deletion vault/diagnose/os_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !windows
//go:build !windows

package diagnose

Expand Down
2 changes: 1 addition & 1 deletion vault/diagnose/os_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build windows
//go:build windows

package diagnose

Expand Down
2 changes: 1 addition & 1 deletion vault/expiration_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/identity_store_oidc_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/identity_store_oss.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/lock.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !deadlock
//go:build !deadlock

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/logical_system_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/managed_key_registry.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/mount_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/namespaces_oss.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/password_policy_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/policy_store_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/policy_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/quotas/quotas_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package quotas

Expand Down
2 changes: 1 addition & 1 deletion vault/replication/cluster.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package replication

Expand Down
2 changes: 1 addition & 1 deletion vault/request_forwarding_rpc_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/request_handling_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/sealunwrapper.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/sealunwrapper_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/testing_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/token_store_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down
2 changes: 1 addition & 1 deletion vault/wrapping_util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !enterprise
//go:build !enterprise

package vault

Expand Down

0 comments on commit d7b19d3

Please sign in to comment.