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 test does not work on MacOS #117

Closed
porridge opened this issue Nov 17, 2021 · 1 comment · Fixed by #112
Closed

make test does not work on MacOS #117

porridge opened this issue Nov 17, 2021 · 1 comment · Fixed by #112
Assignees

Comments

@porridge
Copy link
Member

BSD sed (as shipped with MacOS) does not support + nor \+ in regular expressions.
However it does support \{1,\} which does the same thing and is also supported by GNU sed.

Moreover, bash 3.2 (as shipped with MacOS) does not seem to support source <(...), it seems to just do nothing.
Using plain eval seems to do the trick though.

Symptom of the former issue is:

source <(setup-envtest use -p env v0.22.1) && go test -race -covermode atomic -coverprofile cover.out ./...
version be a valid version, or simply 'latest' or 'latest-on-disk': unable to parse "v0.22.1" as a version stringshould be X.Y.Z, where Z may be '*','x', or left off entirely to denote a wildcard, optionally prefixed by ~|<|<=, and optionallyfollowed by ! (latest remote version)

And of the latter:

      unable to start control plane itself: failed to start the controlplane. retried 5 times: fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory

(even though the binaries are fetched by setup-envtest)

@porridge
Copy link
Member Author

/assign

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

Successfully merging a pull request may close this issue.

1 participant