Repository navigation
Conversation
👷 Deploy request for nx-docs pending review.Visit the deploys page to approve it
|
👷 Deploy request for nx-dev pending review.Visit the deploys page to approve it
|
Contributor
Author
|
Hi! Could a maintainer approve the CI workflows for this PR when you have a moment? Thanks. |
chmod does not change mtime or file bytes, so a mode-only change reused the cached task hash and restored outputs built for the other mode. On unix the bit is mixed into the content hash and into the ignored-index stamp; the files archive's metadata key already moves with the ctime that chmod updates, and the watcher admits file chmod events. Co-authored-by: Rahul Kashyap <itisrmk@users.noreply.github.com> Co-Authored-By: Rahul Kashayp <rahulmkashyap@gmail.com>
devin-ai-integration
Bot
force-pushed
the
fix/hash-exec-bit
branch
from
November 24, 2026 00:01
72cb251 to
ac3f055
Compare
Contributor
Author
|
Rebased onto current |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Current Behavior
A task hash ignores file modes. After
chmod +xorchmod -xon an input, Nx hits the local cache and restores outputs built for the old mode.chmodchanges neither the file's bytes nor its mtime, and the files archive and the ignored-file index both reuse a stored hash when the mtime (and, for the index, the size) still match. The run exits 0. The same thing happens with the change uncommitted and after it is committed. git records the mode.Expected Behavior
On Unix, the executable bit is part of an input's identity, as it is in git (
mode & 0o111 != 0). Changing only that bit moves the file hash, misses both stamps, and moves the task hash. A non-executable file keeps its content-only hash. Off Unix, file hashes and stamps are unchanged.Related Issue(s)
Fixes #37459