-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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) remove-spaces command does not work on GNU system #4327
Comments
that is working in the CI (which is ubuntu) |
From what I saw in the Lines 66 to 69 in 20a9955
Correct me if I am wrong but the PS: the "Trailing spaces" CI job only check for trailing spaces without trying to remove them ( kubebuilder/.github/workflows/spaces.yml Lines 11 to 21 in 20a9955
|
Should we keep this issue open? I wanted to show you the error. In the following screenshot, the first command is executed without the "fix" I made. And the second command is executed with the "fix". The fix I made is wrong. I can try to find a friend that have a mac to actually test the command or wait for someone that want to take the issue. |
HI @damsien The way that it is today I know that work on Mac If is mac then do as it is today WDYT? |
Yes we can do this, I'm not going to create the PR today but I'll work on it |
/assign |
What broke? What's expected?
This issue is related to the
Makefile
of Kubebuilder and not to the generatedMakefile
used for the operator.The command
make remove-spaces
executed on a GNU system raises an error.kubebuilder/Makefile
Lines 71 to 74 in e9beffb
That is due to a difference between the
sed
of the GNU system and the OS X system (this command works well on MacOS). It is well explained here.My proposal to solve this is to add a check of the system.
Reproducing this issue
No response
KubeBuilder (CLI) Version
4.3.1
PROJECT version
No response
Plugin versions
No response
Other versions
No response
Extra Labels
No response
The text was updated successfully, but these errors were encountered: