Skip to content

Fix the private hex publish step - #24

Merged
pringlewood merged 2 commits into
masterfrom
louis/fix-private-hex-publish-step
Sep 3, 2026
Merged

Fix the private hex publish step#24
pringlewood merged 2 commits into
masterfrom
louis/fix-private-hex-publish-step

Conversation

@louisvisser

Copy link
Copy Markdown
Contributor

The dual-publish step added in #22 never worked: it passed flags to mix hex.repo add and mix hex.publish that Hex does not accept, so v1.1.2 failed before publishing to either hex.pm or the private repo.

Our registry is a vendored mini_repo, which takes a publish over its own HTTP API rather than through a repo-scoped flag. The private publish now points Hex's API URL at it, scoped to that one step so the hex.pm publish above is untouched. Registering the repo, which only ever configured reads, is gone.

The README still advertised version 0.1.0 and no private repo at all, so it now covers both ways to consume the package and how a release gets cut.

🤖 Generated with Claude Code

louisvisser and others added 2 commits September 3, 2026 12:37
The step configuring the flickswitch repo passed --api-url to
mix hex.repo add, which Hex does not accept, so the job failed before
either publish ran. The private publish itself then passed --repo to
mix hex.publish, which Hex also does not accept.

The registry is our vendored mini_repo, which takes a publish over its
own HTTP API. Point Hex at that API with HEX_API_URL instead, scoped to
the step so the hex.pm publish keeps the default. mix hex.repo add
configures reads only and is not needed to publish, so drop it.

Publish the package without docs: mini_repo serves packages only.

README documented version 0.1.0 and no private repo. Document both
consumption paths and how a release is cut.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
v1.1.2 came out as a draft release. Consumers fetch the precompiled
NIFs from the release assets, and an anonymous mix deps.get cannot read
a draft, so every consumer without a local build would fall back to
compiling Rust from source.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@louisvisser louisvisser changed the title [ADHOC] Fix the private hex publish step Fix the private hex publish step Sep 3, 2026
@louisvisser
louisvisser marked this pull request as ready for review September 3, 2026 10:48
@louisvisser louisvisser self-assigned this Sep 3, 2026
@pringlewood
pringlewood merged commit efa7b56 into master Sep 3, 2026
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.

2 participants