Skip to content

Commit

Permalink
align go build tag delimitors to hyphen
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwenma committed May 5, 2023
1 parent dd60946 commit eb66e7a
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions dev/test
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ popd
# default, test direct kubectl applier
CGO_ENABLED=0 go test -count=1 -v ./...
# test applyset applier, without kubectl direct and exec dependencies
CGO_ENABLED=0 go test -tags without_exec_applier,without_direct_applier -count=1 -v ./...
CGO_ENABLED=0 go test -tags without-exec-applier,without-direct-applier -count=1 -v ./...
# test exec kubectl applier, without direct_applier dependencies
CGO_ENABLED=0 go test -tags without_direct_applier -count=1 -v ./...
CGO_ENABLED=0 go test -tags without-direct-applier -count=1 -v ./...

pushd examples/guestbook-operator
CGO_ENABLED=0 go test -count=1 -v ./...
Expand Down
4 changes: 2 additions & 2 deletions pkg/patterns/declarative/pkg/applier/direct.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !without_exec_applier || !without_direct_applier
// +build !without_exec_applier !without_direct_applier
//go:build !without-exec-applier || !without-direct-applier
// +build !without-exec-applier !without-direct-applier

package applier

Expand Down
4 changes: 2 additions & 2 deletions pkg/patterns/declarative/pkg/applier/direct_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !without_exec_applier || !without_direct_applier
// +build !without_exec_applier !without_direct_applier
//go:build !without-exec-applier || !without-direct-applier
// +build !without-exec-applier !without-direct-applier

/*
Copyright 2022 The Kubernetes Authors.
Expand Down
4 changes: 2 additions & 2 deletions pkg/patterns/declarative/pkg/applier/exec.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !without_exec_applier
// +build !without_exec_applier
//go:build !without-exec-applier
// +build !without-exec-applier

/*
Copyright 2018 The Kubernetes Authors.
Expand Down
4 changes: 2 additions & 2 deletions pkg/patterns/declarative/pkg/applier/exec_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !without_exec_applier
// +build !without_exec_applier
//go:build !without-exec-applier
// +build !without-exec-applier

/*
Copyright 2019 The Kubernetes Authors.
Expand Down
4 changes: 2 additions & 2 deletions pkg/patterns/declarative/pkg/applier/global.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !without_exec_applier || !without_direct_applier
// +build !without_exec_applier !without_direct_applier
//go:build !without-exec-applier || !without-direct-applier
// +build !without-exec-applier !without-direct-applier

package applier

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build without_exec_applier && without_direct_applier
// +build without_exec_applier,without_direct_applier
//go:build without-exec-applier && without-direct-applier
// +build without-exec-applier,without-direct-applier

package applier

Expand Down
4 changes: 2 additions & 2 deletions pkg/test/testreconciler/simpletest/with_kubectl_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !without_exec_applier || !without_direct_applier
// +build !without_exec_applier !without_direct_applier
//go:build !without-exec-applier || !without-direct-applier
// +build !without-exec-applier !without-direct-applier

package simpletest

Expand Down

0 comments on commit eb66e7a

Please sign in to comment.