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 local-kicbase-debug" broken #19455

Closed
medyagh opened this issue Aug 15, 2024 · 4 comments
Closed

"make local-kicbase-debug" broken #19455

medyagh opened this issue Aug 15, 2024 · 4 comments
Assignees

Comments

@medyagh
Copy link
Member

medyagh commented Aug 15, 2024

we have a helper make target that supposed to build Kicbase and once it is built it should replace the code with the locally built kicbase image name

but the sed part of it is broken

$ make local-kicbase-debug

docker tag local/kicbase:v0.0.44-1723650208-19443 local/kicbase:latest
docker tag local/kicbase:v0.0.44-1723650208-19443 local/kicbase:v0.0.44-1723650208-19443-c039149d5
sed -i '' 's|Version = .*|Version = \"v0.0.44-1723650208-19443-c039149d5\"|;s|baseImageSHA = .*|baseImageSHA = \"\"|;s|gcrRepo = .*|gcrRepo = \"local/kicbase\"|;s|dockerhubRepo = .*|dockerhubRepo = \"local/kicbase\"|' pkg/drivers/kic/types.go
sed: can't read s|Version = .*|Version = \"v0.0.44-1723650208-19443-c039149d5\"|;s|baseImageSHA = .*|baseImageSHA = \"\"|;s|gcrRepo = .*|gcrRepo = \"local/kicbase\"|;s|dockerhubRepo = .*|dockerhubRepo = \"local/kicbase\"|: No such file or directory
make: *** [local-kicbase-debug] Error 2
@medyagh
Copy link
Member Author

medyagh commented Aug 15, 2024

ok update, this seems to be affecting specific versions of Macos
we replace sed for macos

SED = sed -i
ifeq ($(GOOS),darwin)
	SED = sed -i ''
endif

however if I let it be normal sed without the additional '' it works fine for me,

it seems like I am using Gnu SED and not macos Sed
we need to fix it in a way that if i tis Gnu sed it should not add '' after -i

@xcarolan
Copy link
Contributor

/assign

@afbjorklund
Copy link
Collaborator

afbjorklund commented Aug 16, 2024

Or just use /usr/bin/sed, instead of any weird overrides from brew or whatever

If you add "gnubin" to your PATH, you can get errors such as these (from coreutils)

@medyagh
Copy link
Member Author

medyagh commented Aug 21, 2024

that was done

@medyagh medyagh closed this as completed Aug 21, 2024
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

No branches or pull requests

3 participants