golang-github-moby-moby-api 1.56.0-1
Package Information
| Description | Go types of the Docker Engine API (library) The Engine API is the HTTP API that the docker command-line client uses to talk to the daemon; other programs can use it to control the daemon too. This package provides the github.com/moby/moby/api Go module: the types shared by the API client and server, which represent the objects, options and responses of the API (containers, images, networks, volumes, swarm services and more), plus small helpers to demultiplex the stdout/stderr stream of a container (stdcopy) and to encode registry credentials for the X-Registry-Auth header (authconfig). This is an interim package, to be taken over by the docker.io source once it is updated to the upstream 29.x series, which contains this module. |
|---|---|
| Maintainer | Debian Go Packaging Team <team+pkg-go@tracker.debian.org> |
| Changed By | Juan Manuel Méndez Rey <juan.mendezr@proton.me> |
| Sponsor | tsimonq2@debian.org |
| Distribution | unstable |
| Architecture | all |
| VCS | git: https://salsa.debian.org/go-team/packages/golang-github-moby-moby-api.git (browse) |
| Closes | #1149066 |
| Tracker | https://tracker.debian.org/pkg/golang-github-moby-moby-api |
| Uploaded | 4 hours ago |
New Package Report
.changes
| Version | 1.56.0-1 |
|---|---|
| Changed-By | Juan Manuel Méndez Rey <juan.mendezr@proton.me> |
| Architecture | source all |
| Distribution | unstable |
| Date | Sat, 26 Sep 2026 03:05:33 +0200 |
| Source | golang-github-moby-moby-api |
Changelog
golang-github-moby-moby-api (1.56.0-1) unstable; urgency=medium . * Initial release (Closes: #1149066)
.dsc
| Section | golang |
|---|---|
| Priority | optional |
| Component | main |
| Package-List | golang-github-moby-moby-api-dev deb golang optional arch=all |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: moby (api module)
Upstream-Contact: https://github.com/moby/moby/issues
Source: https://github.com/moby/moby/tree/api/v1.56.0/api
Comment: The orig tarball holds only the api/ subdirectory of the moby/moby
repository at tag api/v1.56.0 (see debian/get-orig-source.sh). No file in
it carries a copyright notice; api/LICENSE is the plain Apache-2.0 text. The
holder below is the one named by the repository's top-level LICENSE
("Copyright 2013-2018 Docker, Inc.") and NOTICE ("Copyright 2012-2017
Docker, Inc."), which are outside the api/ module. Individual contributors
are listed in the repository's top-level AUTHORS file.
.
The years are copied from those two notices as written; they are not
derived from the history. In the repository, the first commit touching
api/ is from 2014-01-29 and the last one before the tag from 2026-09-03.
.
licensecheck reports "GPL" for swagger.yaml and for 39 files in docs/:
the API examples use the container label com.example.license: "GPL" as
sample data. The files are not under the GPL; Files: * covers them.
Files: *
Copyright: 2012-2018 Docker, Inc.
License: Apache-2.0
Files: templates/*
Copyright: go-swagger maintainers
2012-2018 Docker, Inc.
License: Apache-2.0
Comment: The three templates are modified copies of go-swagger v0.33.1
templates; each names its original in its header, e.g.
https://github.com/go-swagger/go-swagger/blob/v0.33.1/generator/templates/schema.gotmpl
go-swagger is Apache-2.0 and its LICENSE names no holder; its Go sources
say "Copyright 2015 go-swagger maintainers". The template files carry no
notice, so no year is given for them. They are read only when the API
types are regenerated with go-swagger, not by the Go build.
Files: debian/*
Copyright: 2026 Juan Manuel Méndez Rey <juan.mendezr@proton.me>
License: Apache-2.0
Comment: Debian packaging is licensed under the same terms as upstream
License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
https://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian systems, the complete text of the Apache License, Version 2.0
can be found in "/usr/share/common-licenses/Apache-2.0".
DFSG Assistant LLM REVIEW 0 blocker, 1 important, 0 minor
This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.
Reviewed 1 hour ago.
Report
DFSG NEW review for golang-github-moby-moby-api version 1.56.0-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: Yes - Packaging is of good quality: Yes
- Issues: 0 blocker, 1 important, 0 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: nothing found
Licensing
debian/copyright is DEP-5 (exact 1.0 Format URL) with three Files stanzas (*, templates/*, debian/*) and one stand-alone Apache-2.0 paragraph pointing at /usr/share/common-licenses/Apache-2.0. Everything in the tree is Apache-2.0: the only licence text is the module's own root LICENSE (plain Apache-2.0, appendix left unfilled, no holder named in it), no other file carries a copyright or licence notice, and the three templates/*.gotmpl are Moby's modified copies of go-swagger v0.33.1 templates, which the later stanza correctly attributes to go-swagger maintainers as well as Docker, Inc. The holder of the rest, Docker, Inc., appears in no file of the module itself, but the copyright Comment states exactly where it comes from (the repository's top-level LICENSE/NOTICE, outside the exported api/ subdirectory) and why, which is the one judgement call and is documented. The GPL strings licensecheck reports are container-label sample data, not licence terms. No non-free terms, no file without a licence, no missing licence text, and the generated go-swagger types ship their generator input and templates. The licensing is DFSG-compliant and the copyright file describes the tree accurately.
Packaging
Good quality: debhelper compat 14 with dh-go (the package that now provides the golang addon and buildsystem), one Architecture: all / Multi-Arch: foreign dev package, correct Go layout and XS-Go-Import-Path, every runtime dependency present in the archive, pgregory.net/rapid correctly kept to Build-Depends as a test-only import, Standards-Version: 4.7.4 (current Policy 4.7.4.1), a first-upload changelog against unstable, no patches, and the unusual choices (dh-go rather than dh-golang, dpkg-build-api (= 1), the two lintian overrides, the orig-tarball repacking) each justified in comments or README.source. The one thing a sponsor would ask to be fixed is the build directory in debian/rules, which is not the default that the declared autopkgtest-pkg-go test uses (see the issue); nothing else rose above a nit.
Issues
1. [important] [packaging] debian/rules passes --builddirectory=debian/_build, which the declared autopkgtest (dh_golang_autopkgtest) does not use
-
Files:
debian/rules:4; /usr/bin/dh_golang_autopkgtest (dh-go 1.69) -
Basis: inferred from what was read, not seen directly
-
Evidence:
debian/rules:dh $@ --builddirectory=debian/_build --buildsystem=golang --with=golang. dh-go's autopkgtest runner, which is whatTestsuite: autopkgtest-pkg-goruns, replaces the configure step of the package under test with:APT_BDIR := $(shell env --unset=DH_VERBOSE perl -w \ -MDebian::Debhelper::Dh_Buildsystems \ -e 'buildsystems_init(); print load_buildsystem("golang")->get_builddir()') override_dh_auto_configure: mkdir -p "${APT_BDIR}" find "${APT_BDIR}" -type l -exec rm "{}" \; cp -a /usr/share/gocode/src "${APT_BDIR}"That perl sees no command-line options, so it returns the buildsystem's default build directory,
_build(Buildsystem::golang DEFAULT_BUILD_DIRECTORY at compat 14, since the module's constructor calls prefer_out_of_source_building / _set_builddir with no builddir). /usr/bin/dh deletes DH_INTERNAL_OPTIONS before it runs an override target (# Don't pass DH_ environment variables, since this is a fresh invocation of debian/rules and any sub-dh commands./delete($ENV{DH_INTERNAL_OPTIONS});), so the override cannot see--builddirectory=debian/_buildeither. dh's own buildsystem, however, gets builddirdebian/_buildfrom the command line, sets GOPATH to it (golang.pm _set_gopath), and runsgo list/go installfrom it (golang.pm build/get_targets). -
Problem: The installed Go sources are copied into
_build, while the rebuild looks indebian/_build:go listfinds no packages, and dh_auto_build then doeschdir("debian/_build"), which its overridden configure step never created, so the run fails (Dh_Lib print_and_doit:chdir($dir) or error(...)). The package therefore declares a test that cannot pass, which keeps it out of testing; the archive build itself is unaffected, and only a non-default build directory triggers this. -
Fix: Drop
--builddirectory=debian/_buildfromdebian/rules(at compat 14 the golang buildsystem's default is already_build, which is what dh_golang_autopkgtest computes), or state--builddirectory=_build; alternatively ship a realdebian/tests/controlinstead of relying onautopkgtest-pkg-go.
Verified
- Tree inventory: 206 files, all text (.go, .md, .yaml, .gotmpl, .sh, .toml, plus root Makefile/Dockerfile/LICENSE); no archives, compiled objects, minified JS/CSS, fonts or images, and the only licence text in the tree is the root LICENSE (202 lines, unmodified Apache-2.0, appendix still
Copyright [yyyy] [name of copyright owner]). - The pre-scan listed nothing to account for:
dfsg-author-checkscanned 206 files and found every holder named in debian/copyright (findings: [], prescan.md's author check). - The
GPLthat licensecheck reports is sample data, not a licence:com.example.license: "GPL"(containerLabelsexamples) at swagger.yaml:5838 and :8482 and in 39 files under docs/ (e.g. docs/v1.18.md:64), exactly as the copyright Comment says. - A case-insensitive whole-tree grep for
Copyright,(C),©,SPDX-License-Identifier,Licensed under,Permission is hereby granted,GNU General Public,GNU Lesser,Apache License,Mozilla Public,public domain,All rights reserved, and a second forlicence/@license/permission to/copies of the, match only LICENSE, debian/copyright and templates/server/operation.gotmpl:11 ({{ if .Copyright -}}); i.e. no file carries a notice of its own, and no separate vendored license needs its own stanza. - Each of the three templates names its origin (
The orignal template can be found at https://github.com/go-swagger/go-swagger/blob/v0.33.1/generator/templates/...), matching thetemplates/*stanza that creditsgo-swagger maintainers; the stanza's pattern reaches templates/server/operation.gotmpl too. - The 45 files starting
// Code generated by go-swagger; DO NOT EDIT.(all under types/) are the module's own API types; their inputs are in the tree (swagger.yaml, swagger-gen.yaml, templates/, and the generator call in scripts/generate-swagger-api.sh), so the preferred form for modification is present. - Dependencies exist and match the imports: apt-cache shows golang-github-docker-go-units-dev 0.5.0-1, golang-github-moby-docker-image-spec-dev 1.3.1-2, golang-github-opencontainers-go-digest-dev 1.0.0-2, golang-github-opencontainers-image-spec-dev 1.1.1-3, golang-pgregory-rapid-dev and dh-go 1.69. The first four are imported by non-test code (e.g. types/container/hostconfig.go
github.com/docker/go-units), so Depends is complete. pgregory.net/rapidis imported only by types/plugin/capability_test.go, and dh-golang's test step runsgo test, so Build-Depends is the right place for it and its absence from Depends is not a fault.Build-Depends: dh-gowith--with=golangis correct: apt-cache shows dh-go 1.69 hasConflicts: dh-golangand noProvides: dh-sequence-golang, and dh-go ships thegolangsequence addon (/usr/share/perl5/Debian/Debhelper/Sequence/golang.pm) and buildsystem; the source lintian override for missing-build-dependency-for-dh-addon golang is justified.dpkg-build-api (= 1)is the documented way to declare build-API level 1 (dpkg-build-api(7), dpkg >= 1.22.0); level 1 requires all debian/rules targets to exist, which the%:rule provides.Standards-Version: 4.7.4against the reviewing system's Policy 4.7.4.1 — current, not an issue.- At compat 14 dh_missing's default source directory is
debian/tmp, which this package does not create, so dh_missing exits 0 (read from /usr/bin/dh_missing); upstream files that dh-golang does not install (docs/, swagger.yaml, README.md) are therefore not a problem. Testsuite: autopkgtest-pkg-gois a known testsuite (lintian data/testsuite/known-testsuites) and autodep8's Go generator detectsgolang-anyin Build-Depends (/usr/share/autodep8/support/go/detect), so a debian/tests directory is not needed and the generated test'sDepends: @, @builddeps@carries the test-only rapid.- changelog:
1.56.0-1, distributionunstable, urgencymedium,Closes: #1149066, date Sat 26 Sep 2026 (a Saturday), matching the upstream module tag api/v1.56.0 (major 1, so no /vN module-path suffix is needed). - No debian/patches and an empty quilt series; the tree is upstream's api/ subtree at tag api/v1.56.0 as described in debian/README.source, and debian/get-orig-source.sh shows the repacking. debian/copyright has no
Files-Excludedand needs none, since only api/ is shipped. - I read all of debian/ in full, every root-level file, the templates, and the complete directory listings of types/ (including build/), docs/, pkg/, scripts/, validate/, releases/; the 200-name limit on glob was reached once and worked around by listing types/ separately. I did not read every one of the 206 files: the large docs/*.yaml, docs/CHANGELOG.md and swagger.yaml were searched and sampled, not read end to end.
- uscan found upstream releases with
debian/watch; a newer upstream version is available (upstream1.56.1, packaged1.56.0), which is not a fault of the package. - Every pointer of
debian/copyrightto /usr/share/common-licenses names a file that is there (Apache-2.0).
Not confirmed
- No build and no autopkgtest could be run here, so build- and test-time behaviour was not observed directly; the failure predicted in the issue about
--builddirectory=debian/_buildis a reading of dh-go's and dh's code, and an autopkgtest run (orautopkgtest --test-name=dh-golang-autopkgtest .on the source package) would show whether the rebuild indeed fails. - File permissions are not visible to the reading tools used here, so I could not check that debian/get-orig-source.sh is executable.
- Why the model asked for what a review has no use for. During this review it asked once for something outside the package and the reviewing system (another file of the sandbox, or a URL), or was given part of the review tooling's own configuration, and that was refused or withheld. A model does this when something it has read tells it to, so look in the package for text addressed to a reviewing program, and treat this report with suspicion. Refused:
read: "/review/../nonexistent" is not a file of the package or of the reviewing system.
Proposed changes
None.
Uploader's response to the LLM review
The uploader was emailed about the review 0 hours ago.