Skip to content

Commit c29151b

Browse files
committed
Set GOPATH in build script
1 parent 97e4bbf commit c29151b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
#!/bin/bash -e
22

3+
setup_gopath() {
4+
rm -rf .gopath
5+
SELF="${PWD}/.gopath/src/github.com/jingweno/ccat"
6+
mkdir -p "${SELF%/*}"
7+
ln -snf "$PWD" "$SELF"
8+
export GOPATH="${PWD}/.gopath"
9+
}
10+
11+
setup_gopath
312
go build -o ccat

0 commit comments

Comments
 (0)