Skip to content

Commit

Permalink
Add go-1.17-compatible build directives. (#2263)
Browse files Browse the repository at this point in the history
Co-authored-by: Tyler Yahn <[email protected]>
  • Loading branch information
evantorrie and MrAlias authored Sep 28, 2021
1 parent 099df58 commit 00d8ca5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions exporters/jaeger/assertsocketbuffersize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !windows
// +build !windows

package jaeger
Expand Down
1 change: 1 addition & 0 deletions sdk/metric/stress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

// This test is too large for the race detector. This SDK uses no locks
// that the race detector would help with, anyway.
//go:build !race
// +build !race

package metric
Expand Down
1 change: 1 addition & 0 deletions sdk/resource/export_common_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos

package resource // import "go.opentelemetry.io/otel/sdk/resource"
Expand Down
1 change: 1 addition & 0 deletions sdk/resource/os_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos

package resource // import "go.opentelemetry.io/otel/sdk/resource"
Expand Down
1 change: 1 addition & 0 deletions sdk/resource/os_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos

package resource_test
Expand Down

0 comments on commit 00d8ca5

Please sign in to comment.