Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

"missing Git command" when GOPATH not set #49

Open
mitchlloyd opened this issue Sep 12, 2018 · 2 comments
Open

"missing Git command" when GOPATH not set #49

mitchlloyd opened this issue Sep 12, 2018 · 2 comments

Comments

@mitchlloyd
Copy link

mitchlloyd commented Sep 12, 2018

Using the default GOPATH (not explicitly setting it) results in an error saying that git is not in PATH (it is):

> retool do
retool: syncing
retool: downloading github.com/vektra/mockery/cmd/mockery
retool: fatal err: execution error on "go get -d github.com/vektra/mockery/cmd/mockery": go: missing Git command. See https://golang.org/s/gogetcmd
package github.com/vektra/mockery/cmd/mockery: exec: "git": executable file not found in $PATH
: failed to 'go get' tool: exit status 1

It would be nice if retool worked with the default GOPATH or at least warned if GOPATH isn't set.

> retool version
retool v1.0%
@spenczar
Copy link
Contributor

retool really isn't prepared for the brave new world of Go modules and GOPATH-less workflows. I'm not sure we can remedy this issue, since it goes quite deep into how the tool works.

It might be time to instead start thinking about how a new retool2 (re2l?) might work, centered around modules. Or, even better, how we might use Go modules to replace any need for retool at all.

@natefinch
Copy link

Here's a blog post I wrote up explaining how you can avoid needing retool (for many of the basic cases) in the modules world - https://npf.io/2019/05/retooling-retool/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants