feat(cli): doctor check that surfaces placeholder sidecar JAR

Doctor flags a shipped binary that's still carrying the build-time
placeholder so `uatu test` won't silently fail trying to launch a
nonexistent sidecar. Makefile uatu target now copies the freshly
built fat JAR into the embed directory before `go build`.
This commit is contained in:
pj committed 2026-04-18 00:06:30 +07:00
1 parent 6a9fac7ec0
commit 8c6a3171d7
2 files changed
+15

No files matched your search

+2
View File
@@ -7,6 +7,7 @@ BUF := buf
GO_PACKAGES := ./...
SIDECAR_JAR := sidecar/build/libs/sidecar-all.jar
SIDECAR_EMBED := internal/sidecar/assets/sidecar-all.jar
SDK_AAR := sdk/android/build/outputs/aar/sdk-android-release.aar
UATU_BIN := bin/uatu
@@ -35,6 +36,7 @@ uatu: $(UATU_BIN)
$(UATU_BIN): $(SIDECAR_JAR)
mkdir -p bin
cp $(SIDECAR_JAR) $(SIDECAR_EMBED)
$(GO) build -o $(UATU_BIN) ./cmd/uatu
$(SIDECAR_JAR):