gopasspw / git-credential-gopass

Gopass git-credentials helper
MIT License
49 stars 9 forks source link

Building 1.14.3 fails with assertion error #50

Closed shibumi closed 1 year ago

shibumi commented 2 years ago

Hi,

I am trying to build the official Arch Linux package for git-credential-gopass and I am running into an assertion error:

go: downloading github.com/gopasspw/gopass v1.14.3
go: downloading github.com/urfave/cli/v2 v2.10.3
go: downloading github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.2
go: downloading github.com/russross/blackfriday/v2 v2.1.0
go: downloading github.com/blang/semver/v4 v4.0.0
go: downloading github.com/fatih/color v1.13.0
go: downloading golang.org/x/term v0.0.0-20220526004731-065cf7ba2467
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/dustin/go-humanize v1.0.0
go: downloading github.com/caspr-io/yamlpath v0.0.0-20200722075116-502e8d113a9b
go: downloading golang.org/x/exp v0.0.0-20220613132600-b0d781184e0d
go: downloading golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d
go: downloading filippo.io/age v1.0.0
go: downloading github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354
go: downloading github.com/twpayne/go-pinentry v0.2.0
go: downloading github.com/hashicorp/go-multierror v1.1.1
go: downloading bitbucket.org/creachadair/stringset v0.0.10
go: downloading github.com/hashicorp/golang-lru v0.5.4
go: downloading github.com/ProtonMail/go-crypto v0.0.0-20220623141421-5afb4c282135
go: downloading github.com/google/go-github v17.0.0+incompatible
go: downloading github.com/google/go-cmp v0.5.8
go: downloading github.com/mattn/go-colorable v0.1.12
go: downloading github.com/mattn/go-isatty v0.0.14
go: downloading github.com/hashicorp/errwrap v1.1.0
go: downloading golang.org/x/sys v0.0.0-20220622161953-175b2fd9d664
go: downloading github.com/google/go-querystring v1.1.0
go: downloading go.uber.org/multierr v1.8.0
go: downloading github.com/rs/zerolog v1.27.0
go: downloading go.uber.org/atomic v1.9.0
go: downloading filippo.io/edwards25519 v1.0.0
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
>> BUILD, version = 1.12.0/5449acee, output = git-credential-gopass# github.com/gopasspw/gopass/internal/backend
/build/go/pkg/mod/github.com/gopasspw/gopass@v1.14.3/internal/backend/registry.go:85:45: internal compiler error: assertion failed

Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new
make: *** [Makefile:70: git-credential-gopass] Error 2

How do I solve this?

dominikschulz commented 2 years ago

Upgrade to Go 1.18.4. It's bug in Go 1.18.3.

shibumi commented 2 years ago

Arch Linux is already on Go 1.18.4

dominikschulz commented 2 years ago

Sorry, that was a typo.

I meant: Upgrade to Go 1.18.5, It's a bug in Go 1.18.4. Or downgrade to Go 1.18.3 which is not affected, either.