chore: add SPDX headers, DCO enforcement, and build-debug target#501
chore: add SPDX headers, DCO enforcement, and build-debug target#501
Conversation
- Add SPDX copyright (Netresearch DTT GmbH) and license (MIT) headers to all Go source files - Add DCO section to CONTRIBUTING.md requiring Signed-off-by trailers - Add DCO enforcement hook in lefthook.yml (commit-msg check) - Add BUILD_FLAGS variable and build-debug Makefile target for debug symbol preservation Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
There was a problem hiding this comment.
Pull request overview
This PR adds SPDX copyright headers to all Go source files, implements DCO enforcement via a lefthook commit-msg hook, and introduces build targets for debug symbol preservation. These changes support OpenSSF Best Practices Silver badge criteria for license_per_file, copyright_per_file, dco, and build_preserve_debug.
Changes:
- Added SPDX-License-Identifier and copyright headers to 225 Go files
- Implemented DCO sign-off enforcement with lefthook commit-msg hook
- Added
build-debugMakefile target andBUILD_FLAGSvariable for controlling debug symbol stripping
Reviewed changes
Copilot reviewed 228 out of 228 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| All Go source files | Added SPDX license identifier and copyright headers |
| lefthook.yml | Added DCO sign-off validation in commit-msg hook |
| Makefile | Added BUILD_FLAGS variable and build-debug target for debug symbol preservation |
| CONTRIBUTING.md | Added DCO documentation section with sign-off instructions |
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Merging this PR will degrade performance by 14.6%
Performance Changes
Comparing |
|
🚀 Released in v0.21.0 Thank you for your contribution! 🙏 This is now available in the latest release. Please test and verify everything works as expected in your environment. If you encounter any issues, please open a new issue. |
Summary
build-debugMakefile target andBUILD_FLAGSvariable for debug symbol preservationTest plan
make build-debugproduces binary with debug symbols