0.5.0
This release comes with support for Go 1.16 features like the new install
command behavior and removes the now unnecessary pkger
task runner in favor of the new embed
package and //go:embed
directive.
Features
Task for Go toolchain install
command — #70 ⇄ #71 (⊶ c36e8f3)
↠ As of Go version 1.16 go install $pkg@$version
allows to install commands without affecting the main
module. Additionally commands like go build
and go test
no longer modify go.mod
and go.sum
files by default but report an error if a module requirement or checksum needs to be added or updated (as if the -mod=readonly
flag were used).
This can be used as alternative to the already existing gobin
runner.
To support the go install
command of the Go toolchain, a new Task
has been implemented in the new install
package that can be used through a Go toolchain Runner
.
The task is customizable through the following functions:
WithEnv(env map[string]string) install.Option
— sets the task specific environment.WithModulePath(path string) install.Option
— sets the module import path.WithModuleVersion(version *semver.Version) install.Option
— sets the module version.
Tasks
Updated to "tmpl-go" template repository version 0.7.0
— #72 ⇄ #73 (⊶ 53fd75e)
↠ Updated to "tmpl-go" version 0.7.0 which comes with updates to GitHub Actions and Node development dependencies.
Removed pkger
task in favor of Go 1.16 embed
package — #74 ⇄ #75 (⊶ 1fc1f25)
↠ In #52 a task for the github.com/markbates/pkger Go module was added, a tool for embedding static files into Go binaries.
The issue also includes the “Official Static Assets Embedding“ section which mentions that the task might be removed later on again as soon as Go 1.16 will be released as it comes with toolchain support for embedding static assets (files) through the embed
package. Also see markbates/pkger#114 for more details about the project future of pkger
.
The pkger
package has been removed and the //go:embed
directive should be used instead.
The full changelog is available in the repository
Copyright © 2019-present Sven Greb