VERSION declared twice
A year ago this commit added var VERSION string
in pkg/config/version/checknewer.go
.
When I run make generate
, the file pkg/config/version/version.go
is created. It does also include a line declaring the VERSION variable: var VERSION = "0.21.11-77-g14cf64b"
.
A subsequent go build -buildmode=c-archive -o lib/libgoshim.a gui/backend.go
fails with the following error:
# 0xacab.org/leap/bitmask-vpn/pkg/config/version
pkg/config/version/version.go:6:5: VERSION redeclared in this block
pkg/config/version/checknewer.go:14:5: other declaration of VERSION
Are you sure that the VERSION variable is included correctly in checknewer.go
? Or are the steps I am using to build the app wrong? Please excuse, if I am missing something obvious here, but I have no experience with go. Thanks!
Note: There is a git based PKGBUILD in the Arch User Repository that does the same steps as shown above and which can't be build at the moment for the same problem. If we find a solution here, I'll forward that to the AUR repository maintainer.