Skip to content

Commit

Permalink
build: update Go build tags (#290)
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 <pyrooka@users.noreply.github.com>
  • Loading branch information
pyrooka authored Dec 8, 2023
1 parent a818fcd commit a0d1bf3
Showing 42 changed files with 7 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ before_install:
- python -V

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

script:
1 change: 0 additions & 1 deletion atrackerv2/atracker_v2_examples_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build examples
// +build examples

/**
* (C) Copyright IBM Corp. 2023.
1 change: 0 additions & 1 deletion atrackerv2/atracker_v2_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

/**
* (C) Copyright IBM Corp. 2023.
1 change: 0 additions & 1 deletion casemanagementv1/case_management_v1_examples_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build examples
// +build examples

/**
* (C) Copyright IBM Corp. 2021, 2022.
1 change: 0 additions & 1 deletion casemanagementv1/case_management_v1_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

/**
* (C) Copyright IBM Corp. 2020, 2022.
1 change: 0 additions & 1 deletion catalogmanagementv1/catalog_management_v1_examples_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build examples
// +build examples

/**
* (C) Copyright IBM Corp. 2021.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

/**
* (C) Copyright IBM Corp. 2022.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build examples
//go:build examples

/**
* (C) Copyright IBM Corp. 2023.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build integration
//go:build integration

/**
* (C) Copyright IBM Corp. 2023.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build examples
// +build examples

/**
* (C) Copyright IBM Corp. 2023.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

/**
* (C) Copyright IBM Corp. 2023.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build examples
// +build examples

/**
* (C) Copyright IBM Corp. 2021, 2022.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

/**
* (C) Copyright IBM Corp. 2021, 2022.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build examples
// +build examples

/**
* (C) Copyright IBM Corp. 2020, 2022.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

/**
* (C) Copyright IBM Corp. 2020.
1 change: 0 additions & 1 deletion globalcatalogv1/global_catalog_v1_examples_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build examples
// +build examples

/**
* (C) Copyright IBM Corp. 2021.
1 change: 0 additions & 1 deletion globalcatalogv1/global_catalog_v1_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

/**
* (C) Copyright IBM Corp. 2023.
1 change: 0 additions & 1 deletion globalsearchv2/global_search_v2_examples_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build examples
// +build examples

/**
* (C) Copyright IBM Corp. 2020, 2021.
2 changes: 1 addition & 1 deletion globalsearchv2/global_search_v2_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build integration
//go:build integration

/**
* (C) Copyright IBM Corp. 2020.
1 change: 0 additions & 1 deletion globaltaggingv1/global_tagging_v1_examples_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build examples
// +build examples

/**
* (C) Copyright IBM Corp. 2020.
1 change: 0 additions & 1 deletion globaltaggingv1/global_tagging_v1_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

/**
* (C) Copyright IBM Corp. 2020.
1 change: 0 additions & 1 deletion iamaccessgroupsv2/iam_access_groups_v2_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

/**
* (C) Copyright IBM Corp. 2023.
1 change: 0 additions & 1 deletion iamidentityv1/iam_identity_v1_examples_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build examples
// +build examples

/**
* (C) Copyright IBM Corp. 2020, 2021.
1 change: 0 additions & 1 deletion iamidentityv1/iam_identity_v1_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

/**
* (C) Copyright IBM Corp. 2020, 2021.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build examples
// +build examples

/**
* (C) Copyright IBM Corp. 2023.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

/**
* (C) Copyright IBM Corp. 2020.
1 change: 0 additions & 1 deletion ibmcloudshellv1/ibm_cloud_shell_v1_examples_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build examples
// +build examples

/**
* (C) Copyright IBM Corp. 2021.
2 changes: 1 addition & 1 deletion ibmcloudshellv1/ibm_cloud_shell_v1_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build integration
//go:build integration

/**
* (C) Copyright IBM Corp. 2021.
2 changes: 1 addition & 1 deletion metricsrouterv3/metrics_router_v3_examples_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build examples
//go:build examples

/**
* (C) Copyright IBM Corp. 2023.
1 change: 0 additions & 1 deletion metricsrouterv3/metrics_router_v3_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

/**
* (C) Copyright IBM Corp. 2023.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build examples
// +build examples

/**
* (C) Copyright IBM Corp. 2020, 2021.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

/**
* (C) Copyright IBM Corp. 2020.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build examples
// +build examples

/**
* (C) Copyright IBM Corp. 2020.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

/**
* (C) Copyright IBM Corp. 2020.
1 change: 0 additions & 1 deletion resourcemanagerv2/resource_manager_v2_examples_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build examples
// +build examples

/**
* (C) Copyright IBM Corp. 2021.
1 change: 0 additions & 1 deletion resourcemanagerv2/resource_manager_v2_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

/**
* (C) Copyright IBM Corp. 2020.
1 change: 0 additions & 1 deletion usagemeteringv4/usage_metering_v4_examples_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build examples
// +build examples

/**
* (C) Copyright IBM Corp. 2020.
2 changes: 1 addition & 1 deletion usagemeteringv4/usage_metering_v4_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build integration
//go:build integration

/**
* (C) Copyright IBM Corp. 2020.
1 change: 0 additions & 1 deletion usagereportsv4/usage_reports_v4_examples_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build examples
// +build examples

/**
* (C) Copyright IBM Corp. 2020.
1 change: 0 additions & 1 deletion usagereportsv4/usage_reports_v4_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

/**
* (C) Copyright IBM Corp. 2020.
1 change: 0 additions & 1 deletion usermanagementv1/user_management_v1_examples_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build examples
// +build examples

/**
* (C) Copyright IBM Corp. 2021.
1 change: 0 additions & 1 deletion usermanagementv1/user_management_v1_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

/**
* (C) Copyright IBM Corp. 2021.

0 comments on commit a0d1bf3

Please sign in to comment.