Skip to content

git resolver error on windows with space in username #648

@dsisnero

Description

@dsisnero

On my work computer my username has a space "Dominic E Sisneros" -( not by choice)

When trying to install crimson, I get an error because of this space in trying to build:

Resolving dependencies
Fetching https://github.com/naqvis/crystar.git
Fetching https://github.com/devnote-dev/cling.git
Fetching https://github.com/mamantoha/crest.git
Fetching https://github.com/mamantoha/http-client-digest_auth.git
Fetching https://github.com/mamantoha/http_proxy.git
Installing cling (3.0.0 at b833b59)
Installing http-client-digest_auth (0.6.0)
Installing http_proxy (0.12.0)
Installing crest (1.4.1)
Installing crystar (0.4.0)
Failed git --work-tree=C:\windows_home\src\crystal_repos\crimson\lib\crystar checkout refs/tags/v0.4.0 -- ..
basename: extra operand ‘Sisneros/AppData/Local/shards/cache/github.com/naqvis/crystar.git/./hooks/post-checkout’
Try 'basename --help' for more information.
C:/Users/Dominic E Sisneros/AppData/Local/shards/cache/github.com/naqvis/crystar.git/./hooks/post-checkout: line 17: C:/Users: Is a directory
Hook C:/Users failed with error code 126

Same error with shards install:

C:\windows_home\src\crystal_repos\crimson>shards install
Resolving dependencies
Fetching https://github.com/devnote-dev/cling.git
Fetching https://github.com/mamantoha/crest.git
Fetching https://github.com/naqvis/crystar.git
Fetching https://github.com/mamantoha/http-client-digest_auth.git
Fetching https://github.com/mamantoha/http_proxy.git
Using cling (3.0.0 at b833b59)
Using http-client-digest_auth (0.6.0)
Using http_proxy (0.12.0)
Using crest (1.4.1)
Installing crystar (0.4.0)
Failed git --work-tree=C:\windows_home\src\crystal_repos\crimson\lib\crystar checkout refs/tags/v0.4.0 -- ..
basename: extra operand ‘Sisneros/AppData/Local/shards/cache/github.com/naqvis/crystar.git/./hooks/post-checkout’
Try 'basename --help' for more information.
C:/Users/Dominic E Sisneros/AppData/Local/shards/cache/github.com/naqvis/crystar.git/./hooks/post-checkout: line 17: C:/Users: Is a directory
Hook C:/Users failed with error code 126

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