Skip to content

move pgp into its own package - #61

Merged
creativeprojects merged 3 commits into
v2from
separate-pgp
Oct 20, 2026
Merged

creativeprojects merged 3 commits into
v2from
separate-pgp

Conversation

@creativeprojects

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI balanced review requested due to automatic review settings October 19, 2026 20:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Static review identified no blocking issues in the extraction or updated integration points; tests were not executed.

No open issues 🎉

What changed in this PR

Moves PGP validation into a dedicated pgp package, keeping OpenPGP compilation out of applications that do not use it.

Changes:

  • Relocates PGP validators, errors, and tests.
  • Replaces core PGP test dependencies with lightweight validation helpers.
  • Updates documentation and test commands for the new package.
File Description
validate.go Removes PGP implementation and updates the example.
validate_test.go Removes tests relocated to pgp.
update_test.go Uses the replacement validation helper.
README.md Documents the new PGP API and usage.
pgp/​validator.go Defines PGP validation and checksum composition.
pgp/​validator_test.go Tests the relocated validator.
pgp/​updater_test.go Adds signed-checksum integration tests.
mockdata_test.go Replaces PGP fixtures with hash-based helpers.
Makefile Includes pgp in test targets.
errors.go Removes relocated PGP errors.
detect_test.go Uses the replacement validation helper.
.github/​workflows/​build.yml Includes pgp in CI tests.

Review effort: Balanced

@codecov

codecov Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.30769% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.95%. Comparing base (caf24d2) to head (8e98693).

Files with missing lines Patch % Lines
pgp/validator.go 92.31% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #61      +/-   ##
==========================================
- Coverage   80.96%   80.95%   -0.02%     
==========================================
  Files          28       29       +1     
  Lines        1161     1160       -1     
==========================================
- Hits          940      939       -1     
  Misses        218      218              
  Partials        3        3              
Flag Coverage Δ
unittests 80.95% <92.31%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@creativeprojects
creativeprojects changed the base branch from main to v2 October 20, 2026 19:58
@creativeprojects
creativeprojects merged commit 634d929 into v2 Oct 20, 2026
11 checks passed
@creativeprojects
creativeprojects deleted the separate-pgp branch October 20, 2026 19:58
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