Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

Install compatible Go for Cursor Cloud

shukieshahcfe77f581eb1
diff --git a/.cursor/install.sh b/.cursor/install.sh
index 5991b092..ad917856 100755
--- a/.cursor/install.sh
+++ b/.cursor/install.sh
@@ -28,10 +28,20 @@ install_from_release() {
}
install_go() {
- if command -v go >/dev/null 2>&1; then
+ local bundled_go="$BEACON_HOME/go-toolchain/go/bin/go"
+ if [ -x "$bundled_go" ]; then
+ export PATH="$(dirname "$bundled_go"):$PATH"
return
fi
+ if command -v go >/dev/null 2>&1; then
+ local current_version
+ current_version="$(go version 2>/dev/null | awk '{print $3}')"
+ if [[ "$current_version" =~ ^go1\.([0-9]+) ]] && [ "${BASH_REMATCH[1]}" -ge 24 ]; then
+ return
+ fi
+ fi
+
local go_version="${BEACON_GO_VERSION:-1.24.4}"
local arch