Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go fmt with Go 1.17 #396

Merged
merged 4 commits into from
Sep 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changes/v2.13.0/396-improvements.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Align build tags to match go fmt with Go 1.17 [GH-396]
* Improve `test-tags.sh` script to handle new build tag format [GH-396]
2 changes: 1 addition & 1 deletion .github/workflows/check-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.15
go-version: ^1.17

- name: Check out code into the Go module directory
uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions govcd/access_control_catalog_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build functional || catalog || ALL
// +build functional catalog ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/access_control_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build functional || vapp || catalog || ALL
// +build functional vapp catalog ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/access_control_vapp_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build functional || vapp || ALL
// +build functional vapp ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/adminorg_administration_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build org || functional || ALL
// +build org functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/adminorg_ldap_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build (user || functional || ALL) && !skipLong
// +build user functional ALL
// +build !skipLong

Expand Down
1 change: 1 addition & 0 deletions govcd/adminorg_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build org || functional || ALL
// +build org functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/adminorg_unit_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build unit || ALL
// +build unit ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/adminvdc_nsxt_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build org || functional || nsxt || ALL
// +build org functional nsxt ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/adminvdc_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build org || functional || ALL
// +build org functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/api_vcd_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build api || openapi || functional || catalog || vapp || gateway || network || org || query || extnetwork || task || vm || vdc || system || disk || lb || lbAppRule || lbAppProfile || lbServerPool || lbServiceMonitor || lbVirtualServer || user || search || nsxv || nsxt || auth || affinity || role || ALL
// +build api openapi functional catalog vapp gateway network org query extnetwork task vm vdc system disk lb lbAppRule lbAppProfile lbServerPool lbServiceMonitor lbVirtualServer user search nsxv nsxt auth affinity role ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/api_vcd_test_unit.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build unit || ALL
// +build unit ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/api_vcd_versions_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build api || functional || ALL
// +build api functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/catalog_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build catalog || functional || ALL
// +build catalog functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/catalogitem_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build catalog || functional || ALL
// +build catalog functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/common_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build api || functional || catalog || vapp || gateway || network || org || query || extnetwork || task || vm || vdc || system || disk || lb || lbAppRule || lbAppProfile || lbServerPool || lbServiceMonitor || lbVirtualServer || user || nsxv || nsxt || openapi || affinity || search || ALL
// +build api functional catalog vapp gateway network org query extnetwork task vm vdc system disk lb lbAppRule lbAppProfile lbServerPool lbServiceMonitor lbVirtualServer user nsxv nsxt openapi affinity search ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/disk_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build disk || functional || ALL
// +build disk functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/edgegateway_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build gateway || functional || ALL
// +build gateway functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/edgegateway_unit_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build unit || ALL
// +build unit ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/entity_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build api || functional || catalog || org || extnetwork || vm || vdc || system || user || nsxv || network || vapp || vm || affinity || ALL
// +build api functional catalog org extnetwork vm vdc system user nsxv network vapp vm affinity ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/external_network_v2_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build extnetwork || network || functional || openapi || ALL
// +build extnetwork network functional openapi ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/externalnetwork_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build extnetwork || network || functional || ALL
// +build extnetwork network functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/filter_engine_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build search || functional || ALL
// +build search functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/filter_engine_unit_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build unit
// +build unit

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/filter_util_unit_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build unit || ALL
// +build unit ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/global_role_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build functional || openapi || role || ALL
// +build functional openapi role ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/group_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build user || functional || ALL
// +build user functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/lb_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build (lb || functional || integration || ALL) && !skipLong
// +build lb functional integration ALL
// +build !skipLong

Expand Down
1 change: 1 addition & 0 deletions govcd/lb_unit_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build unit || lb || lbAppProfile || functional || ALL
// +build unit lb lbAppProfile functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/lbappprofile_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build lb || lbAppProfile || nsxv || functional || ALL
// +build lb lbAppProfile nsxv functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/lbapprule_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build lb || lbAppRule || nsxv || functional || ALL
// +build lb lbAppRule nsxv functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/lbserverpool_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build lb || lbServerPool || nsxv || functional || ALL
// +build lb lbServerPool nsxv functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/lbservicemonitor_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build lb || lbServiceMonitor || nsxv || functional || ALL
// +build lb lbServiceMonitor nsxv functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/lbvirtualserver_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build lb || lbVirtualServer || nsxv || functional || ALL
// +build lb lbVirtualServer nsxv functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/media_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build catalog || functional || ALL
// +build catalog functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/metadata_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build vapp || vdc || metadata || functional || ALL
// +build vapp vdc metadata functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/nsxt_application_profile_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build network || nsxt || functional || openapi || ALL
// +build network nsxt functional openapi ALL

package govcd
Expand Down
1 change: 1 addition & 0 deletions govcd/nsxt_edge_cluster_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build network || nsxt || functional || openapi || ALL
// +build network nsxt functional openapi ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/nsxt_edgegateway_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build network || nsxt || functional || openapi || ALL
// +build network nsxt functional openapi ALL

package govcd
Expand Down
1 change: 1 addition & 0 deletions govcd/nsxt_firewall_group_ip_set_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build network || nsxt || functional || openapi || ALL
// +build network nsxt functional openapi ALL

package govcd
Expand Down
1 change: 1 addition & 0 deletions govcd/nsxt_firewall_group_security_group_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build network || nsxt || functional || openapi || ALL
// +build network nsxt functional openapi ALL

package govcd
Expand Down
1 change: 1 addition & 0 deletions govcd/nsxt_firewall_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build network || nsxt || functional || openapi || ALL
// +build network nsxt functional openapi ALL

package govcd
Expand Down
1 change: 1 addition & 0 deletions govcd/nsxt_importable_switch_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build network || nsxt || functional || ALL
// +build network nsxt functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/nsxt_ipsec_vpn_tunnel_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build network || nsxt || functional || openapi || ALL
// +build network nsxt functional openapi ALL

package govcd
Expand Down
1 change: 1 addition & 0 deletions govcd/nsxt_nat_rule_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build network || nsxt || functional || openapi || ALL
// +build network nsxt functional openapi ALL

package govcd
Expand Down
1 change: 1 addition & 0 deletions govcd/nsxt_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ALL || openapi || functional || nsxt
// +build ALL openapi functional nsxt

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/nsxv_dhcprelay_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build nsxv || functional || ALL
// +build nsxv functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/nsxv_firewall_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build nsxv || edge || firewall || functional || ALL
// +build nsxv edge firewall functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/nsxv_ipset_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build nsxv || functional || ALL
// +build nsxv functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/nsxv_nat_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build edge || nat || nsxv || functional || ALL
// +build edge nat nsxv functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/openapi_endpoints_unit_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build unit || ALL
// +build unit ALL

package govcd
Expand Down
1 change: 1 addition & 0 deletions govcd/openapi_org_network_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build network || nsxt || functional || openapi || ALL
// +build network nsxt functional openapi ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/openapi_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build functional || openapi || ALL
// +build functional openapi ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/openapi_unit_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build unit || ALL
// +build unit ALL

package govcd
Expand Down
1 change: 1 addition & 0 deletions govcd/org_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build org || functional || ALL
// +build org functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/orgvdcnetwork_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build network || functional || ALL
// +build network functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/query_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build query || functional || ALL
// +build query functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/rights_bundle_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build functional || openapi || role || ALL
// +build functional openapi role ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/rights_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build functional || openapi || role || ALL
// +build functional openapi role ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/roles_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build functional || openapi || role || ALL
// +build functional openapi role ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/saml_auth_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build auth || functional || ALL
// +build auth functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/saml_auth_unit_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build unit || ALL
// +build unit ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/system_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build system || functional || ALL
// +build system functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/system_unit_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build unit || ALL
// +build unit ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/task_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build task || functional || ALL
// +build task functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/tenant_context_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build functional || openapi || ALL
// +build functional openapi ALL

package govcd
Expand Down
1 change: 1 addition & 0 deletions govcd/user_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build user || functional || ALL
// +build user functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/vapp_concurrent_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build concurrent
// +build concurrent

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/vapp_network_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build vapp || functional || ALL
// +build vapp functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/vapp_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build vapp || functional || ALL
// +build vapp functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/vapp_vm_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build vapp || vm || functional || ALL
// +build vapp vm functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/vapptemplate_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build vapp || functional || ALL
// +build vapp functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/vdc_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build vdc || functional || ALL
// +build vdc functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/vdccomputepolicy_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build vdc || functional || openapi || ALL
// +build vdc functional openapi ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/vm_affinity_rule_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build vdc || affinity || functional || ALL
// +build vdc affinity functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/vm_concurrent_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build concurrent
// +build concurrent

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/vm_dhcp_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build nsxv || vm || functional || ALL
// +build nsxv vm functional ALL

/*
Expand Down
1 change: 1 addition & 0 deletions govcd/vm_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build vm || functional || ALL
// +build vm functional ALL

/*
Expand Down
Loading