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:
2
Makefile
2
Makefile
@ -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`'
|
||||
|
@ -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'"
|
||||
|
Reference in New Issue
Block a user