Bug#997757: kxd: FTBFS: go: go.mod file not found in current directory or any parent directory; see 'go help modules'

2021-10-25 Thread Alberto Bertogli

On Sun, Oct 24, 2021 at 01:37:43PM +0200, Lucas Nussbaum wrote:

Source: kxd
Version: 0.15-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20211023 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):

make[1]: Entering directory '/<>'
go build -o ./out/kxd ./kxd
go build --tags netgo -a -o ./out/kxc ./kxc
go build -o ./out/kxgencert ./kxgencert
go: go.mod file not found in current directory or any parent directory; see 'go 
help modules'
make[1]: *** [Makefile:17: kxc] Error 1


This is because kxd has no go.mod file (it wasn't needed before).

I've added one upstream:

Browse: 
https://blitiri.com.ar/git/r/kxd/c/e5b1abe3b5dc235b083953e8fba01a0acf53e484/
Raw patch: 
https://blitiri.com.ar/git/r/kxd/c/e5b1abe3b5dc235b083953e8fba01a0acf53e484.patch

I'll add it to the Debian package later, unless someone else gets to it 
first :)


Thanks!
Alberto



Bug#997757: kxd: FTBFS: go: go.mod file not found in current directory or any parent directory; see 'go help modules'

2021-10-24 Thread Lucas Nussbaum
Source: kxd
Version: 0.15-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20211023 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<>'
> go build -o ./out/kxd ./kxd
> go build --tags netgo -a -o ./out/kxc ./kxc
> go build -o ./out/kxgencert ./kxgencert
> go: go.mod file not found in current directory or any parent directory; see 
> 'go help modules'
> make[1]: *** [Makefile:17: kxc] Error 1


The full build log is available from:
http://qa-logs.debian.net/2021/10/23/kxd_0.15-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.