fix(deps): update module github.com/hashicorp/copywrite to v0.25.3#88
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
fix(deps): update module github.com/hashicorp/copywrite to v0.25.3#88renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
Contributor
Author
ℹ️ Artifact update noticeFile name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
File name: tools/go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
ff9b151 to
2a3c88c
Compare
2a3c88c to
15dd2f7
Compare
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.
This PR contains the following updates:
v0.21.0→v0.25.3v0.22.0→v0.25.3Release Notes
hashicorp/copywrite (github.com/hashicorp/copywrite)
v0.25.3Compare Source
v0.25.3
Bug Fixes
LICENSE no longer updated on every run (#224)
anyFileUpdatedwas unconditionally set totruein non-plan mode dueto a buggy condition, causing the LICENSE file's copyright year to
be bumped on every successful run — even when all source file headers were
already correct. This triggered spurious pre-commit hook failures with
"files were modified by this hook" when nothing should have changed.
addlicense.Runnow correctly reports whether it actually wrote any files,and the LICENSE update is gated on that signal.
Ignored directories are now skipped in a single step (#225)
Patterns in
header_ignore(e.g..venv/**,vendor/**) were previouslyonly checked against files — the walk still descended into every directory
unconditionally, visiting each file before discarding it. For directories
with thousands of files this caused significant slowdowns. The walk now
checks each directory against ignore patterns and returns
filepath.SkipDirimmediately, pruning the entire subtree regardless of how many files are
inside.
Full Changelog
v0.25.2Compare Source
What's Changed
New Features
ignore_year1config option (#213): Added a newproject.ignore_year1boolean flag in.copywrite.hcl. When set totrue, the tool skips updating the start year in existing copyright headers, preserving historically accurate start years (e.g.2015) even when they differ fromcopyright_yearin config. End-year logic is unaffected — files modified after their copyright end year still get the end year bumped to current year. New files with no copyright header are also unaffected and always receive the config year as the start year.Bug Fixes
ignore_year2references from config, CLI, init template, and README.Documentation
ignore_year1behaviour for both source file headers and LICENSE files.ignore_year1as a commented-out option.v0.25.1Compare Source
Fixed
Details
This release fixes two critical bugs introduced in v0.25.0 (#191):
buildRepositoryCachenow correctly formats git output with__CW_YEAR__=prefix, allowing the parser to properly identify years vs filenamesUsers running v0.25.0 who noticed copyright year updates weren't working should upgrade to this version.
v0.25.0Compare Source
Improvements
v0.24.2Compare Source
v0.24.2
Bug Fixes
Fix .hbs file copyright parsing to prevent code corruption
Fixed a critical bug where the copyright detection logic was incorrectly modifying JavaScript code inside
.hbs(Handlebars) template files. Previously, any indented line containing "copyright" (such ascopyright: 'Copyright Acme Inc.'in JavaScript objects) was being treated as a copyright header and modified.What changed:
.hbsfiles to distinguish between actual copyright headers inside{{! ... }}comment blocks and regular code{{! ... }}comment blocksImpact:
.hbsfiles with multi-line copyright headers in{{! ... }}blocks work correctly.js,.go,.py, etc.) are unaffectedThis fix was tested against the
hashicorp/boundary-uirepository and confirmed to resolve the issue without introducing regressions.v0.24.1Compare Source
What's Changed
v0.24.0Compare Source
What's Changed
Full Changelog: hashicorp/copywrite@v0.23.0...v0.24.0
v0.23.0Compare Source
What's Changed
New Contributors
Full Changelog: hashicorp/copywrite@v0.22.0...v0.23.0
v0.22.0Compare Source
What's Changed
New Contributors
Full Changelog: hashicorp/copywrite@v0.21.0...v0.22.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.