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

make generate-crd error #3453

Closed
SubhasmitaSw opened this issue Jul 15, 2022 · 2 comments
Closed

make generate-crd error #3453

SubhasmitaSw opened this issue Jul 15, 2022 · 2 comments

Comments

@SubhasmitaSw
Copy link
Contributor

SubhasmitaSw commented Jul 15, 2022

Ref gnu-sed failing

gnu-sed is failing, causing the post processing steps to abort returning an error like:

go: creating new go.mod: module tmp
CONTROLLER_GEN=/Users/chikki/go/bin/controller-gen ./script/gen_crd.sh
sed: 1: "/creationTimestamp:/a\\ ...": extra characters after \ at the end of a command
make: *** [generate-crd] Error 1

System: Mac OSX

Probable reason: BSD/macOS sed requires an actual newline character to follow a\, before the text to append

@SubhasmitaSw SubhasmitaSw changed the title make generate-crd error make generate-crd error Jul 15, 2022
@christophd
Copy link
Contributor

Camel K has stopped supporting BSD/macOS sed recently (see #3372 and #3398) Instead MacOS users are encouraged to install gnu-sed.

Could you please install gnu-sed on your machine (e.g. brew install gnu-sed) and set your PATH accordingly to use gnu-sed with: export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"

@tadayosi
Copy link
Member

I think the solution is answered, so let's close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants