N2: a build reports every module or package it resolved, with no prefix or scope (issue 721)
Mesh Go modules come from the seat go-package-registry, not the forge, so no prefix or scope tells a mesh package apart. ModuleImports reports the module path of every package the build resolved but the standard library's and the module's own, and build_node_imports every npm package the bundles reach but Node's own modules. The settings import-prefix and import-scope leave both manifests and the ask. Builds: design 47 H2 H-A-539 (withdraws H-A-534's form check and H-A-535)
This commit is contained in:
@@ -12,7 +12,6 @@ import (
|
||||
|
||||
sdkstep "git.novox.be/novox/mesh-delivery/modules/mesh-delivery-sdk/buildstep"
|
||||
"git.novox.be/novox/mesh-delivery/modules/mesh-delivery-sdk/steprun"
|
||||
trunk "git.novox.be/novox/mesh-delivery/modules/mesh-delivery-sdk/trunk"
|
||||
stdio "git.novox.be/novox/mesh-sdk/go"
|
||||
)
|
||||
|
||||
@@ -116,9 +115,9 @@ func TestManifestTakesTheBuildCapacity(t *testing.T) {
|
||||
if strings.Contains(doc.Config[steprun.BuildHoursSetting].Description, "=") {
|
||||
t.Errorf("the build-hours description names a node pair")
|
||||
}
|
||||
// Design 47 H2 H-A-535: the Node build module declares import-scope, the mesh's npm scope by default.
|
||||
if scope := string(doc.Config[ImportScopeSetting].Default); scope != `"`+trunk.DefaultNpmScope+`"` {
|
||||
t.Errorf("the import-scope default = %s, want %q", scope, trunk.DefaultNpmScope)
|
||||
// Design 47 H2 H-A-539: no scope tells a mesh package apart, so the module declares no setting import-scope.
|
||||
if _, ok := doc.Config["import-scope"]; ok {
|
||||
t.Errorf("the manifest declares import-scope, which H-A-539 withdrew")
|
||||
}
|
||||
var capacity float64
|
||||
_ = json.Unmarshal(doc.Config[sdkstep.CapacitySetting].Default, &capacity)
|
||||
|
||||
Reference in New Issue
Block a user