Skip to content

fix: case insensitive source directory - #45

Merged
samuelburnham merged 2 commits into
mainfrom
fix/case-insensitive-source-directory
Aug 22, 2026
Merged

fix: case insensitive source directory#45
samuelburnham merged 2 commits into
mainfrom
fix/case-insensitive-source-directory

Conversation

@samuelburnham

Copy link
Copy Markdown
Member

Extends the fix from #40 to the Nix build

MuNeNiCK and others added 2 commits August 22, 2026 12:15
The rename to `blake3-source` only covered `lakefile.lean`, leaving
`.gitignore` and `flake.nix` pointing at the old `blake3` path. The Nix
build relies on that path entirely: `disableGitClone` comments out the
git calls and `linkBlake3Src` symlinks the pinned source in its place,
so a stale path breaks `nix build`.

Move the clone under `.lake` instead of the package root. It is already
untracked there, so the `.gitignore` entry can go away — which also
fixes a latent trap, since git enables `core.ignoreCase` on
case-insensitive filesystems and a root-level `/blake3` pattern then
also matches the `Blake3` source directory, silently ignoring new files
added under it. `lake clean` only clears `.lake/build`, so the clone
survives a clean.

Since lean4-nix installs `.lake` wholesale, `blake3C` no longer needs to
copy the source to `$out` by hand; that copy only existed because the
install rsync filters the package root through `.gitignore`.
`linkBlake3Src` gains `-fn` so it replaces, rather than dereferences,
the symlink that `blake3Test` rsyncs in from the `blake3C` artifacts.
@samuelburnham
samuelburnham enabled auto-merge (squash) August 22, 2026 17:36
@samuelburnham
samuelburnham merged commit 6b06565 into main Aug 22, 2026
3 checks passed
@samuelburnham
samuelburnham deleted the fix/case-insensitive-source-directory branch August 22, 2026 18:03
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.

3 participants