Repository navigation
Conversation
When it generates the Bash/Zsh completion files, Flutter includes the current date and time in a comment, which means the build output differs every time it's run. Make the build deterministic by deleting that line from the generated script. Fixes NixOS#575354
3 of 15 tasks
Member
Author
|
The build process for Flutter includes creating a Git repository, then running the `make_deterministic_repo` function from Nixpkgs' `fetchgit` on that repository. However, the repository doesn't directly impact anything in the final output, so there's no benefit to calling the function. Further, `make_deterministic_repo` doesn't work when using versions of Git compiled with breaking changes (that is, the changes that are currently opt-in, but will be required by Git v3). Avoid the unnecessary work and work around `make_deterministic_repo` being broken with some builds of Git by removing this step. Fixes NixOS#575366
me-and
force-pushed
the
flutter-determinism
branch
from
October 17, 2026 23:11
1cd3ab4 to
feb24aa
Compare
This was
linked to
issues
Oct 18, 2026
Member
Author
|
And with overlays added to confirm the fix with Git built with
|
Member
Author
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.
Two changes here:
fetchgit'smake_deterministic_repo, since that doesn't actually achieve anything useful, and does mean thatflutterwill fail to build when Nixpkgs moves to using Git v3. (Build failure: flutter.passthru.unwrapped if Git haswithBreakingChanges = true#575366)Things done
./result/bin/.nixpkgs-reviewnpbon this PR.passthru.tests.