Skip to content

Commit 489b1a3

Browse files
Move cmd/dryrun to pkg/dryrun
Because the main package was at `./cmd`, when installed via `go install` the tool would just be called `cmd`. Now it will be installed as `dryrun` (although the path is very slightly different). Signed-off-by: Justin Kulikauskas <[email protected]>
1 parent 58c5e5c commit 489b1a3

File tree

29 files changed

+3
-3
lines changed

29 files changed

+3
-3
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ build:
8282

8383
.PHONY: build-cmd
8484
build-cmd: manifests
85-
go build -o build/_output/bin/dryrun ./cmd/
85+
go build -o build/_output/bin/dryrun ./cmd/dryrun
8686

8787
############################################################
8888
# images section
@@ -138,7 +138,7 @@ manifests: controller-gen kustomize
138138
@printf -- "---\n" > deploy/crds/policy.open-cluster-management.io_operatorpolicies.yaml
139139
$(KUSTOMIZE) build deploy/crds/kustomize_configurationpolicy >> deploy/crds/policy.open-cluster-management.io_configurationpolicies.yaml
140140
$(KUSTOMIZE) build deploy/crds/kustomize_operatorpolicy >> deploy/crds/policy.open-cluster-management.io_operatorpolicies.yaml
141-
cp deploy/crds/policy.open-cluster-management.io_configurationpolicies.yaml ./cmd/dryrun/
141+
cp deploy/crds/policy.open-cluster-management.io_configurationpolicies.yaml ./pkg/dryrun/
142142

143143
.PHONY: generate
144144
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.

cmd/main.go renamed to cmd/dryrun/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"errors"
77
"os"
88

9-
"open-cluster-management.io/config-policy-controller/cmd/dryrun"
9+
"open-cluster-management.io/config-policy-controller/pkg/dryrun"
1010
)
1111

1212
func main() {
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)