Skip to content

v0.12.1

Choose a tag to compare

@github-actions github-actions released this 24 Sep 07:25
· 22 commits to main since this release
Immutable release. Only release title and notes can be modified.
018ab11

v0.12.0 cannot be installed with the go command. This release fixes that and retracts v0.12.0. Its behaviour is the same as v0.12.0.

Important

Use v0.12.1 instead of v0.12.0. go install, go run and go get -tool of v0.12.0 fail:

go: github.com/mpyw/declscope/cmd/declscope@v0.12.0: create zip: testdata/src/symbolfile/★.go: malformed file path "testdata/src/symbolfile/★.go": invalid char '★'

The prebuilt binaries of v0.12.0 (mise, the release archives) work. For the changes in 0.12, see v0.12.0.

Fix

v0.12.0 v0.12.1
go install ...@latest, go run ...@latest, go get -tool ...@latest Resolves to v0.12.0 and fails Resolves to v0.12.1 and works
go.mod retract v0.12.0, so @latest skips it
mise, release archives Work Work

A test fixture had a file name that the module zip format refuses. That fixture is now written to a temporary directory by its test. A new test checks every file in the module against the module path rules, so such a name fails the tests before a release.

Migrating

You pin Change it to
go install github.com/mpyw/declscope/cmd/declscope@v0.12.0 @v0.12.1
tool github.com/mpyw/declscope/cmd/declscope at v0.12.0 in go.mod go get -tool github.com/mpyw/declscope/cmd/declscope@v0.12.1
"github:mpyw/declscope" = "0.12.0" in mise.toml Optional: "0.12.1". The binaries behave the same

Full changelog: v0.12.0...v0.12.1