version

package
v3.46.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersion

func GetVersion() string

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 added in v3.43.0

func GetVersionWithBuildInfo() string

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL