Can't compile v0.2.1: screen.Beep undefined

Compilation of aerc from ref 0.2.1 (or master or 0.2.0) fails with the following output:

$ make
go build  \
                -ldflags "-X main.Prefix=/usr/local \
                -X main.ShareDir=/usr/local/share/aerc \
                -X main.Version=0.2.1" \
                -o aerc
# git.sr.ht/~sircmpwn/aerc/lib/ui
lib/ui/ui.go:60:23: screen.Beep undefined (type tcell.Screen has no field or method Beep)
make: *** [aerc] Error 2

Commenting out the offending line fixes the error and allows aerc to build.

Assigned to
3 months ago
3 months ago

~nerosnm 3 months ago

Edited to reflect that the issue is not specific to macOS; can reproduce on Manjaro.

~sircmpwn 3 months ago

Which version of Go are you using? 1.12 or newer is required.

~nerosnm 3 months ago

I'm using go1.12.7.

~benburwell 3 months ago

What is the output of go list -m all?

~nerosnm 3 months ago

$ go list -m all
go list -m: not using modules

~nerosnm 3 months ago

Okay, so after some research, I need to compile with:

$ env GO111MODULE=on make

And then it successfully compiles.

Register here or Log in to comment, or comment via email.