Skip to content

Why is go get not supported? #395

@emidoots

Description

@emidoots

Hello, first let me say I really like Task and hope to contribute to it and get more adoption of it in my OSS projects (and in my work @sourcegraph where possible.)

One aspect that confuses me a bit is that the installation docs explicitly mention it cannot be installed via go get:

Task requires Go Modules and doesn’t officially support installing via go get anymore.

From what I can tell, nothing about Task prevents go get from working and in fact go get -u github.com/go-task/task/cmd/task works perfectly fine today - so long as you are running a recent Go version with module support (which I imagine most are at this point.)

I totally understand the binary options being suggested by default, but it's weird to say it doesn't officially support go get because it makes me (and I imagine others) think that:

  • Task has some very complex build process that doesn't work with go get
  • Task has some non-idiomatic Go code
  • Task requires CGO dependencies that can't be built with go get

It seems i haven't been the first with this thought before, as well: #250 (comment)

My suggestion is to do one of the following:

  1. Declare that go get -u github.com/go-task/task/cmd/task works - because it does and this is often the preferred installation method of many Gophers.
  2. OR at least don't declare that it isn't supported, because this makes me think it doesn't work and gives me a more negative view of Task which does it a disservice. It's a really great tool and I want to see it adopted more :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: docsChanges related to documentation.good first issueIssues that are good for first-time contributors to pick up.help wantedIssues that could benefit from members of the community contributing their expertise or experience.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions