mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 11:07:10 +00:00
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:
1 parent
6a9fac7ec0
commit
8c6a3171d7
2 files changed
+15
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user