rh12503 / triangula-cli

MIT License
20 stars 7 forks source link

fix go.mod module path #1

Closed bstncartwright closed 3 years ago

bstncartwright commented 3 years ago

When attempting to follow the documentation to install the CLI, the following error occurs:

❯ go get github.com/RH12503/Triangula-CLI/triangula
go get: github.com/RH12503/Triangula-CLI@none updating to
        github.com/RH12503/Triangula-CLI@v0.0.0-20210418062806-7dc6270d6db4: parsing go.mod:
        module declares its path as: Triangula-CLI
                but was required as: github.com/RH12503/Triangula-CLI

I believe this is because the go.mod had just the module name, but not the whole path. This PR should fix this issue.

Read more about this in the Go blog: https://blog.golang.org/using-go-modules

As a side note, was there a design decision in order to move the CLI part of Triangula to it's own repository? I think we might be able to hold it in the main repo under a cmd/ directory, if that is wanted.