diff --git a/meson/build-cli.sh b/meson/build-cli.sh index a76e202..26e6698 100755 --- a/meson/build-cli.sh +++ b/meson/build-cli.sh @@ -1,12 +1,13 @@ #!/bin/bash exec_name=writeas BIN_DIR="$MESON_BUILD_ROOT"/bin +export GOPATH="$MESON_BUILD_ROOT"/go echo "Building $exec_name CLI..." # go get to fetch dependencies go get github.com/writeas/writeas-cli/cmd/writeas && cd "$MESON_SOURCE_ROOT"/src/github.com/writeas/writeas-cli/cmd/writeas && mkdir -p "$BIN_DIR" && go build -o "$BIN_DIR"/writeas && echo "Success."