Design 47 H2: H-A-762, a package path with its own Go module file is in the fetch's scope

This commit is contained in:
2026-11-25 22:38:10 +01:00
parent 555aa7dbcb
commit 9a2cd8d3c1
@@ -902,3 +902,19 @@ mesh-delivery 3b1f03ce, mesh-tools 393449e, mesh-catalog 17e1bfb6 and mesh-sdk b
delivered after a newer one. Principles 3 and 7. How it is checked: rows of the runner's carry, unfinished and start
tests: with the head holding the module at another fingerprint, the carry, the place and the start each drop the key
and say so; with the same fingerprint, each goes on.
- **H-A-762 (a package path with a Go module file of its own is in the fetch's scope, 22:38)** 25 Nov, issue 1984; on
main.530's build of mesh-delivery-builder on the build node ("the imports of mesh-delivery-builder: go list of builds:
forms/forms.go:13:2: module lookup disabled by GOPROXY=off"): H-A-633 says each path of a package artifact is listed
and built with the environment of the path's own directory, its own module file of the fetch's pins and the tree a
package of the module's own repository is built from. The Go build module's scope of the fetch takes a path's
directory only when the module's directory has no module file, or when the module's module file replaces it with a
local path, so a path with a module file of its own (the builder's `builds`) gets no module file and its listing
cannot find its requirements of its own repository. So (1) the Go build module's scope takes, beside the module's
directory and the local replaces it follows, the directory of every package path of the ask that holds a module file
of its own, and gives it its own module file as H-A-633 says; (2) the builder's module file replaces its path `builds`
with its local directory as it does `buildrun`, so its build runs under the Go build module the build nodes run
today, which (1) reaches only through a pipeline that builds the builder first (H-A-607, its dependants wait). (2) is
the builder's own requirement written whole, not a second rule. Principles 3, 5 and 7. How it is checked: a row of
the Go build module's fetch test with a module whose package path holds its own module file requiring a module of
the same repository: the listing and the build of that path pass, and the journal says "built from the fetched tree"
for the path's directory; live: main pipeline builds mesh-delivery-builder past its imports step.