Skip to content

Pin roxygen2 in the pre-commit config - #1301

Merged
lorenzwalthert merged 1 commit into
r-lib:mainfrom
GoekeLab:meta_pin-roxygen2
Sep 29, 2026
Merged

lorenzwalthert merged 1 commit into
r-lib:mainfrom
GoekeLab:meta_pin-roxygen2

Conversation

@adityaruplaha

@adityaruplaha adityaruplaha commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #1300, where the pin was requested.

The pin needs a newer rev. v0.4.3.9025 snapshots a repository without rdtools, which roxygen2 8.1.0 requires, so roxygen2@8.1.0 has no effect there. v0.4.3.9032 snapshots a later one that has it, and the pin then applies.

Only the {precommit} rev is bumped, not the other hooks'. All hooks pass locally, with the roxygenize cache cleared so that it actually runs.

🤖 Generated with Claude Code, with thorough human review. Work supported by @GoekeLab.

The roxygenize hook installed whatever roxygen2 the pinned rev's
lockfile resolved to, which differed from the version CI uses, so
generated files could change depending on where the hook ran.

v0.4.3.9025 snapshots a repository without rdtools, which roxygen2
8.1.0 requires, so the pin has no effect at that rev. v0.4.3.9032
snapshots a later one that has it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PefX8qkninc5xGA2eCJ4aD
@lorenzwalthert

Copy link
Copy Markdown
Collaborator

Good idea, I also wondered about that but did not check if there was a newer hook revision.

@lorenzwalthert
lorenzwalthert merged commit 8934241 into r-lib:main Sep 29, 2026
12 of 13 checks passed
@adityaruplaha
adityaruplaha deleted the meta_pin-roxygen2 branch September 29, 2026 16:24
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