The running pre-G indexer publishes a repository's packages only when every package directory it published last is
still in the tree; G moved contracts/go and sdk to modules/, so mesh-delivery's packages, G's renamed paths among them,
are never published and nothing importing them builds (2026-11-13, indexer journal 'its packages are not published').
These are the trees of e70754ef, unchanged, without sdk/module.json (no second module). Nothing imports them; they go
once G's indexer runs and publishes without them.
Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
20 lines
584 B
Go
20 lines
584 B
Go
package buildstep
|
|
|
|
import (
|
|
"regexp"
|
|
"strings"
|
|
)
|
|
|
|
// goPosition matches a line that starts with a Go file's position, as go vet and the compiler write an error.
|
|
var goPosition = regexp.MustCompile(`^\S+\.go:\d+(:\d+)?: `)
|
|
|
|
var ansiEscape = regexp.MustCompile("\x1b\\[[0-9;]*m")
|
|
|
|
func stripANSI(s string) string { return ansiEscape.ReplaceAllString(s, "") }
|
|
|
|
// tapOk says a line is a passing test's "ok N - name", indented or not.
|
|
func tapOk(l string) bool {
|
|
rest, ok := strings.CutPrefix(strings.TrimSpace(l), "ok ")
|
|
return ok && rest != "" && rest[0] >= '0' && rest[0] <= '9'
|
|
}
|