camel-k icon indicating copy to clipboard operation
camel-k copied to clipboard

`make generate-crd` error

Open SubhasmitaSw opened this issue 2 years ago • 1 comments

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 avatar Jul 15 '22 15:07 SubhasmitaSw

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"

christophd avatar Jul 15 '22 17:07 christophd

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

tadayosi avatar Aug 19 '22 05:08 tadayosi