From 105df6cfa93e920fc396831dcbc46b8b8e93e7c9 Mon Sep 17 00:00:00 2001 From: Andrey Kumanyaev Date: Sat, 31 Oct 2026 12:33:37 +0100 Subject: [PATCH] build(plugin): emit the Claude Code plugin without the llama tag `make claude-plugin` depended on `build`, which links llama.cpp through `-tags llama`. The publish-claude-plugin runner has no llama.cpp, so the "Regenerate plugin bundle" step has failed on every run since the tag was added to `build`, and gortexhq/claude-plugin was last synced from v0.24.0. The emitter needs none of the optional backends, so the target now runs it with `go run` and no build tags. That also leaves a locally built ./gortex untouched. Nothing else ran this target, so the break only showed when a release tried to publish. The skill-drift job, which already builds the pure-Go CLI on a stock runner, now runs `make claude-plugin` as well, and also triggers on changes to the Makefile and the publish workflow. --- .github/workflows/skill-drift.yml | 8 ++++++++ Makefile | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/skill-drift.yml b/.github/workflows/skill-drift.yml index 887ce515c..973816d5f 100644 --- a/.github/workflows/skill-drift.yml +++ b/.github/workflows/skill-drift.yml @@ -23,7 +23,9 @@ on: - 'internal/hooks/**' - 'internal/mcp/**' - 'cmd/gortex/**' + - 'Makefile' - '.github/workflows/skill-drift.yml' + - '.github/workflows/publish-claude-plugin.yml' workflow_dispatch: jobs: @@ -44,3 +46,9 @@ jobs: - name: All-platform render structural check run: ./gortex agents render --check + + # publish-claude-plugin runs this target on every release, and nothing + # else exercises it, so a build change that breaks it would only show + # when a release tries to publish. + - name: Claude Code plugin bundle + run: make claude-plugin diff --git a/Makefile b/Makefile index c6fcd82eb..c726edb6e 100644 --- a/Makefile +++ b/Makefile @@ -158,9 +158,13 @@ build-windows: # no diff against what's checked in — drift means the bundle is stale # vs the source-of-truth content in # internal/agents/commands_bodies.go. -claude-plugin: build +# +# The emitter needs none of the optional backends, so it is built without +# `build`'s llama tag: the publish runner has no llama.cpp to link against. +# `go run` also leaves a locally built ./gortex untouched. +claude-plugin: rm -rf ./claude-plugin - ./$(BINARY) plugin emit --target ./claude-plugin --variant anthropic + go run -ldflags '$(LDFLAGS)' ./cmd/gortex/ plugin emit --target ./claude-plugin --variant anthropic @echo "✓ Regenerated claude-plugin/ from internal/agents commands" claude-plugin-check: claude-plugin