-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
update-codegen.sh
doesn't work outside of GOPATH
#3884
Comments
my temporary workaround is to link my current pwd to |
Note that this is also the case for $ mkdir -p .gopath/src/github.com/tektoncd
mkdir: created directory '.gopath'
mkdir: created directory '.gopath/src'
mkdir: created directory '.gopath/src/github.com'
mkdir: created directory '.gopath/src/github.com/tektoncd'
$ ln -s $(pwd) $(pwd)/.gopath/src/github.com/tektoncd/pipeline
$ ls -l .gopath/src/github.com/tektoncd
lrwxrwxrwx 13 vincent 17 May 15:11 pipeline -> /tmp/pipeline
$ export GOPATH=/tmp/pipeline/.gopath
$ ./hack/update-codegen.sh
# […]
$ ./hack/update-codegen.sh
# […] |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
/lifecycle frozen |
Running
./hack/update-codegen.sh
from outside ofGOPATH
seems to be broken. It will create the files in${GOPATH}/src/github.com/tektoncd/pipeline
which, if you are not inGOPATH
, won't update your working directory and thus won't work.See below
We may want to update the script based on what has been done upstream in knative (even though I am not sure if it supports or not being run outside of
GOPATH
).Note that
./hack/update-openapi.sh
is also broken when not inGOPATH
./kind bug
The text was updated successfully, but these errors were encountered: