Skip to content

Conversation

@wentasah
Copy link
Contributor

@wentasah wentasah commented Jul 30, 2025

The failure manifests as:

minimal/do: line 358: cd: null directory

(see https://hydra.nixos.org/build/303454733/nixlog/1)

In bash 5.3, command cd '' fails, while in the previous bash version it succeeds and no directory is changed. In the fix, we replace empty $dodir with ..

Context:

When at it, this also updates deprecated substituteInPlace arguments.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

wentasah added 2 commits July 30, 2025 09:11
Previously used --replace is deprecated.
The failure manifests as:

    minimal/do: line 358: cd: null directory

In bash 5.3, command "cd ''" fails, while in the previous bash version
it succeeds and no directory is changed. In the fix, we replace empty
"$dodir" with ".".

Context:
- apenwarr/redo#47
- https://cgit.git.savannah.gnu.org/cgit/bash.git/tree/CHANGES?h=bash-5.3#n119.
- https://lists.gnu.org/archive/html/bug-bash/2025-07/msg00152.html
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Jul 31, 2025
@nix-owners nix-owners bot requested a review from ck3d July 31, 2025 05:30
@wentasah wentasah closed this Jul 31, 2025
@wentasah wentasah reopened this Jul 31, 2025
@wentasah
Copy link
Contributor Author

Closed/reopened in an attempt to get rid of HttpError: API rate limit exceeded in some CI checks.

@Aleksanaa Aleksanaa merged commit 9d54bb7 into NixOS:master Aug 1, 2025
57 of 65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants