Skip to content

Commit 9e456b1

Browse files
stubbiclaude
andauthored
fix(agent-image): relock uses uv image entrypoint (unblocks hermes-agent publish) (#46)
`make agent-image-relock` (and the new CI relock workflow) failed with `error: unrecognized subcommand 'sh'`. The `ghcr.io/astral-sh/uv` image is distroless with `uv` as its entrypoint, so `docker run … uv:0.5.0 sh -c "uv lock"` passes `sh` to `uv` as a subcommand — and there's no shell in the image to fall back to. This is the root reason the lockfile was never generated and `ghcr.io/paperclipinc/hermes-agent` was never published. Fix: pass `lock` directly to the uv entrypoint. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 3156e08 commit 9e456b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ agent-image-relock:
157157
-v $(PWD)/images/hermes-agent:/work \
158158
-w /work \
159159
ghcr.io/astral-sh/uv:0.5.0 \
160-
sh -c "uv lock"
160+
lock
161161
@echo "Updated images/hermes-agent/pyproject.toml and uv.lock for hermes-agent@$(HERMES_VERSION)"
162162

163163
# Smoke-test a locally built image: --help should exit 0.

0 commit comments

Comments
 (0)