Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

ci(teamhub): resolve a relative SQLC_BIN before the verify script changes directory

shoudi zhengf3665daba6a2
diff --git a/apps/teamhub/Makefile b/apps/teamhub/Makefile
index 957c2a11..d39ba2a5 100644
--- a/apps/teamhub/Makefile
+++ b/apps/teamhub/Makefile
@@ -20,9 +20,10 @@ GOVULNCHECK ?= $(TOOLS_BIN)/govulncheck-$(GOVULNCHECK_VERSION)-$(GO_TOOLCHAIN_VE
SQLC_DEFAULT_BIN := $(TOOLS_BIN)/sqlc-$(SQLC_VERSION)-$(GO_TOOLCHAIN_VERSION)
SQLC_BIN ?= $(SQLC_DEFAULT_BIN)
# Only the default versioned binary is built here. An explicit SQLC_BIN, a path
-# or a command on PATH, is used as given.
+# or a command on PATH, is used as given; a path is made absolute because the
+# verify script runs sqlc from a temporary directory.
SQLC_PREREQ := $(if $(filter $(SQLC_DEFAULT_BIN),$(SQLC_BIN)),$(SQLC_DEFAULT_BIN))
-SQLC_RUN := $(if $(SQLC_PREREQ),$(abspath $(SQLC_BIN)),$(SQLC_BIN))
+SQLC_RUN := $(if $(findstring /,$(SQLC_BIN)),$(abspath $(SQLC_BIN)),$(SQLC_BIN))
RELIABILITY_TESTS := Test(RoomEventCatchupAndSSE|SSEClosesWhenSessionExpires|SSEClosesWhenSessionIsRevoked|SSEClosesDuringApplicationShutdown)