JanDeDobbeleer / homebrew-oh-my-posh

Homebrew formula for Oh my Posh
14 stars 9 forks source link

Error installing upgrade from brew #13

Closed gadams999 closed 1 year ago

gadams999 commented 1 year ago

Issue

Running brew update results in the following:

Upgrading jandedobbeleer/oh-my-posh/oh-my-posh
  14.1.0 -> 14.2.6

==> go build -o=oh-my-posh -ldflags="-s -w -X 'main.Version=14.2.6'"
Last 15 lines from /Users/gavinaws/Library/Logs/Homebrew/oh-my-posh/01.go:
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/zclconf/go-cty v1.12.1
go: downloading golang.org/x/sync v0.1.0
go: downloading github.com/agext/levenshtein v1.2.3
go: downloading github.com/apparentlymart/go-textseg/v13 v13.0.0
verifying github.com/jandedobbeleer/go-yaml@v1.9.8-1: checksum mismatch
    downloaded: h1:sr8AQhzODbMpH5vS6CxtsBuvOKl7xLrEXRvAw+Ao4kc=
    go.sum:     h1:D4WsRs3VOYGQPapKBLysUsG3TdpSQwq3a392kT/v26k=

SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/jandedobbeleer/homebrew-oh-my-posh/issues

I see a recent fork of go-yaml in use.

JanDeDobbeleer commented 1 year ago

@gadams999 true I did upgrade that one BUT it wasn't available so that error is most likely a local one (we also build before merging so that should error there as well). I'll check if I didn't somehow mess up but CI should catch that.

gadams999 commented 1 year ago

Let me check, I'll clean out my homebrew cache and attempt again!

gadams999 commented 1 year ago

Attempted cleaning hoembrew and go caches, still coming up with the same checksum mismatch.

JanDeDobbeleer commented 1 year ago

@gadams999 I tried to reproduce this just now but can't. To make sure I upgraded the version number: https://github.com/JanDeDobbeleer/oh-my-posh/pull/3485