-
Notifications
You must be signed in to change notification settings - Fork 180
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
Removed GOPATH check #1026
Removed GOPATH check #1026
Conversation
Signed-off-by: Vikram Hosakote <[email protected]>
build PR |
Thanks for doing this @vhosakot. I did things slightly differently and it seemed to work:
That seemed to work. Actually, this does not work. Disregard :) |
README.md
Outdated
@@ -30,7 +30,9 @@ that lives behind an OVS bridge and has its own unique interfaces. | |||
#### Step 1: Clone the project and bringup the VMs | |||
|
|||
Note: if you have $GOPATH set, then please ensure either you unset GOPATH, | |||
or clone the tree in `$GOPATH/src/github.com/contiv/` location | |||
or clone the tree in `$GOPATH/src/github.com/contiv/` location. If you are | |||
using a Makefile target that needs `GOPATH`, please set it by doing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need this change, it is covered by the first line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rchirakk The first line is not clear IMO. It does not clearly say "you MUST set GOPATH
for certain targets". Hence, @delapsley and I both saw issues without GOPATH
as there is no check for empty GOPATH
in Makefile
. Since there is no check for empty GOPATH
, I added this clear note for the user.
Signed-off-by: Vikram Hosakote <[email protected]>
@rchirakk I removed the note in the documentation. FYI, when |
build PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Not all Makefile targets need
GOPATH
to be set. Makefile targets likedemo
anddemo-v2plugin
do not needGOPATH
to be set in order to sync the directorysrc/github.com/contiv/netplugin
on the laptop with/opt/gopath
inside the vagrant VM (https://github.com/contiv/netplugin/blob/master/Vagrantfile#L370). Targets liketar
andcompile-with-docker
also do not needGOPATH
.Hence, this PR removes the check for
GOPATH
in the Makefile and adds documentation inREADME.md
for the user to setGOPATH
when using Makefile targets likek8s-test
,system-test
,clean
andcompile
that do needGOPATH
to be set (https://github.com/contiv/netplugin/blob/master/Makefile#L99).Tested on Mac laptop.
Signed-off-by: Vikram Hosakote [email protected]