Skip to content

fix(cli): canonicalize build --output path#5183

Merged
clason merged 1 commit intotree-sitter:masterfrom
WillLillis:lock_file_followup
Dec 30, 2025
Merged

fix(cli): canonicalize build --output path#5183
clason merged 1 commit intotree-sitter:masterfrom
WillLillis:lock_file_followup

Conversation

@WillLillis
Copy link
Member

This fixes a potential issue with the new lock file hashing mechanism, in which two different path literals pointing to the same location would hash to separate lock files, allowing a race condition.

Followup to #5174

@clason clason added the ci:backport release-0.26 Backport label label Dec 29, 2025
@clason
Copy link
Contributor

clason commented Dec 29, 2025

Nvim-treesitter uses ts b -o <lang>.so (it just sets the non-default filename and moves stuff itself in the next step).

This fixes a potential issue with the new lock file hashing mechanism,
in which two different path literals pointing to the same location would
hash to separate lock files, allowing a race condition.
@WillLillis
Copy link
Member Author

Nvim-treesitter uses ts b -o <lang>.so (it just sets the non-default filename and moves stuff itself in the next step).

Stupid late night mistake on my part, glad the crater tests caught it!

@clason clason merged commit 93d793d into tree-sitter:master Dec 30, 2025
19 checks passed
@tree-sitter-ci-bot
Copy link

Successfully created backport PR for release-0.26:

@WillLillis WillLillis deleted the lock_file_followup branch December 30, 2025 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants