1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-27 16:07:42 +08:00

build: fix path_check for symlink-into-gopath usecase

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
This commit is contained in:
Lars Gierth
2016-03-10 19:23:12 +01:00
parent 6f8ea136d5
commit 7d67b0a69c
2 changed files with 2 additions and 3 deletions

View File

@ -29,7 +29,7 @@ gxgo_upgrade:
go get -u github.com/whyrusleeping/gx-go
path_check:
@bin/check_go_path $(realpath $(shell pwd))
@bin/check_go_path $(realpath $(shell pwd)) $(realpath $(GOPATH)/src/github.com/ipfs/go-ipfs)
gx_check:
@bin/check_gx_program "gx" "0.3" 'Upgrade or install gx using your package manager or run `make gx_upgrade`'

View File

@ -1,6 +1,7 @@
#!/bin/sh
PWD=$1
EXPECTED=$2
if [ -z "$PWD" ]; then
echo "must pass in your current working directory"
@ -12,8 +13,6 @@ if [ -z "$GOPATH" ]; then
exit 1
fi
EXPECTED="$GOPATH/src/github.com/ipfs/go-ipfs"
if [ "$PWD" != "$EXPECTED" ]; then
echo "go-ipfs must be built from within your \$GOPATH directory."
echo "expected '$EXPECTED' but got '$PWD'"