Skip to content

Commit

Permalink
Added new Golang build constraints introduced in Go 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosroman committed Jan 9, 2023
1 parent 1e93b30 commit 56d379d
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .circleci/config.yml
@@ -1,3 +1,4 @@
---
# We use github actions to test the code on windows and linux amd64. Circleci is used for linux arm64.
#
version: 2.1
Expand All @@ -9,7 +10,7 @@ executors:
linux_arm64:
description: "arm64"
machine:
image: ubuntu-2004:202101-01
image: ubuntu-2004:2022.04.1
resource_class: arm.medium

commands:
Expand All @@ -18,7 +19,7 @@ commands:
version:
type: string
steps:
- os-detect/init # this setup the '$SUDO' variable
- os-detect/init # this setup the '$SUDO' variable
- run:
name: "install Golang linux"
command: |
Expand Down Expand Up @@ -72,4 +73,11 @@ workflows:
- tests_arm64:
matrix:
parameters:
go-version: ["1.13", "1.14", "1.15", "1.16", "1.17"]
go-version:
- "1.13"
- "1.14"
- "1.15"
- "1.16"
- "1.17"
- "1.18"
- "1.19"
1 change: 1 addition & 0 deletions statsd/benchmark_report_metric_noop_test.go
@@ -1,3 +1,4 @@
//go:build !go1.13
// +build !go1.13

package statsd_test
Expand Down
1 change: 1 addition & 0 deletions statsd/benchmark_report_metric_test.go
@@ -1,3 +1,4 @@
//go:build go1.13
// +build go1.13

package statsd_test
Expand Down
1 change: 1 addition & 0 deletions statsd/end_to_end_uds_test.go
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

package statsd
Expand Down
1 change: 1 addition & 0 deletions statsd/pipe.go
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

package statsd
Expand Down
1 change: 1 addition & 0 deletions statsd/pipe_windows.go
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package statsd
Expand Down
1 change: 1 addition & 0 deletions statsd/pipe_windows_test.go
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package statsd
Expand Down
1 change: 1 addition & 0 deletions statsd/uds.go
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

package statsd
Expand Down
1 change: 1 addition & 0 deletions statsd/uds_test.go
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

package statsd
Expand Down
1 change: 1 addition & 0 deletions statsd/uds_windows.go
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package statsd
Expand Down

0 comments on commit 56d379d

Please sign in to comment.