Skip to content

Commit

Permalink
build: update build lines and the contributing docs (#202)
Browse files Browse the repository at this point in the history
This commit replaces the old Go build tag syntax with
the new one which was released in Go 1.17, since the
current one is deprecated and not used by any tools.
Docs: https://pkg.go.dev/cmd/go#hdr-Build_constraints

Signed-off-by: Norbert Biczo <[email protected]>
  • Loading branch information
pyrooka authored Dec 8, 2023
1 parent 0b8c2b2 commit 9ebd8d6
Show file tree
Hide file tree
Showing 26 changed files with 2 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ before_install:
- sudo apt-get update

install:
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.51.2
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.1
- curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
- go install golang.org/x/tools/cmd/goimports@latest

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ If you want to contribute to the repository, here's a quick guide:
```
The above command will run all the unit tests with the command `go test -tags=all`.
Each unit test file contains one or more build tags as a way to classify the
tests into various groups (example: `// +build all fast auth`).
tests into various groups (example: `//go:build all || fast || auth`).
Currently, these tags include: all, slow, fast, auth, basesvc, log and retries.
Others might be added in the future.
To run a specific class of tests (example 'retries'), use a command like this:
Expand Down
1 change: 0 additions & 1 deletion core/authenticator_factory_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || fast
// +build all fast

package core

Expand Down
1 change: 0 additions & 1 deletion core/base_service_retries_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || slow || basesvc || retries
// +build all slow basesvc retries

package core

Expand Down
1 change: 0 additions & 1 deletion core/base_service_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || fast || basesvc
// +build all fast basesvc

package core

Expand Down
1 change: 0 additions & 1 deletion core/basic_authenticator_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || fast || auth
// +build all fast auth

package core

Expand Down
1 change: 0 additions & 1 deletion core/bearer_token_authenticator_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || fast || auth
// +build all fast auth

package core

Expand Down
1 change: 0 additions & 1 deletion core/common_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || fast || basesvc
// +build all fast basesvc

package core

Expand Down
1 change: 0 additions & 1 deletion core/config_utils_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || fast || basesvc
// +build all fast basesvc

package core

Expand Down
1 change: 0 additions & 1 deletion core/container_authenticator_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || auth
// +build all auth

package core

Expand Down
1 change: 0 additions & 1 deletion core/cp4d_authenticator_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || slow || auth
// +build all slow auth

package core

Expand Down
1 change: 0 additions & 1 deletion core/datetime_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || fast
// +build all fast

package core

Expand Down
1 change: 0 additions & 1 deletion core/detailed_response_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || fast || basesvc
// +build all fast basesvc

package core

Expand Down
1 change: 0 additions & 1 deletion core/gzip_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || fast || basesvc
// +build all fast basesvc

package core

Expand Down
1 change: 0 additions & 1 deletion core/iam_authenticator_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || slow || auth
// +build all slow auth

package core

Expand Down
1 change: 0 additions & 1 deletion core/jwt_utils_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || fast || auth
// +build all fast auth

package core

Expand Down
1 change: 0 additions & 1 deletion core/log_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || fast || log
// +build all fast log

package core

Expand Down
1 change: 0 additions & 1 deletion core/marshal_nulls_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || fast
// +build all fast

package core

Expand Down
1 change: 0 additions & 1 deletion core/mcsp_authenticator_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || slow || auth
// +build all slow auth

package core

Expand Down
1 change: 0 additions & 1 deletion core/noauth_authenticator_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || fast || auth
// +build all fast auth

package core

Expand Down
1 change: 0 additions & 1 deletion core/parameterized_url_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || fast
// +build all fast

package core

Expand Down
1 change: 0 additions & 1 deletion core/request_builder_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || fast || basesvc
// +build all fast basesvc

package core

Expand Down
1 change: 0 additions & 1 deletion core/unmarshal_v2_models_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || fast
// +build all fast

package core

Expand Down
1 change: 0 additions & 1 deletion core/unmarshal_v2_primitives_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || fast
// +build all fast

package core

Expand Down
1 change: 0 additions & 1 deletion core/utils_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || fast
// +build all fast

package core

Expand Down
1 change: 0 additions & 1 deletion core/vpc_instance_authenticator_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build all || auth
// +build all auth

package core

Expand Down

0 comments on commit 9ebd8d6

Please sign in to comment.