-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 shows source: not found #4203
Comments
This commit is to set default shell as bash for Makefile. Some of the targets (e.g. test) in Make is source command, which is not available in default Makefile shell (e.g. /bin/sh). Closes operator-framework#4203
This commit is to set default shell as bash for Makefile. Some of the targets (e.g. test) in Make is source command, which is not available in default Makefile shell (e.g. /bin/sh). Closes operator-framework#4203
@sayboras out of curiosity what Linux version are you using? |
oh right, I am running with ubuntu
|
This commit is to set default shell as bash for Makefile. Some of the targets (e.g. test) in Make is source command, which is not available in default Makefile shell (e.g. /bin/sh). Closes operator-framework#4203
This commit is to set default shell as bash for Makefile. Some of the targets (e.g. test) in Make is source command, which is not available in default Makefile shell (e.g. /bin/sh). Closes operator-framework#4203
This commit is to set default shell as bash for Makefile. Some of the targets (e.g. test) in Make is source command, which is not available in default Makefile shell (e.g. /bin/sh). Closes operator-framework#4203
Thanks. So based on the default Ubuntu installation |
Relates to kubernetes-sigs/controller-runtime#1300 |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
This will be fixed by kubernetes-sigs/kubebuilder#2149 |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Bug Report
make test
shows below error for golang projectWhat did you do?
Follow steps in https://sdk.operatorframework.io/docs/building-operators/golang/quickstart/, and run
make test
What did you expect to see?
make test
should not show any errorWhat did you see instead? Under which circumstances?
make test ... /bin/sh: 1: source: not found /bin/sh: 1: fetch_envtest_tools: not found /bin/sh: 1: setup_envtest_env: not found ...
Environment
Operator type:
/language go
Kubernetes cluster type:
NA
$ operator-sdk version
operator-sdk version: "v1.1.0", commit: "9d27e224efac78fcc9354ece4e43a50eb30ea968", kubernetes version: "v1.18.2", go version: "go1.15 linux/amd64", GOOS: "linux", GOARCH: "amd64"
$ go version
(if language is Go)go version go1.15.3 linux/amd64
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T12:50:19Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"linux/amd64"}
Possible Solution
Makefile uses
/bin/sh
as default shell, override it by adding default line in MakefileAdditional context
The text was updated successfully, but these errors were encountered: