mirror of
https://github.com/spf13/cobra
synced 2025-05-05 21:07:24 +00:00
This commit fixes issue #276. If $GOPATH includes multiple paths (as allowed by the spec), Cobra cannot guess the project path, so now init bails out if a relative path is given. The original behaviour is not changed, if $GOPATH only contains a single path (as in most cases). |
||
---|---|---|
.. | ||
cmd | ||
main.go |