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

makefile cant exists gsed on MacOS #2072

Closed
Vacant2333 opened this issue Apr 26, 2024 · 3 comments
Closed

makefile cant exists gsed on MacOS #2072

Vacant2333 opened this issue Apr 26, 2024 · 3 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@Vacant2333
Copy link
Contributor

What happened:
i try to install kueue in local build, but it shows
image

and in fact i have install gsed
image

What you expected to happen:
i can run make
IMAGE_REGISTRY=registry.example.com/my-user make image-local-push deploy

How to reproduce it (as minimally and precisely as possible):
OS: MacOS
IMAGE_REGISTRY=registry.example.com/my-user make image-local-push deploy

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version):
  • Kueue version (use git describe --tags --dirty --always):
  • Cloud provider or hardware configuration:
  • OS (e.g: cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
@Vacant2333 Vacant2333 added the kind/bug Categorizes issue or PR as related to a bug. label Apr 26, 2024
@Vacant2333
Copy link
Contributor Author

do we need fix it, i can help to create a pr :)

@tenzen-y
Copy link
Member

tenzen-y commented May 2, 2024

@Vacant2333 Thank you for creating this issue! Yes, this is actually a bug since we never set the gsed to the SED variable. So, could you open a PR?

kueue/Makefile

Lines 88 to 94 in 43e5eb8

SED ?= $(shell command -v sed)
ifeq ($(shell command -v gsed 2>/dev/null),)
SED = $(shell command -v sed)
endif
ifeq ($(shell ${SED} --version 2>&1 | grep -q GNU; echo $$?),1)
$(error !!! GNU sed is required. If on OS X, use 'brew install gnu-sed'.)
endif

@Vacant2333
Copy link
Contributor Author

@Vacant2333 Thank you for creating this issue! Yes, this is actually a bug since we never set the gsed to the SED variable. So, could you open a PR?

kueue/Makefile

Lines 88 to 94 in 43e5eb8

SED ?= $(shell command -v sed)
ifeq ($(shell command -v gsed 2>/dev/null),)
SED = $(shell command -v sed)
endif
ifeq ($(shell ${SED} --version 2>&1 | grep -q GNU; echo $$?),1)
$(error !!! GNU sed is required. If on OS X, use 'brew install gnu-sed'.)
endif

yes i will do that

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants