🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.rc
7 messages
7 total messages Started by Santiago Vila Fri, 23 Oct 2026 12:30
Bug#1151720: distrobuilder: FTBFS: go.work:1661: replace github.com/theupdateframework/go-tuf/v0: invalid module path
#1450
Author: Santiago Vila
Date: Fri, 23 Oct 2026 12:30
40 lines
3162 bytes
Package: src:distrobuilder
Version: 3.4.0-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202610/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:distrobuilder, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
dh_auto_build: warning: package does not provide 'go.mod', please add it.
go: errors parsing go.work:
_build/go.work:1661: replace github.com/theupdateframework/go-tuf/v0: invalid module path
	cd _build && go install -trimpath -v -p 2
go: errors parsing go.work:
go.work:1661: replace github.com/theupdateframework/go-tuf/v0: invalid module path
dh_auto_build: error: cd _build && go install -trimpath -v -p 2 returned exit code 1
make: *** [debian/rules:8: binary] Error 255
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
Bug#1151720: distrobuilder: FTBFS: go.work:1661: replace github.com/theupdateframework/go-tuf/v0: invalid module path
#1475
Author: Mathias Gibbens
Date: Fri, 23 Oct 2026 15:40
42 lines
3806 bytes
--=-mW6/NzZlyXw1MKCQUehf
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

control: reassign -1 golang-github-theupdateframework-go-tuf 2.4.2+0.7.0-2
control: affects -1 src:distrobuilder

  distrobuilder has switched to module-aware builds via Build-Depending
on dh-go. The recent upload of golang-github-theupdateframework-go-tuf
made some changes to XS-Go-Import-Path and how its sources are
installed, which is now causing a build error for distrobuilder.

  distrobuilder is affected via an indirect dependency on golang-
github-theupdateframework-go-tuf (not sure exactly what one right off
hand); there's no reference to this library anywhere in its code or
go.mod file.

Mathias

--=-mW6/NzZlyXw1MKCQUehf
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE1Bp60H32xfynSJ8cKe7i1uz0QvkFAmrbfUwACgkQKe7i1uz0
Qvnz4RAAqdw36qkKzrYNd4NvCkUgC9RFAsrSBOyPqmDcRkSPsMhLRfbDOqyXY0PS
rNYTR3VoMDLes3VdR/8AHxaKoDt8dGbwwChXpm6C3AShB7lKQk235G+pJXExrtip
Wu94GYeiSa+IXkEPkcrjVMhh2eLvjpeauX3qhVCvLeDveco9Lub1IiecJHSJeUtc
7OMElzlteZvYtjpnhpvy4YMl7q0FvgWWPZ2ZWUFkqtzLs3T6F4tt9eUeqYxS6OVN
VpUCwTcWju9tJezufpzGBDtVPjRAvDGHtQ6Ww1CuGrkzDtBsHkByjC+He7lu/FJl
X9JqfKoPUlXdz0KOTzuLWeqdpVoP/eNyi4qAZ8g0Pt9O8XXR0P/Rovywxroxh1U1
atwKVXBpGlvBBD/ufRfcgs+tHQu8vg3j7m/sn+qTqUQtxGJu4WhDSEYAhMOqQ9Va
pegWx8TLBnnrioVHoZpCTE/4gHRwb13+IFCsfVkxkP+aBgxk1lXtqWXvYqSYnWrr
3OtMieK9is1W+LCyDHFT6erl6o9Cwb7vHMZRWTw7t0Q6YEXDI6Q3EAr2LOPwpqet
gpgyEXrhZnOtLY93j1s62VOO5rD6sw2PQXQUI1vT60uI2+8JA1XBOqTjBvwHehnB
LIGZ1Ndr/v9v05j6CRS7nTdTBWvMz/guoLApwkH+b0Hdm6Xm2bw=
=uKYC
-----END PGP SIGNATURE-----

--=-mW6/NzZlyXw1MKCQUehf--
Processed: Re: distrobuilder: FTBFS: go.work:1661: replace github.com/theupdateframework/go-tuf/v0: invalid module path
#1476
Author: Debian Bug Tracking System
Date: Fri, 23 Oct 2026 15:40
27 lines
3115 bytes
Processing control commands:

> reassign -1 golang-github-theupdateframework-go-tuf 2.4.2+0.7.0-2
Bug #1151720 [src:distrobuilder] distrobuilder: FTBFS: go.work:1661: replace github.com/theupdateframework/go-tuf/v0: invalid module path
Bug reassigned from package 'src:distrobuilder' to 'golang-github-theupdateframework-go-tuf'.
No longer marked as found in versions distrobuilder/3.4.0-1.
Ignoring request to alter fixed versions of bug #1151720 to the same values previously set
Bug #1151720 [golang-github-theupdateframework-go-tuf] distrobuilder: FTBFS: go.work:1661: replace github.com/theupdateframework/go-tuf/v0: invalid module path
There is no source info for the package 'golang-github-theupdateframework-go-tuf' at version '2.4.2+0.7.0-2' with architecture ''
Unable to make a source version for version '2.4.2+0.7.0-2'
Marked as found in versions 2.4.2+0.7.0-2.
> affects -1 src:distrobuilder
Bug #1151720 [golang-github-theupdateframework-go-tuf] distrobuilder: FTBFS: go.work:1661: replace github.com/theupdateframework/go-tuf/v0: invalid module path
Added indication that 1151720 affects src:distrobuilder

-- 
1151720: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1151720
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
Bug#1151720: distrobuilder: FTBFS: go.work:1661: replace github.com/theupdateframework/go-tuf/v0: invalid module path
#1483
Author: Juan M. Méndez Rey
Date: Fri, 23 Oct 2026 16:30
39 lines
3705 bytes
Hey, yes! I am on it.

Merge request: https://salsa.debian.org/go-team/packages/golang-github-theupdateframework-go-tuf/-/merge_requests/2

I was waiting on the pipelines to be green before answering.
It is still running, but in case you want to have a look later. 


I could reproduce it, and the cause is in go-tuf.

The cause: Since -2, v0 is installed at github.com/theupdateframework/go-tuf/v0 with its own go.mod, which says "module github.com/theupdateframework/go-tuf/v0".

I missed it because go-tuf builds with dh-golang, which never reads go.mod, and so do the reverse dependencies I rebuilt (sigstore, sigstore-go). From now on I check that every installed go.mod parses at its own path, and I rebuild at least one dh-go reverse dependency.

Cheers, 

Juan



El viernes, 23 de octubre de 2026 a las 18:14, Otto Kekäläinen <otto@debian.org> escribió:

> Hi!
> 
> Thanks for reporting. We did do a reverse deps build test before
> upload (https://salsa.debian.org/go-team/packages/golang-github-theupdateframework-go-tuf/-/pipelines/1196043)
> and both sigstore packages built fine. Interesting to learn that this
> distrobuilder was also dependant of it.
> 
> Juan: Can you look into it?
>
Bug#1151720: distrobuilder: FTBFS: go.work:1661: replace github.com/theupdateframework/go-tuf/v0: invalid module path
#1754
Author: Juan Manuel Méndez Rey
Date: Mon, 26 Oct 2026 00:20
15 lines
2498 bytes
The fix is still waiting for a sponsor:
https://salsa.debian.org/go-team/packages/golang-github-theupdateframework-go-tuf/-/merge_requests/2
Its pipeline is green.

The bug also breaks other dh-go builds. grype 0.119.0 (ITP
https://bugs.debian.org/1061720), which gets go-tuf through sylabs-sif and
sigstore, fails the same way in a clean sid chroot today:

    go.work:1712: replace github.com/theupdateframework/go-tuf/v0: invalid module path

With -3 from the merge request, grype builds again and its 5827 tests pass.

Could someone from the team merge and upload it?
Bug#1151720: marked as pending in golang-github-theupdateframework-go-tuf
#1757
Author: Simon Quigley
Date: Mon, 26 Oct 2026 01:00
26 lines
2859 bytes
Control: tag -1 pending

Hello,

Bug #1151720 in golang-github-theupdateframework-go-tuf reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/go-team/packages/golang-github-theupdateframework-go-tuf/-/commit/aca4c7136ae4dca8619ad45738c69822d05bbc88

------------------------------------------------------------------------
Do not install the go.mod of v0

It names the module github.com/theupdateframework/go-tuf/v0. Go rejects
/v0 as a major version suffix, and dh-go copies the name into a replace
directive in go.work, so every dh-go build with this package installed
fails.

Closes: #1151720
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1151720
Processed: Bug#1151720 marked as pending in golang-github-theupdateframework-go-tuf
#1758
Author: Debian Bug Tracking System
Date: Mon, 26 Oct 2026 01:00
12 lines
2286 bytes
Processing control commands:

> tag -1 pending
Bug #1151720 [golang-github-theupdateframework-go-tuf] distrobuilder: FTBFS: go.work:1661: replace github.com/theupdateframework/go-tuf/v0: invalid module path
Added tag(s) pending.

-- 
1151720: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1151720
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads