charmbracelet / lipgloss

Style definitions for nice terminal layouts 👄
MIT License
8.03k stars 228 forks source link

checksum mismatch #265

Closed pinpox closed 7 months ago

pinpox commented 7 months ago

Describe the bug I'm trying to build the example code for charmbracelet/huh. When running go run main.go I get this error from lipgloss:

❯ go get github.com/charmbracelet/lipgloss@v0.9.1
verifying github.com/charmbracelet/lipgloss@v0.9.1/go.mod: checksum mismatch
        downloaded: h1:G7mAYYxgmS0lVkHyy2hEOLQCFB0DlQFTMLWggykrydY=
        go.sum:     h1:1mPmG4cxScwUQALAAnacHaigiiHB9Pmr+v1VEawJl6I=

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'.

I have attached go.mod and go.sum in the gist

Setup Please complete the following information along with version numbers, if applicable.

To Reproduce Steps to reproduce the behavior:

  1. Save main.go, go.mod and go.sum liked above to a folder
  2. run go run main.go
  3. See error

Source Code gist

Expected behavior example runs

meowgorithm commented 7 months ago

This looks like it may be an issue with your local cache or Go proxy. I'd recommend go mod tidy — and barring that regenerating your go.sum. If that doesn't help I'd suggest rebuilding the contents of your GOPATH.

We're not able to reproduce this internally.

mikelorant commented 7 months ago

Confirmed using those files that it requires a go mod tidy.

This issue should be closed as this is clearly a tooling error and has nothing to do with Lipgloss.

pinpox commented 7 months ago

Okay something borked in my side then, sorry to bother.