Skip to content

v2.31.5

Latest

Choose a tag to compare

@github-actions github-actions released this 15 Nov 08:50
· 1 commit to main since this release

Fixes

  • hostscli suggestions now correct the misspelled command. The rule passed the whole Error: No such command "..." line to the replacement helper, so the broken command was never found in the command line: every suggestion was the original command, repeated once per candidate. The command name is now captured and replaced, so hostscli blok example.com suggests hostscli block example.com.
  • grep_arguments_order no longer suggests an unchanged command. It moved the file argument to the end even when it was already there, so grep -r foo . was offered unchanged.
  • Corrections that change nothing are dropped for every rule. The shared replacement helper now removes suggestions that equal the original command and duplicates. A correction that returns the same command is useless and makes --repeat run the failing command forever.
  • New regression test across all rules. It runs every rule against the shared realistic corpus and fails when a rule suggests the original command or an empty command, so this class of bug cannot come back silently.

Verification

  • Full test suite, gofmt, go vet, staticcheck and the rule list check pass; the new regression test covers all 251 rules against the corpus.
  • CI is green on Linux, macOS and Windows with lint and the 94% coverage gate.
  • Distribution manifests are regenerated for 2.31.5 and the AUR package is published as 2.31.5-1.

Upgrade

Homebrew, Scoop and AUR update through their package managers; go install github.com/leafevans/go-fuck/v2/cmd/go-fuck@latest picks up 2.31.5.

Changelog

Full Changelog: v2.31.4...v2.31.5