camel-k
camel-k copied to clipboard
`make generate-crd` error
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
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"
I think the solution is answered, so let's close it.