"Dr. Tobias Quathamer" <[email protected]> writes:

> require (
>    golang.org/x/tools v0.40.1-0.20260108161641-ca281cf95054
>    golang.org/x/tools/go/expect v0.1.1-deprecated
> )
>
> With the special version "v0.1.1-deprecated", go is still able to fetch
> the last release of the x-tools expect module before it was moved to the
> "internal" directory.
>
> How can we provide such deprecated modules within Debian? The code is
> still available in the golang-golang-x-tools-dev package, just not
> usable by other modules.

I'm hesitant to suggest it, but if this is (which I suspect) only one
(or a couple) of small random file, I would vendor them in the
golang-x-tools-dev package (of course mentioning in debian/copyright and
debian/README.source as appropriate) so that these reverse dependencies
starts to build again.  Report upstream asking them to stop depending on
ancient stuff.  If you (or someone else) knows how to fix the code,
patching it would be better.  If the usage is in a *_test.go file, I
would disable the code instead of requiring a vendored file.

For inspiration:
https://salsa.debian.org/go-team/packages/golang-github-go-piv-piv-go/-/blob/debian/latest/debian/README.source?ref_type=heads

/Simon

Attachment: signature.asc
Description: PGP signature

Reply via email to