nixpkgs icon indicating copy to clipboard operation
nixpkgs copied to clipboard

xcode-wrapper: allow xcodebuild to fail in version check

Open mroi opened this issue 1 week ago • 2 comments

With the current beta of Xcode 16.0, the xcode-wrapper derivation fails with error code 141. No additional output is generated. I traced this back to xcodebuild -version failing when its output is piped to head. I think this is because head closes xcodebuild’s stdout after the first line, which xcodebuild does not like.

Description of changes

Fixed by allowing xcodebuild to fail within the pipe used for version number extraction.

Things done

  • Built on platform(s)
    • [ ] x86_64-linux
    • [ ] aarch64-linux
    • [x] x86_64-darwin
    • [ ] aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • [x] sandbox = relaxed
    • [ ] sandbox = true
  • [ ] Tested, as applicable:
  • [ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • [ ] Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • [ ] (Package updates) Added a release notes entry if the change is major or breaking
    • [ ] (Module updates) Added a release notes entry if the change is significant
    • [ ] (Module addition) Added a release notes entry if adding a new NixOS module
  • [ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

mroi avatar Jun 26 '24 13:06 mroi