fix(release): ship linux/amd64 agentctl in every release artifact
Remote executors (local Docker, remote Docker, Sprites) bind-mount the linux/amd64 agentctl into the container. The release pipeline only shipped a host-arch agentctl, so users who installed via the bundled binaries (npm/Homebrew/etc.) hit the same "agentctl linux binary not found" error the first time they tried a Docker executor — even on Linux, since the resolver expects the -linux-amd64 suffix. Changes: - .github/workflows/release.yml: cross-compile agentctl-linux-amd64 in the build-bundles matrix step (CGO off so it works from every host). Bundle ships kandev + host agentctl + agentctl-linux-amd64 in dist/kandev/bin/. The AgentctlResolver finds it next to the kandev binary automatically. - Dockerfile: same idea for the container image — produce both variants in the Go builder stage and copy the linux-amd64 helper into /app/apps/backend/bin/ so the resolver picks it up inside the image. A previous commit added the same dependency to \`make build\` for local dev installs; this commit closes the gap for end users.
This commit is contained in:
@@ -94,6 +94,17 @@ jobs:
|
||||
go build -o bin/kandev${EXT} ./cmd/kandev
|
||||
go build -o bin/agentctl${EXT} ./cmd/agentctl
|
||||
|
||||
# Cross-compile a linux/amd64 agentctl regardless of the host platform.
|
||||
# Remote executors (local Docker, remote Docker, Sprites) bind-mount this
|
||||
# binary into the container — without it, Docker sessions fail with
|
||||
# "agentctl linux binary not found" on Mac/Windows installs and even on
|
||||
# Linux installs (the resolver looks for the -linux-amd64 suffix).
|
||||
# CGO is off so this works from any host without extra toolchain setup.
|
||||
- name: Build linux/amd64 agentctl helper
|
||||
run: |
|
||||
cd apps/backend
|
||||
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 CC= go build -o bin/agentctl-linux-amd64 ./cmd/agentctl
|
||||
|
||||
- name: Package bundle
|
||||
run: |
|
||||
rm -rf dist/kandev
|
||||
@@ -101,6 +112,7 @@ jobs:
|
||||
EXT=${{ matrix.goos == 'windows' && '.exe' || '' }}
|
||||
cp apps/backend/bin/kandev${EXT} dist/kandev/bin/
|
||||
cp apps/backend/bin/agentctl${EXT} dist/kandev/bin/
|
||||
cp apps/backend/bin/agentctl-linux-amd64 dist/kandev/bin/
|
||||
mkdir -p dist/kandev/web
|
||||
cp -R dist/web/. dist/kandev/web/
|
||||
cd dist
|
||||
|
||||
Reference in New Issue
Block a user