Skip to content

Commit 1ff3bc7

Browse files
committed
chore(scripts): use slim and always run make in coder-dev.sh
1 parent 75f62dc commit 1ff3bc7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

scripts/coder-dev.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ source "${SCRIPT_DIR}/lib.sh"
1010

1111
GOOS="$(go env GOOS)"
1212
GOARCH="$(go env GOARCH)"
13-
RELATIVE_BINARY_PATH="build/coder_${GOOS}_${GOARCH}"
13+
RELATIVE_BINARY_PATH="build/coder-slim_${GOOS}_${GOARCH}"
1414

1515
# To preserve the CWD when running the binary, we need to use pushd and popd to
1616
# get absolute paths to everything.
@@ -20,10 +20,6 @@ CODER_DEV_BIN="$(realpath "$RELATIVE_BINARY_PATH")"
2020
CODER_DEV_DIR="$(realpath ./.coderv2)"
2121
popd
2222

23-
if [[ ! -x "${CODER_DEV_BIN}" ]]; then
24-
echo "Run this command first:"
25-
echo " make $RELATIVE_BINARY_PATH"
26-
exit 1
27-
fi
23+
make -j "${RELATIVE_BINARY_PATH}"
2824

2925
exec "${CODER_DEV_BIN}" --global-config "${CODER_DEV_DIR}" "$@"

0 commit comments

Comments
 (0)