outdated

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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

func WithSiblings(ports []Port) []Port

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 Selection

type Selection = survey.Selection

Selection chooses explicit ports or indexed metadata filters.

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.

func (*Service) Observe

func (s *Service) Observe(ctx context.Context, selection Selection) (_ Result, err error)

Observe captures local HEAD and assesses every selected port independently. Dirty checkout edits are excluded and temporary source workspaces are released.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL