Skip to content

Fix make release failing with "Command hex not found" - #190

Merged
andreashasse merged 1 commit into
mainfrom
andreashasse/hex-command-not-found-80a3cd
Sep 11, 2026
Merged

andreashasse merged 1 commit into
mainfrom
andreashasse/hex-command-not-found-80a3cd

Conversation

@andreashasse

Copy link
Copy Markdown
Owner

Releasing broke at the publish step with ===> Command hex not found.

What changed

  • Add rebar3_hex to project_plugins in rebar.config. The hex build and hex publish tasks come from that plugin, which was never declared in the project or in the global rebar3 config, so make release could never reach Hex. rebar3 help hex now lists the build/publish tasks.
  • Move git tag to after rebar3 hex publish in the release target. Tagging first meant a failed publish left a stray local tag behind, which then blocked the retry because the tag already existed.

For the reviewer

.tool-versions was not the right place for this. It pins tool versions (erlang, elixir, rebar), not rebar3 plugins.

Anyone who hit the old ordering may have a stray unpushed tag locally. git tag -d <tag> clears it.

🤖 Generated with Claude Code

`rebar3 hex build` and `rebar3 hex publish` come from the rebar3_hex
plugin, which was never declared anywhere, so releasing failed as soon
as it reached the publish step. Add rebar3_hex to project_plugins.

Also move `git tag` to after `rebar3 hex publish`. Tagging first meant a
failed publish left a stray local tag behind, which then blocked the
retry because the tag already existed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@andreashasse
andreashasse merged commit 3e72b46 into main Sep 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant