-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git-branchless: fix build #339023
git-branchless: fix build #339023
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep any reformatting as its own commit
f34835a
to
fabdcde
Compare
@eclairevoyant Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are there tests that are not _pty
or _interactive
in there? These shouldn't fail.
pkgs/applications/version-management/git-branchless/default.nix
Outdated
Show resolved
Hide resolved
The test output seems to be locale-specific on darwin, thus failing on non-English systems. Is there some environment variable we can pass so the tests are always run in English?
Edit: Neither setting |
@niklaskorz I don't know if this is a valuable option but we could do something like: preCheck = lib.optionals stdenv.isDarwin ''
# Need an UTF-8 locale for test_I test.
export LANG=en_US.UTF-8
''; Any thoughts on this approach? |
I did run a
Those issues don't seem to have been traced back to Git 2.46.0 yet, but "updates to Git" are mentioned in arxanas/git-branchless#1321 (comment) |
That doesn't seem to change anything, but don't worry about it. If I find out why darwin git would be locale-dependent here and still ignore the LANG env var, I will open another PR. |
Result of 1 package built:
|
d9a170a
to
ce81243
Compare
@Artturin Why was this merged, even though I (one of the maintainers) requested changes that have not been addressed? |
Sorry, my bad. I suppose I processed the top level review comment differently from a line review and did not think enough. Here's a revert of the Again, sorry for going over your head. |
Reverted - this probably merits discussion under the issue #338971 itself. |
I am trying to revive this in #342278, please check out the comments there! Thanks! |
Description of changes
Closes #338971
Added new tests to skip that fails in an isolated environment
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.