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

assert that you must build from inside your gopath #2399

Merged
merged 5 commits into from
Mar 2, 2016

Conversation

whyrusleeping
Copy link
Member

Make sure that the user cloned the code to the correct place, this is useful since go is very strict about paths.

cc @chriscool for some code review and @RichardLitt for doc stuff

License: MIT
Signed-off-by: Jeromy jeromyj@gmail.com

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
@ghost
Copy link

ghost commented Feb 24, 2016

This doesn't support the case where you link go-ipfs into GOPATH instead of working within GOPATH. Something like test $(realpath pwd) = $(realpath $GOPATH/src/andson)? GNU make has realpath included, so it doesn't actually depend on GNU coreutils.

@ghost
Copy link

ghost commented Feb 24, 2016

Otherwise agree this is an improvement -- have helped a few people with this in the past

@whyrusleeping
Copy link
Member Author

@lgierth good point, i'll use that

…dling

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
@whyrusleeping
Copy link
Member Author

@lgierth it looks like realpath isnt installed on travis :(

@ghost
Copy link

ghost commented Feb 24, 2016

Mmh you could pass it in from the Makefile, so that it uses make's realpath

#!/bin/sh

if [ -z "$GOPATH" ]; then
echo "GOPATH not set, you must have go configured properly to install ipfs"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

. You

Note: @whyrusleeping you use commas a lot more than they should be used. In cases like this, use a period.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but, i like, commas

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but it doesn't come off the right way. You use them to divide up independent clauses, which ain't right.

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
whyrusleeping added a commit that referenced this pull request Mar 2, 2016
assert that you must build from inside your gopath
@whyrusleeping whyrusleeping merged commit 6d4da61 into master Mar 2, 2016
@whyrusleeping whyrusleeping deleted the fix/assert-gopath branch March 2, 2016 21:00
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 this pull request may close these issues.

3 participants