Skip to content

0.7.0

Compare
Choose a tag to compare
@svengreb svengreb released this 21 Nov 22:54
· 6 commits to main since this release
v0.7.0

Release Date: 2021-11-21 Project Board Milestone

Show all commits

Improvements

Update to tmpl-go template repository version 0.9.0#104#105 (⊶ 9caf10f)

↠ Updated to tmpl-go version 0.9.0 which…

  1. updated to golangci-lint version 1.43.0 — new linters are introduced and configurations of already supported ones are improved or added.
  2. updated the Go module to Go 1.17.
  3. optimized the GitHub action workflows for Go and Node — the ci workflow has been optimized by splitting it into new ci-go and ci-node workflows.
  4. updated to the tmpl template repository version 0.10.0.

See the full tmpl-go version 0.9.0 changelog for all details.

Upgrade default GoModule task versions#106#107 (⊶ cabd635)

↠ Most of the GoModule tasks used an outdated default Go module version so the following tasks have been updated and adjusted to the currently latest versions:

  1. mvdan.cc/gofumpt — The github.com/svengreb/wand/pkg/task/gofumpt task used version v0.1.1 and has been updated to version 0.2.0 by…
    1.1 removing the -r flag which has been removed in favor of gofmt -r.
    1.2 removing the -s flag (WithSimplify option) as it is always enabled.
  2. golang.org/x/tools/cmd/goimports — The github.com/svengreb/wand/pkg/task/goimports task used version v0.1.0 and has been updated to version 0.1.7.
  3. github.com/golangci/golangci-lint/cmd/golangci-lint — The github.com/svengreb/wand/pkg/task/golangcilint task used version v1.39.0 and has been updated to version 1.43.0. The configuration has already been updated in #104.
Update to tmpl-go template repository version 0.10.0#110#111 (⊶ ee52f08)

↠ Updated to tmpl-go version 0.10.0 which…

  1. disables golangci-lint's default excluded issues — this prevents that explicitly enabled rules are not ignored due to the default set of excluded issues.
  2. caches Go dependencies and build outputs in ci-go workflow — this improves the workflow execution time.

See the full tmpl-go version 0.10.0 changelog for all details.

Bug Fixes

Insufficient repository fetch-depth for action workflows#108#109 (⊶ c39b2c4)

↠ The GitHub action workflows uses the actions/checkout action to fetch the repository that triggered the workflow. However, by default only the history of the latest commit was fetched which resulted in errors when wand tried to extract repository metadata information like the amount of commits ahead of the latest commit. As an example this can be seen when running the bootstrap command in the test job of the ci-go workflow which failed with an object not found error because the history only contained a single commit.

To fix this problem action/checkout provides an option to fetch all history for all tags and branches which is now used to prevent errors like this in the pipeline.

Tasks

Go module dependency & GitHub action version updates#97, #98, #102, #103

↠ Bumped outdated Go module dependencies and GitHub actions to their latest versions:

The full changelog is available in the repository

Copyright © 2019-present Sven Greb