diff options
author | Jakub <i+github@always.fail> | 2024-04-18 12:25:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-18 12:25:19 +0200 |
commit | d6823f477672e61017e9c1ce3b5221a2b80fc1b7 (patch) | |
tree | 500e837ba25937d4753c9823e35a4aab077304c9 /lib/system | |
parent | acd4c8a3530c42143541b7d891aa61fd0af3f8d3 (diff) | |
download | Nim-d6823f477672e61017e9c1ce3b5221a2b80fc1b7.tar.gz |
allow Nix builds by not calling git in isGitRepo for Nimble (#23515)
Because `isGitRepo()` call requires `/bin/sh` it will always fail when building Nim in a Nix build sandbox, and the check doesn't even make sense if Nix already provides Nimble source code. Since for Nimble `allowBundled` is set to `true` this effectlvely does not change behavior for normal builds, but does avoid ugly hacks when building in Nix which lacks `/bin/sh` and fails to call `git`. Reference: * https://github.com/status-im/nimbus-eth2/pull/6180#discussion_r1570237858 Signed-off-by: Jakub SokoĊowski <jakub@status.im>
Diffstat (limited to 'lib/system')
0 files changed, 0 insertions, 0 deletions