Compile packages for selected targets
This commit is contained in:
@@ -10,9 +10,13 @@ candidate path.
|
||||
|
||||
The executor runs one offline Go suite, optionally with the race detector when
|
||||
selected. When full vet is selected, it disables test-time vet for that suite
|
||||
and runs native `go vet -mod=readonly ./...` after the suite succeeds, using the
|
||||
same discovered Go tool and native environment. Test and vet failures retain
|
||||
their separate `go-test` and `go-vet` identities and underlying causes. Its
|
||||
and runs native `go vet -mod=readonly ./...` after the suite succeeds. It then
|
||||
runs `go build -mod=readonly -o <os.DevNull> ./...` in static mode for each
|
||||
selected package-compilation target, preserving target order and stopping on
|
||||
the first failure. This compiles source without producing an artifact or
|
||||
executing a target binary. Test, vet, and package-compilation failures retain
|
||||
their `go-test`, `go-vet`, and `package-compile` identities, selected target
|
||||
where applicable, and underlying causes. Its
|
||||
request carries the captured repository directory and commit, output writer,
|
||||
and internal settings. `Request.ReadCandidateTree` lets a
|
||||
selected file check request candidate contents; the Go-only path does not
|
||||
@@ -70,13 +74,14 @@ for product behavior.
|
||||
## Go command environment reuse
|
||||
|
||||
The current executor uses the [shared Go command environment](gotool.md) for
|
||||
its offline suite. The [roadmap coordination design](../roadmap/implementation.md#execution-and-ownership)
|
||||
owns the proposed test, vet, and package-compilation procedure.
|
||||
its offline suite, vet pass, and selected-target package compilation. The
|
||||
[implementation roadmap](../roadmap/implementation.md#execution-and-ownership)
|
||||
records the shared ordering across validation and later file checks.
|
||||
|
||||
Reuse `internal/gotool` for native and static environments and target handling.
|
||||
Keep toolchain and module-cache discovery in `gotool`; do not reproduce its
|
||||
environment logic in a checker. Build output names, version injection, native
|
||||
smoke checks, and artifact digests remain owned by `internal/build`.
|
||||
environment logic in a checker. Artifact output names, version injection,
|
||||
native smoke checks, and artifact digests remain owned by `internal/build`.
|
||||
|
||||
## File-check coordination
|
||||
|
||||
|
||||
Reference in New Issue
Block a user