Install generated captcha executable into app priv #19

Merged
lambadalambda merged 1 commit from issue-7678-build-priv-copy into master 2026-05-13 18:44:36 +00:00

Summary

  • Bumps pleroma_captcha to 1.0.3.
  • Copies the make-generated priv/captcha executable into Mix's compiled application priv directory via Mix.Project.build_structure().
  • Keeps the Hex package free of generated priv artifacts while making consumers work without compile overrides.
  • Removes dev/doc-only applications from the runtime application list so docs can be published with current ExDoc/Makeup.

Verification

  • make clean && MIX_ENV=test mix compile --force && MIX_ENV=test mix test: 3 tests, 0 failures.
  • mix format --check-formatted passed.
  • mix docs passed with current locked ExDoc/Makeup.
  • mix hex.build --unpack --output /var/folders/8j/dz0ntd7n5x7dqzch0pbtnwfc0000gn/T/opencode/pleroma_captcha-1.0.3-unpack excluded priv from the package.
  • Compiling the unpacked package created _build/test/lib/captcha/priv/captcha, and Captcha.get/0 returned generated captcha data.
  • Pleroma path dependency verification passed: mix test test/pleroma/captcha_test.exs, 6 tests, 0 failures.
## Summary - Bumps `pleroma_captcha` to 1.0.3. - Copies the `make`-generated `priv/captcha` executable into Mix's compiled application priv directory via `Mix.Project.build_structure()`. - Keeps the Hex package free of generated `priv` artifacts while making consumers work without compile overrides. - Removes dev/doc-only applications from the runtime application list so docs can be published with current ExDoc/Makeup. ## Verification - `make clean && MIX_ENV=test mix compile --force && MIX_ENV=test mix test`: 3 tests, 0 failures. - `mix format --check-formatted` passed. - `mix docs` passed with current locked ExDoc/Makeup. - `mix hex.build --unpack --output /var/folders/8j/dz0ntd7n5x7dqzch0pbtnwfc0000gn/T/opencode/pleroma_captcha-1.0.3-unpack` excluded `priv` from the package. - Compiling the unpacked package created `_build/test/lib/captcha/priv/captcha`, and `Captcha.get/0` returned generated captcha data. - Pleroma path dependency verification passed: `mix test test/pleroma/captcha_test.exs`, 6 tests, 0 failures.
Install generated captcha executable into app priv
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/unit-testing Pipeline was successful
499a3bad5d
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!19
No description provided.