Nim
Nim copied to clipboard
The --recursive switch of git leads to execCmdEx blocking on macOS(v14.3).
Description
The following code will block forever on macOS. The execCmd function works well, but execCmdEx doesn't.
import std/osproc
when isMainModule:
echo("Hello, World!")
discard execCmdEx("git clone --recursive https://github.com/fowlmouth/nake /Users/danny/Downloads/temp/x")
echo("OK")
Nim Version
Nim Compiler Version 2.0.2 [MacOSX: arm64] Compiled at 2023-12-15 Copyright (c) 2006-2023 by Andreas Rumpf
active boot switches: -d:release -d:nimUseLinenoise
Current Output
No response
Expected Output
No response
Possible Solution
No response
Additional Information
Due to this bug, "nimble install" doesn't work as expected on macOS(Version 14.3).
Cannot reproduce it on the Linux. Did you check your internet connection?
@ringabout I haven't installed linux, the internet connection is ok, because execCmd function works well.
I cannot reproduce this on Linux or Windows.