Inspect committed module replacements
This commit is contained in:
@@ -51,6 +51,14 @@ committed blob entries whose basename is `go.work` or `go.work.sum`, including
|
||||
nested paths and symlinks. It checks candidate distribution contents regardless
|
||||
of `GOWORK`; it does not select or change the workspace used by Go commands,
|
||||
and it does not alter existing vendor behavior. Omitted or false disables it.
|
||||
When `validation.module_distribution.local_replacements` is true, it parses all
|
||||
committed `go.mod` declarations, including vendor and nested modules, and reports
|
||||
`replace` directives whose replacement has no version. These filesystem
|
||||
replacements include relative and absolute paths; versioned module replacements
|
||||
are permitted. Committed `go.mod` symlinks are resolved within the candidate,
|
||||
and unavailable selected contents or parse failures are reported as inspection
|
||||
errors. This selection is independent of `workspace_files` and Go's `GOWORK`
|
||||
setting. Omitted or false disables it.
|
||||
For example:
|
||||
|
||||
```json
|
||||
@@ -64,7 +72,8 @@ For example:
|
||||
},
|
||||
"go_format": true,
|
||||
"module_distribution": {
|
||||
"workspace_files": true
|
||||
"workspace_files": true,
|
||||
"local_replacements": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -97,6 +106,11 @@ package compilation; unformatted paths use the `go-format` identity. When
|
||||
`validation.module_distribution.workspace_files` is true, shared validation
|
||||
also reports committed go.work and go.work.sum blobs after Go formatting, using
|
||||
the workspace-files identity. Uncommitted workspace files are not inspected.
|
||||
When `validation.module_distribution.local_replacements` is true, shared
|
||||
validation parses committed `go.mod` files after workspace inspection and reports
|
||||
filesystem replacements as `local-replacements`, with path, directive line, and
|
||||
target. Versioned replacements are permitted; parse and inspection failures
|
||||
preserve their causes.
|
||||
Configured `checks` commands run afterward, once each in order, as additional
|
||||
product checks. Artifact builds selected by the separate `build` setting run
|
||||
after shared validation and product checks.
|
||||
|
||||
Reference in New Issue
Block a user