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

Binary in PATH on windows does not have file extension #1754

Closed
g-harel opened this issue Mar 15, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@g-harel
Copy link
Contributor

commented Mar 15, 2018

What version of dep are you using (dep version)?

v0.4.1

What dep command did you run?

From the readme: $ curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh

What did you expect to see?

dep added to path and runnable through go's exec.Command("dep").

What did you see instead?

The exec command fails because the executable is not found.

I believe this is caused by the install script writing the file in the same way on any os (without .exe on windows).

The exec package uses the PATHEXT environment variable on windows and only looks for executables with those file extensions. Since dep is installed in the path without an extension, is it not found by exec even if it is runnable from the command line.

@g-harel

This comment has been minimized.

Copy link
Contributor Author

commented Mar 15, 2018

I'd like to work on this issue if it's relevant.

g-harel added a commit to g-harel/dep that referenced this issue Mar 15, 2018

g-harel added a commit to g-harel/dep that referenced this issue Mar 15, 2018

ibrasho added a commit that referenced this issue Mar 17, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.