Skip to content

nimble install <package> results in git error "Too many arguments" with exit code 129 #1229

Open
@PixelSymbols

Description

@PixelSymbols

os: windows
git: 2.41.0, 2.45.2
nimble: v0.14.2
nim: 2.0.6 stable
choosenim: v0.8.4

Cannot install any existing package using nimble install
example:

D:\Documents REALLY\Programming\language\Nim\first>nimble install mummy
Downloading https://github.com/guzba/mummy using git
       Tip: 3 messages have been suppressed, use --verbose to show them.
tools.nim(62)            tryDoCmdEx

    Error:  Execution of 'git clone --config core.autocrlf=false --config core.eol=lf --recursive --depth 1 -b 0.4.2 https://github.com/guzba/mummy W:\temp files\nimble_2108\githubcom_guzbamummy' failed with an exit code 129.
        ... Details: fatal: Too many arguments.

issue is in the path where nimble downloads it. It supposed to download into temp files directory, and originally it would do it just fine, because temp files folder by default made by system.
But i changed my temp folder path in system path variables, and it contains spaces. Because of this, git thinks that space devides single path into 2 arguments.
Nimble, when using git, should/must wrap path in quotes to prevent such error from happening, either always, or when it finds spaces in path.
Hoping for fix ❤

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions