Documentation
¶
Overview ¶
Package outdated observes upstream updates for ports selected from committed local source.
Service captures HEAD, materializes a disposable workspace, selects explicit or indexed targets, and probes each port through upstream discovery. Unknown and uncertain observations and selection gaps remain visible alongside successful results. Callers supply integrations and cache locations; this package owns the scan lifetime, and changes no branch and records nothing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Concurrency = min(8, max(2, runtime.NumCPU()))
Concurrency is how many ports Observe looks up at once when the service doesn't say: each takes MacPorts processes of its own while it is evaluated, and a few requests upstream.
Functions ¶
This section is empty.
Types ¶
type Port ¶
type Port struct {
Selector string
upstream.Result
// With is the subport whose check stands for this one, which shares
// its Portfile's release (WithSiblings); empty for one checked itself.
With string
// contains filtered or unexported fields
}
Port associates a selector with its upstream observation or an unknown result.
func WithSiblings ¶
WithSiblings gives a subport whose source convention discovery doesn't take the result of a sibling it shares its Portfile's release with, checked, as dockhand edits subports that share the main version as one release: the python PortGroup turns its subports' livecheck off, so py310-cbor2 to py314-cbor2 read as problems beside py-cbor2, checked and outdated, 65 of the person's 1,079 ports (batch 30). Each names the sibling it's checked with. A subport that fetches nothing, as mysql8-server beside mysql8, moves with its sibling too, where one shares its release; its version is MacPorts' own only where none does.
type Result ¶
type Result struct {
Ports []Port
}
Result retains the independent observations for selected ports.
type Service ¶
type Service struct {
Repo *git.Repository
Ports macports.NativeEvaluator
Upstream *upstream.Service
Index portindex.Source
// PatchTools are the diff and patch a port's patches are checked with.
PatchTools patchcheck.Tools
// Workspaces hands out the tree; nil materializes one for this survey.
Workspaces *workspace.Registry
// Commit is the revision surveyed; HEAD when empty.
Commit string
// Concurrency is how many ports are looked up at once; Concurrency
// when zero.
Concurrency int
// Progress, when set, hears how many of the ports are looked up: once
// before the first, and after each, in order, never two at once.
Progress func(done, total int)
// Allow, when set, is asked before the first lookup whether the look
// may go on, given how many lookups it makes, a port's subports that
// share its Portfile counted once; its error stops the look.
Allow func(ctx context.Context, lookups int) error
}
Service observes committed ports using caller-supplied integrations and cache configuration. It reads no record of dockhand's.