Skip to content

fix(deps): update module github.com/hashicorp/copywrite to v0.25.3#88

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/github.com-hashicorp-copywrite-0.x
Open

fix(deps): update module github.com/hashicorp/copywrite to v0.25.3#88
renovate[bot] wants to merge 1 commit intomainfrom
renovate/github.com-hashicorp-copywrite-0.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Mar 24, 2026

This PR contains the following updates:

Package Change Age Confidence
github.com/hashicorp/copywrite v0.21.0v0.25.3 age confidence
github.com/hashicorp/copywrite v0.22.0v0.25.3 age confidence

Release Notes

hashicorp/copywrite (github.com/hashicorp/copywrite)

v0.25.3

Compare Source

v0.25.3

Bug Fixes
  • LICENSE no longer updated on every run (#​224)
    anyFileUpdated was unconditionally set to true in non-plan mode due
    to 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.Run now 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 previously
    only 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.SkipDir
    immediately, pruning the entire subtree regardless of how many files are
    inside.

Full Changelog

v0.25.2

Compare Source

What's Changed

New Features
  • ignore_year1 config option (#​213): Added a new project.ignore_year1 boolean flag in .copywrite.hcl. When set to true, the tool skips updating the start year in existing copyright headers, preserving historically accurate start years (e.g. 2015) even when they differ from copyright_year in 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.

    project {
      copyright_year = 2024
    
      # Preserve original start years in existing headers
      ignore_year1 = true
    }
Bug Fixes
  • Removed unused ignore_year2 references from config, CLI, init template, and README.
Documentation
  • README updated with ignore_year1 behaviour for both source file headers and LICENSE files.
  • Init template updated to include ignore_year1 as a commented-out option.

v0.25.1

Compare Source

Fixed

  • Fixed copyright year updates not being applied due to invalid git log format in the year update cache (#​191 regression)
  • Fixed symlink resolution issue on macOS causing cache misses for file copyright year lookups
  • Improved git information caching reliability and accuracy

Details

This release fixes two critical bugs introduced in v0.25.0 (#​191):

  1. The buildRepositoryCache now correctly formats git output with __CW_YEAR__= prefix, allowing the parser to properly identify years vs filenames
  2. Symlink paths are now resolved before computing relative paths, preventing cache misses on systems where /tmp is a symlink (macOS)

Users running v0.25.0 who noticed copyright year updates weren't working should upgrade to this version.

v0.25.0

Compare Source

Improvements

  • Major Performance Optimizations (#​191): Significantly improved performance by caching git repository information and reducing redundant lookups during header processing
  • Auto-Migration from HashiCorp to IBM (#​189): Added automatic detection and migration of HashiCorp copyright holders to IBM format, supporting all comment styles and preserving year information

v0.24.2

Compare 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 as copyright: 'Copyright Acme Inc.' in JavaScript objects) was being treated as a copyright header and modified.

What changed:

  • Implemented comment block tracking for .hbs files to distinguish between actual copyright headers inside {{! ... }} comment blocks and regular code
  • Removed the generic two-space prefix from global comment detection to prevent false positives
  • Indented copyright lines are now only detected when inside handlebars {{! ... }} comment blocks

Impact:

  • .hbs files with multi-line copyright headers in {{! ... }} blocks work correctly
  • ✅ JavaScript code with "copyright" keywords (e.g., in config objects) is no longer modified
  • ✅ All other file types (.js, .go, .py, etc.) are unaffected

This fix was tested against the hashicorp/boundary-ui repository and confirmed to resolve the issue without introducing regressions.

v0.24.1

Compare Source

What's Changed

v0.24.0

Compare Source

What's Changed

Full Changelog: hashicorp/copywrite@v0.23.0...v0.24.0

v0.23.0

Compare Source

What's Changed

New Contributors

Full Changelog: hashicorp/copywrite@v0.22.0...v0.23.0

v0.22.0

Compare Source

What's Changed

New Contributors

Full Changelog: hashicorp/copywrite@v0.21.0...v0.22.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Mar 24, 2026

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 24 additional dependencies were updated

Details:

Package Change
github.com/Masterminds/sprig/v3 v3.2.3 -> v3.3.0
github.com/bmatcuk/doublestar/v4 v4.8.1 -> v4.10.0
github.com/bradleyfalzon/ghinstallation/v2 v2.5.0 -> v2.18.0
github.com/charmbracelet/lipgloss v1.1.0 -> v1.1.1-0.20250319133953-166f707985bc
github.com/charmbracelet/x/cellbuf v0.0.13-0.20250311204145-2c3ea96c31dd -> v0.0.13
github.com/cli/go-gh/v2 v2.11.2 -> v2.13.0
github.com/fsnotify/fsnotify v1.8.0 -> v1.9.0
github.com/golang-jwt/jwt/v4 v4.5.1 -> v4.5.2
github.com/google/go-querystring v1.1.0 -> v1.2.0
github.com/huandu/xstrings v1.3.3 -> v1.5.0
github.com/jedib0t/go-pretty/v6 v6.4.6 -> v6.7.9
github.com/joho/godotenv v1.3.0 -> v1.5.1
github.com/mattn/go-isatty v0.0.20 -> v0.0.21
github.com/mergestat/timediff v0.0.3 -> v0.0.4
github.com/samber/lo v1.37.0 -> v1.53.0
github.com/shopspring/decimal v1.3.1 -> v1.4.0
github.com/spf13/afero v1.14.0 -> v1.15.0
github.com/spf13/cast v1.5.0 -> v1.7.0
github.com/spf13/cobra v1.9.1 -> v1.10.2
github.com/spf13/pflag v1.0.6 -> v1.0.10
github.com/stretchr/testify v1.10.0 -> v1.11.1
github.com/thanhpk/randstr v1.0.4 -> v1.0.6
github.com/yuin/goldmark v1.7.7 -> v1.7.8
golang.org/x/oauth2 v0.34.0 -> v0.36.0
File name: tools/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 31 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.23.7 -> 1.25.0
github.com/Masterminds/semver/v3 v3.2.0 -> v3.3.0
github.com/Masterminds/sprig/v3 v3.2.3 -> v3.3.0
github.com/bmatcuk/doublestar/v4 v4.8.1 -> v4.10.0
github.com/bradleyfalzon/ghinstallation/v2 v2.5.0 -> v2.18.0
github.com/cli/go-gh/v2 v2.11.2 -> v2.13.0
github.com/fsnotify/fsnotify v1.5.4 -> v1.9.0
github.com/golang-jwt/jwt/v4 v4.5.1 -> v4.5.2
github.com/google/go-querystring v1.1.0 -> v1.2.0
github.com/google/uuid v1.3.0 -> v1.6.0
github.com/huandu/xstrings v1.3.3 -> v1.5.0
github.com/inconshreveable/mousetrap v1.0.1 -> v1.1.0
github.com/jedib0t/go-pretty/v6 v6.4.6 -> v6.7.9
github.com/joho/godotenv v1.3.0 -> v1.5.1
github.com/mattn/go-isatty v0.0.20 -> v0.0.21
github.com/mattn/go-runewidth v0.0.15 -> v0.0.16
github.com/mergestat/timediff v0.0.3 -> v0.0.4
github.com/samber/lo v1.37.0 -> v1.53.0
github.com/shopspring/decimal v1.3.1 -> v1.4.0
github.com/spf13/cast v1.5.0 -> v1.7.0
github.com/spf13/cobra v1.6.1 -> v1.10.2
github.com/spf13/pflag v1.0.5 -> v1.0.10
github.com/thanhpk/randstr v1.0.4 -> v1.0.6
github.com/yuin/goldmark v1.7.7 -> v1.7.8
golang.org/x/crypto v0.36.0 -> v0.45.0
golang.org/x/mod v0.22.0 -> v0.29.0
golang.org/x/net v0.37.0 -> v0.47.0
golang.org/x/oauth2 v0.8.0 -> v0.36.0
golang.org/x/sync v0.12.0 -> v0.20.0
golang.org/x/sys v0.31.0 -> v0.38.0
golang.org/x/term v0.30.0 -> v0.37.0
golang.org/x/text v0.23.0 -> v0.31.0

@renovate renovate Bot force-pushed the renovate/github.com-hashicorp-copywrite-0.x branch from ff9b151 to 2a3c88c Compare April 1, 2026 19:55
@renovate renovate Bot force-pushed the renovate/github.com-hashicorp-copywrite-0.x branch from 2a3c88c to 15dd2f7 Compare April 29, 2026 19:37
@renovate renovate Bot changed the title fix(deps): update module github.com/hashicorp/copywrite to v0.25.2 fix(deps): update module github.com/hashicorp/copywrite to v0.25.3 Apr 29, 2026
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.

0 participants