Repository navigation
Bundle Go dependency license files - #36
Merged
Merged
Conversation
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
Contributor
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #36 +/- ##
===========================================
+ Coverage 78.14% 95.24% +17.10%
===========================================
Files 8 12 +4
Lines 421 884 +463
===========================================
+ Hits 329 842 +513
+ Misses 92 42 -50 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add opt-in Go dependency license bundles using
go-licenses save .. CI installs the tested collector, google/go-licenses v2.0.1; users install it separately.licenses.destinationas a wheel-relative directory. Preserve every original saved license, notice, and source artifact in standard and editable wheels; keep temporary output out of source distributions.GOFLAGS, and explicit package-selection flags. Reject shell-dependent flags and disable external package drivers for collection.Verified on macOS arm64 with Python 3.12.14 and Go 1.27.1: 87 source tests and all 87 tests from the installed plugin wheel, 95.25% coverage, lint, type checks, manifest checks, wheel/sdist builds, and Twine checks. Tests cover real direct/transitive and build-tag-selected dependencies, persisted Go configuration, CRLF notices, full reciprocal-license source trees, native imports, standard/editable wheels, and sdist-to-wheel builds.
Runtime dependencies and version remain unchanged.
editablesis added only to the development extra for Hatchling's editable-wheel tests. No release is included.Type of Change
Checklist
make lint)make test; run throughmake coverage)