Skip to content

Commit 9ebd8d6

Browse files
authored
build: update build lines and the contributing docs (#202)
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 <pyrooka@users.noreply.github.com>
1 parent 0b8c2b2 commit 9ebd8d6

26 files changed

+2
-26
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ before_install:
1818
- sudo apt-get update
1919

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

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ If you want to contribute to the repository, here's a quick guide:
5858
```
5959
The above command will run all the unit tests with the command `go test -tags=all`.
6060
Each unit test file contains one or more build tags as a way to classify the
61-
tests into various groups (example: `// +build all fast auth`).
61+
tests into various groups (example: `//go:build all || fast || auth`).
6262
Currently, these tags include: all, slow, fast, auth, basesvc, log and retries.
6363
Others might be added in the future.
6464
To run a specific class of tests (example 'retries'), use a command like this:

core/authenticator_factory_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || fast
2-
// +build all fast
32

43
package core
54

core/base_service_retries_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || slow || basesvc || retries
2-
// +build all slow basesvc retries
32

43
package core
54

core/base_service_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || fast || basesvc
2-
// +build all fast basesvc
32

43
package core
54

core/basic_authenticator_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || fast || auth
2-
// +build all fast auth
32

43
package core
54

core/bearer_token_authenticator_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || fast || auth
2-
// +build all fast auth
32

43
package core
54

core/common_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || fast || basesvc
2-
// +build all fast basesvc
32

43
package core
54

core/config_utils_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || fast || basesvc
2-
// +build all fast basesvc
32

43
package core
54

core/container_authenticator_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || auth
2-
// +build all auth
32

43
package core
54

core/cp4d_authenticator_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || slow || auth
2-
// +build all slow auth
32

43
package core
54

core/datetime_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || fast
2-
// +build all fast
32

43
package core
54

core/detailed_response_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || fast || basesvc
2-
// +build all fast basesvc
32

43
package core
54

core/gzip_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || fast || basesvc
2-
// +build all fast basesvc
32

43
package core
54

core/iam_authenticator_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || slow || auth
2-
// +build all slow auth
32

43
package core
54

core/jwt_utils_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || fast || auth
2-
// +build all fast auth
32

43
package core
54

core/log_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || fast || log
2-
// +build all fast log
32

43
package core
54

core/marshal_nulls_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || fast
2-
// +build all fast
32

43
package core
54

core/mcsp_authenticator_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || slow || auth
2-
// +build all slow auth
32

43
package core
54

core/noauth_authenticator_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || fast || auth
2-
// +build all fast auth
32

43
package core
54

core/parameterized_url_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || fast
2-
// +build all fast
32

43
package core
54

core/request_builder_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || fast || basesvc
2-
// +build all fast basesvc
32

43
package core
54

core/unmarshal_v2_models_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || fast
2-
// +build all fast
32

43
package core
54

core/unmarshal_v2_primitives_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || fast
2-
// +build all fast
32

43
package core
54

core/utils_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || fast
2-
// +build all fast
32

43
package core
54

core/vpc_instance_authenticator_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build all || auth
2-
// +build all auth
32

43
package core
54

0 commit comments

Comments
 (0)