Your message dated Sat, 12 Sep 2026 17:49:39 +0000
with message-id <[email protected]>
and subject line Bug#1147142: fixed in lintian 2.141.0
has caused the Debian Bug report #1147142,
regarding lintian: Add check for Go package name matching major API version in 
import path
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1147142: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1147142
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: lintian
Version: 2.140.0
Severity: important
X-Debbugs-Cc: [email protected]


Dear Lintian Maintainers,

Go Team needs help for the Module-Aware Build with new tooling `dh-go`
transition.

Please adding a check to validate Go library (-dev) package names
against their upstream Go import paths from the root go.mod it ships.

Background
==========
In the Go ecosystem, the API version is specify within it's mport path
with a version suffix: eg: "github.com/foo/bar/v3"

When the transition to new tooling `dh-go` that enables Module-Aware
Builds, we want to have a consistent naming style to prevent confusion
for both maintainers and new tooling as the new tooling is hight depends
on filesystem directory structure to maps the modules for offline
building under Go Workspace.

The Transition Guide contains a Packaging Rules for the Package Naming
Conventions. Maintainer should appending the major API version suffix
to both source and binary package names to match with Go Import Path.

For example:

The first line of go.mod file contains: "module github.com/foo/bar/v3"
Package name should be: `golang-github-foo-bar-v3-dev` to match the
upstream import path in go.mod.

The Problem
===========
When maintainers update the version suffix into XS-Go-Import-Path
in debian/control without updating the package names:
- It creates a mismatch between the Debian package name and the Go
  import path.
- It causes structure confusion for both maintainers and `dh-go` and
  may breaks reverse dependency lookups.
- It may blocks/conflicts co-existence of different major API versions
  as build-deps in downstream packages.

Proposed Lintian Check
======================
Add a tag, eg: go-package-name-does-not-match-import-path
That checks:
- Parse the version suffix from the root go.mod file module import
  path from go.mod (or from XS-Go-Import-Path).
- If the import path contains a major API version suffix (e.g., /v3),
  verify that the source package name and the -dev binary package name
  also include the corresponding version suffix (-v3 or -v3-dev).

Note: We have wiki documented `Naming Conventions (Hyphens vs. Dots)`:
 Convert slashes (/) in Go import paths into hyphens (-) rather than
 dots (.) when naming Debian packages (e.g., /v3 becomes -v3, and
 /pkg.v3 becomes -pkg.v3). Because dots are valid characters inside
 domain names and paths, using hyphens avoids naming confusion in the
 future.

For details on the Go team migration ModuleAwareBuilds MigrationGuide:
  https://wiki.debian.org/Teams/DebianGoTeam/ModuleAwareBuilds


Best regards,
-Andrew

--- End Message ---
--- Begin Message ---
Source: lintian
Source-Version: 2.141.0
Done: Louis-Philippe Véronneau <[email protected]>

We believe that the bug you reported is fixed in the latest version of
lintian, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Louis-Philippe Véronneau <[email protected]> (supplier of updated lintian 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 12 Sep 2026 12:38:47 -0400
Source: lintian
Architecture: source
Version: 2.141.0
Distribution: unstable
Urgency: medium
Maintainer: Debian Lintian Maintainers <[email protected]>
Changed-By: Louis-Philippe Véronneau <[email protected]>
Closes: 1017064 1145776 1147142 1147187 1147483
Changes:
 lintian (2.141.0) unstable; urgency=medium
 .
   [ Louis-Philippe Véronneau ]
   * Remove deprecated XS-Python-Version and X-Python-Version fields
 .
   [ Nilesh Patra ]
   * Lintian::Screen::Python::Egg::Metadata - Do not check for `WHEEL` in
     `dist-info` (Closes: #1147187)
   * Lintian::Check::Documentation - Drop `dist-info` related files from
     `NOT_DOCUMENTATION_FILE_REGEXES` and fix condition for exclusion of these.
     Thanks to Lucas Nussbaum <[email protected]>
   * Rename Golang/ImportPath.pm -> Golang/ModulePath.pm to incorporate for
     more module path related checks
   * new tags: "go-library-package-does-not-include-version" and
     "go-source-package-does-not-include-version" (Closes: #1147142)
   * new tag: deprecated-debian-control-field (Closes: #1145776)
   * Change severity level of `no-dep5-copyright` to `warning` (Closes:
     #1147483)
   * Unknown.pm, data: Add XB- prefixes for binary stanza fields in `data/` and
     remove XB-* prefix in known binary fields checking for unknown fields
     (Closes: #1017064)
   * tags/tests/checks: Minor fixes in URLs (See: #1146466)
 .
   [ Scott Talbert ]
   * Add more GHC path exclusions to RPATH check
 .
   [ Lucas Nussbaum ]
   * Trim spelling text with builtin::trim
   * Remove unused ELF section header fields
   * Drop bignum for the ELF section Size decoding
 .
   [ Sylvestre Ledru ]
   * Precompile the provider regexes for Javascript/Embedded.pm, Php/Embedded.pm
     and Php/Pear/Embedded.pm.
   * Documentation.pm: match the file name lists as compiled regexes
   * Spelling.pm: gate the multi-word corrections on a single regex
Checksums-Sha1:
 0aa6b8a008fe111be27fd9d8be5185ff4d21af5e 3694 lintian_2.141.0.dsc
 c05d05f10626fed4eedb8397e725faf0170f2634 2079044 lintian_2.141.0.tar.xz
 3b7d95797cf3b473af90b48806bd7456dc0a831d 21231 lintian_2.141.0_amd64.buildinfo
Checksums-Sha256:
 a907ec9a63f3d67ac6f83c1f90e28242a4169e428f08c233bdc1c6eaf6066d2c 3694 
lintian_2.141.0.dsc
 c92ae6ca1e42bc9800292e0e108433c769f89c524531b9acb63603d1d4b134b5 2079044 
lintian_2.141.0.tar.xz
 4e9316668b4562dffeb1e9d89d2a8323f64ef9bde349f75e575042063d970194 21231 
lintian_2.141.0_amd64.buildinfo
Files:
 bbe1099f86ce349acb30e38f30d5ce08 3694 devel optional lintian_2.141.0.dsc
 e3b56954d0f301cda8e4607632fbde66 2079044 devel optional lintian_2.141.0.tar.xz
 581d1dfb7b1fa4eae49858d67a226340 21231 devel optional 
lintian_2.141.0_amd64.buildinfo

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

iHUEARYKAB0WIQTKp0AHB6gWsCAvw830JXpQshz6hQUCaqWK9AAKCRD0JXpQshz6
hcWUAP9LutZw8e4cVmoLknNwFW2i69W9Bb9dBB2Y2M7jANSC9AEAzOaoVFpHTywN
VgRIiUWHaz0p8oZvKWYA6sRJH+wioQc=
=G5Ev
-----END PGP SIGNATURE-----

Attachment: pgpkZvKGFBpF2.pgp
Description: PGP signature


--- End Message ---

Reply via email to