Skip to content
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

The --recursive switch of git leads to execCmdEx blocking on macOS(v14.3). #23286

Open
danny-su opened this issue Feb 6, 2024 · 3 comments
Open

Comments

@danny-su
Copy link

danny-su commented Feb 6, 2024

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).

@ringabout
Copy link
Member

Cannot reproduce it on the Linux. Did you check your internet connection?

@danny-su
Copy link
Author

danny-su commented Feb 6, 2024

@ringabout I haven't installed linux, the internet connection is ok, because execCmd function works well.

@xTrayambak
Copy link

I cannot reproduce this on Linux or Windows.

@danny-su danny-su changed the title The --recursive switch of git leads to execCmdEx blocking. The --recursive switch of git leads to execCmdEx blocking on macOS. Feb 7, 2024
@danny-su danny-su changed the title The --recursive switch of git leads to execCmdEx blocking on macOS. The --recursive switch of git leads to execCmdEx blocking on macOS(v14.3). Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants