Skip to content

Block FetchContent in CMake style checks#9124

Merged
alexreinking merged 3 commits intomainfrom
alexreinking/block-fetchcontent
May 7, 2026
Merged

Block FetchContent in CMake style checks#9124
alexreinking merged 3 commits intomainfrom
alexreinking/block-fetchcontent

Conversation

@alexreinking
Copy link
Copy Markdown
Member

@alexreinking alexreinking commented May 7, 2026

While reviewing #9116, I had to comment that FetchContent is not allowed and then do the dependency management work myself. I thought it would be good to document why we don't allow it and to extend the prohibited commands checker to notice when FetchContent is being introduced. Hopefully AI agents will pick up on this.

Checklist

  • Documentation updated (if public API changed)
  • Commits include AI attribution where applicable (see Code of Conduct)

@alexreinking alexreinking requested a review from abadams May 7, 2026 14:09
@alexreinking alexreinking added the skip_buildbots Do not run buildbots on this PR. Must add before opening PR as we scan labels immediately. label May 7, 2026
Comment thread .pre-commit-config.yaml
Comment on lines -130 to +131
name: check uv.lock is up to date
entry: uv lock --check
name: ensure uv.lock is up to date
entry: uv lock
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the drive-by, but I noticed I had to manually run uv lock on a different branch after this caught my mistake and I thought that was annoying. This does the right thing (fails but updates).

@alexreinking alexreinking merged commit e0d6ac7 into main May 7, 2026
6 checks passed
@alexreinking alexreinking deleted the alexreinking/block-fetchcontent branch May 7, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip_buildbots Do not run buildbots on this PR. Must add before opening PR as we scan labels immediately.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants