Skip to content

Executes GitBash's expand, not Windows' #165

@rasa

Description

@rasa

I have go1.24.0 installed. When I tried to install go1.24.1, I got this error:

  [go1.24.1.windows-amd64.zip] ███████████████████████ [83.14/83.14 MB]  100% 9.9s

  Press "q" to quit.
  INFO    Extracting files, please wait...
expand: unknown option -- r
Try '/usr/bin/expand --help' for more information.
  ERROR   Extract file failed: reading file in zip archive: file already exists: C:\Users\ross\.vmr\temp\go\CONTRIBUTING.md.

This is because I have GitBash's bin directory before Windows' system32 directory in my path, so it's calling GitBash's expand, not Windows':

>where expand
C:\Windows\System32\expand.exe
C:\Program Files\Git\usr\bin\expand.exe

When I ran:

set "PATH=C:\Windows\System32;%PATH%"

it worked fine.

Perhaps vmr could do this for the user, if they are running a non-standard PATH as I am?

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