~sircmpwn/aerc2#264: 
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.

Status
RESOLVED INVALID
Submitter
~nerosnm
Assigned to
No-one
Submitted
1 year, 2 months ago
Updated
10 months ago
Labels
bug

~nerosnm 1 year, 2 months ago

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

~sircmpwn 1 year, 2 months ago

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

~nerosnm 1 year, 2 months ago

I'm using go1.12.7.

~benburwell 1 year, 2 months ago

What is the output of go list -m all?

~nerosnm 1 year, 2 months ago

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

~nerosnm 1 year, 2 months ago

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

$ env GO111MODULE=on make

And then it successfully compiles.

~benburwell 10 months ago

This can be closed, invalid.

~labrat REPORTED INVALID 10 months ago

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