Skip to content

Same Version returned from CLI and and TASK #2175

@joeblew999

Description

@joeblew999

Description

It will make automation etc easier.

From the CLI:

go install github.com/go-task/task/v3/cmd/task@latest 
task --version
Task version: v3.42.1 (h1:HOaFbZGLOrAy2V/dLsX2rGJZVG2Qx6268KUIAIXdNE4=)

From inside a Task:

- echo 'TASK_VERSION:'          {{.TASK_VERSION}}
TASK_VERSION: v3.42.1

Its now fixed on:

https://github.com/go-task/task/tree/recursive-config-search

go install github.com/go-task/task/v3/cmd/task@recursive-config-search
task --version

3.42.1

But, I wonder if there is some sense in returning the Branch name, like:

go install github.com/go-task/task/v3/cmd/task@recursive-config-search
task --version

recursive-config-search

The reasoning here is that it will make it much easier to tell any environment what you want, and then force that. The CLI and TASK would return "recursive-config-search"

The Github Action, can then do it also. Or you just install golang, and then go install github.com/go-task/task/v3/cmd/task@recursive-config-search and off you go.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: releasingChanges related to the release process.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions