Exclude generated captcha executable from Hex package #18

Merged
lambadalambda merged 1 commit from issue-7678-rebuild-captcha into master 2026-05-13 17:39:52 +00:00

Summary

  • Removes generated priv/captcha from future Hex package contents.
  • Keeps make able to build from unpacked packages by creating priv/ as an order-only prerequisite.
  • Bumps pleroma_captcha to 1.0.2 for a clean follow-up release.
  • Fixes the package-side root cause behind pleroma/pleroma#7898's Elixir 1.18 failure.
  • Pleroma PR 7898 includes a bridge workaround for already-published pleroma_captcha 1.0.1; after this package is released, Pleroma can simplify to ~> 1.0.2 without the workaround.

Verification

  • mix test passed: 2 tests, 0 failures.
  • mix hex.build --output /tmp/pleroma_captcha-1.0.2-verify.tar produced a package excluding priv/captcha.
  • Unpacked package had no priv/captcha, make -C <unpacked> rebuilt it, and executing it produced 17651 bytes.
  • Reviewer finding about missing priv/ in unpacked packages was addressed by the Makefile change.
## Summary - Removes generated `priv/captcha` from future Hex package contents. - Keeps `make` able to build from unpacked packages by creating `priv/` as an order-only prerequisite. - Bumps `pleroma_captcha` to `1.0.2` for a clean follow-up release. ## Related - Fixes the package-side root cause behind pleroma/pleroma#7898's Elixir 1.18 failure. - Pleroma PR 7898 includes a bridge workaround for already-published `pleroma_captcha 1.0.1`; after this package is released, Pleroma can simplify to `~> 1.0.2` without the workaround. ## Verification - `mix test` passed: 2 tests, 0 failures. - `mix hex.build --output /tmp/pleroma_captcha-1.0.2-verify.tar` produced a package excluding `priv/captcha`. - Unpacked package had no `priv/captcha`, `make -C <unpacked>` rebuilt it, and executing it produced 17651 bytes. - Reviewer finding about missing `priv/` in unpacked packages was addressed by the Makefile change.
Exclude generated captcha executable from package
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/unit-testing Pipeline was successful
ef23d17580
lambadalambda changed title from WIP: Exclude generated captcha executable from Hex package to Exclude generated captcha executable from Hex package 2026-05-13 17:39:47 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma-elixir-libraries/elixir-captcha!18
No description provided.