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

Makefile Build Failure with Go version 1.18.x #130

Closed
fredjywang opened this issue May 12, 2022 · 3 comments
Closed

Makefile Build Failure with Go version 1.18.x #130

fredjywang opened this issue May 12, 2022 · 3 comments
Assignees
Labels
good first issue Good for newcomers
Milestone

Comments

@fredjywang
Copy link
Contributor

fredjywang commented May 12, 2022

Installing executables in module mode with go get is deprecated: notice.

/Users/fjywang/aws-cloud-map-mcs-controller-for-k8s/bin/controller-gen "crd:trivialVersions=true,preserveUnknownFields=false" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
bash: /Users/fjywang/aws-cloud-map-mcs-controller-for-k8s/bin/controller-gen: No such file or directory
@astaticvoid
Copy link
Contributor

go get: installing executables with 'go get' in module mode is deprecated.
	To adjust and download dependencies of the current module, use 'go get -d'.
	To install using requirements of the current module, use 'go install'.
	To install ignoring the current module, use 'go install' with a version,
	like 'go install example.com/cmd@latest'.
	For more information, see https://golang.org/doc/go-get-install-deprecation
	or run 'go help get' or 'go help install'.

@astaticvoid
Copy link
Contributor

astaticvoid commented May 12, 2022

Switching to go install as suggested breaks kustomize go.mod

go: sigs.k8s.io/kustomize/kustomize/v3@v3.8.7 (in sigs.k8s.io/kustomize/kustomize/v3@v3.8.7):
	The go.mod file for the module providing named packages contains one or
	more exclude directives. It must not contain directives that would cause
	it to be interpreted differently than if it were the main module.

@astaticvoid
Copy link
Contributor

astaticvoid commented May 12, 2022

.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Development

No branches or pull requests

2 participants