Skip to content

Fix the lychee precommit hook - #2729

Merged
mdboom merged 1 commit into
NVIDIA:mainfrom
mdboom:fix-lychee
Aug 28, 2026
Merged

Fix the lychee precommit hook#2729
mdboom merged 1 commit into
NVIDIA:mainfrom
mdboom:fix-lychee

Conversation

@mdboom

@mdboom mdboom commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

The lychee precommit hook (which is independently released from lychee itself) recently changed behavior where it needs an actual lychee version, but it converts the hash to a rev using /our/ tags rather than it's own.

Fortunately, we can override this behavior with an environment variable, so the workaround is not to bad and does not reduce the security benefits of hash-pinning.

@mdboom mdboom self-assigned this Aug 28, 2026
@mdboom mdboom added bug Something isn't working CI/CD CI/CD infrastructure labels Aug 28, 2026
@mdboom mdboom added this to the cuda.bindings 13.4.0 & 12.9.8 milestone Aug 28, 2026
@mdboom

mdboom commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

The reason we didn't catch this in CI is because the pre-commit CI caches its environment based on our .pre-commit-config.yml content, so lychee was never getting reinstalled. You have to create a new environment locally to reproduce the issue.

@seberg seberg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Weird need, but clearly OK to do.

@mdboom
mdboom enabled auto-merge (squash) August 28, 2026 14:20
@github-actions

This comment has been minimized.

@mdboom
mdboom merged commit f22bfb7 into NVIDIA:main Aug 28, 2026
315 of 320 checks passed
@github-actions

Copy link
Copy Markdown
Doc Preview CI
Preview removed because the pull request was closed or merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working CI/CD CI/CD infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants