Skip to content

Commit

Permalink
ig sleep is really necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkauzh committed Dec 31, 2024
1 parent 491e548 commit 42e8b74
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions test/backend/nixos_web.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
GO_BINARY=$(which go)
if [ -z "$GO_BINARY" ]; then
echo "Error: Go binary not found. Please ensure Go is installed and available in your PATH."
exit 1
fi

GOROOT=$(dirname $(dirname "$GO_BINARY"))
if [ ! -d "$GOROOT" ]; then
echo "Error: GOROOT directory $GOROOT does not exist."
exit 1
fi

CACHE_DIR="/home/$USER/.cache/go-build"

env -i \
GOARCH="amd64" \
GOPATH="$HOME/.local/go" \
GOROOT="$GOROOT/share/go" \
GOCACHE="$CACHE_DIR" \
GOARCH="$GOARCH" \
GOPATH="$GOPATH" \
GOROOT="$GOROOT" \
GOCACHE="$GOCACHE" \
USER="$USER" \
XDG_CACHE_HOME="$HOME/.cache" \
HOME="/home/$USER" \
PATH="$HOME/.local/go/bin:$PATH" \
XDG_CACHE_HOME="$XDG_CACHE_HOME" \
HOME="$HOME" \
PATH="$GOPATH/bin:$PATH" \
"$GOPATH/bin/wasmserve" ./test/backend

0 comments on commit 42e8b74

Please sign in to comment.