Go API Documentation

github.com/go-task/task/v3/internal/version

No package summary is available.

Package

Files: 1. Third party imports: 0. Imports from organisation: 0. Tests: 0. Benchmarks: 0.

Vars

Functions

func GetVersion

GetVersion returns the version of Task. By default, this is retrieved from the embedded version.txt file which is kept up-to-date by our release script. However, it can also be overridden at build time using: -ldflags="-X 'github.com/go-task/task/v3/internal/version.version=vX.X.X'".

func GetVersionWithBuildInfo

GetVersionWithBuildInfo is the same as [GetVersion], but it also includes the commit hash and dirty status if available. This will only work when built within inside of a Git checkout.

Uses: strings.Join.

Private functions

func getCommit

func getDirty

func init

References: debug.ReadBuildInfo, strings.TrimSpace.