dockhand

module
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2026 License: MIT

README

dockhand logo

Prepare, test, and submit changes to MacPorts ports.

Dockhand automates the routine work of contributing to macports/macports-ports. It finds upstream releases, updates Portfiles, checksums, and Go/Cargo dependency lists, builds in clean macOS environments, shapes MacPorts-compliant commits, and opens pull requests from your fork.

Every change lives on an ordinary Git branch in its own worktree, so your main ports checkout stays untouched. Pushes go only to your fork—you do not need commit access to MacPorts, and Dockhand never merges or pushes upstream.

Install

sudo port install dockhand

Requirements: macOS with MacPorts, Git 2.40+, and a GitHub account with a fork of macports/macports-ports (configured for non-interactive pushes via SSH or a credential helper).

  • Local VM builds (Apple silicon, recommended): install Tart with sudo port install tart. On Intel Macs—or without local VMs—you can build with GitHub Actions (--on github) or your local MacPorts prefix (--on local).
  • Go and Rust ports: install go2port or cargo2port via MacPorts to regenerate go.vendors and cargo.crates.
Build from source (v0.8.1) or configure shell completion

Requires Go 1.27.1 or later (dependencies are vendored):

git clone --branch v0.8.1 https://github.com/herbygillot/dockhand.git
cd dockhand
make build
mkdir -p "$HOME/.local/bin"
install -m 755 dockhand "$HOME/.local/bin/dockhand"

Ensure ~/.local/bin is on your PATH. For shell completion setup, the help of completion zsh, completion bash or completion fish says how.

Set up your checkout

In an existing macports-ports checkout (any remote names work), run:

dockhand setup

Starting fresh? Fork macports/macports-ports, clone your fork, and add upstream:

git clone https://github.com/YOUR-USERNAME/macports-ports.git
cd macports-ports
git remote add upstream https://github.com/macports/macports-ports.git
dockhand setup

setup registers the checkout and walks you through signing in to GitHub (stored in the macOS Keychain; GH_TOKEN/GITHUB_TOKEN and gh credentials also work), saving your maintainer identity (detected automatically if you already maintain ports, or configurable later in ~/.dockhand/config.toml for --mine and create), and optionally preparing a Tart macOS VM image (up to 60 GB of disk space). You can skip any step and run dockhand setup github, dockhand setup tart, or dockhand setup again later.

Update a port

Choose how much of the workflow you want Dockhand to drive. The examples below use ripgrep; substitute any port.

End to end in one command: bump

For a routine upstream release, dockhand bump takes a single port from A to Z without prompts:

dockhand bump ripgrep --plan     # preview without changing anything
dockhand bump ripgrep            # update to the latest release, check, and open a PR
dockhand bump ripgrep <version>  # target a specific release

bump creates a branch and worktree from fresh master, updates the Portfile (version, checksums, and supported dependency lists), compares the old and new upstream archives for license or build changes, commits, builds and tests the port, and opens a pull request from your fork.

It is designed to fail safe: if it encounters a major-version jump, a competing pull request, a build failure, or an archive diff that needs human judgment, it stops and holds the branch for your review rather than submitting. Inspect what stopped it with dockhand status and dockhand logs ripgrep.

Unlike MacPorts' port bump (which only refreshes checksums), dockhand bump runs a full version update and submission. Use dockhand checksums to refresh checksums alone.

Piecemeal and batch control: ship

dockhand ship runs the same pipeline as bump, but lets you preview the plan, confirm before starting, stop at an earlier stage, or work across multiple ports:

dockhand ship ripgrep --plan        # inspect the plan without making changes
dockhand ship ripgrep --to commit   # stop after updating and committing
dockhand ship ripgrep --to check    # stop after building and testing (no PR yet)
dockhand ship ripgrep               # resume and open the PR (asks once first)

Running ship again on the same port or branch (dockhand ship -b <branch>) resumes where it left off, skipping stages that already passed.

It also scales to your maintained ports (configured via maintainer in ~/.dockhand/config.toml) or any maintainer/category selection:

dockhand outdated --mine            # list newer upstream releases for your ports
dockhand ship --mine --to check     # prepare and build all eligible updates
dockhand ship --passing             # open PRs for branches whose checks passed

Step by step (manual edits and fixes)

When you want to inspect diffs, edit Portfiles by hand, or fix a broken build, run each stage directly inside the branch's worktree (by default under ~/Source/macports-branches):

dockhand update ripgrep --new       # create a branch/worktree with the new release
cd "$(dockhand path -p ripgrep)"    # enter the worktree
dockhand diff                       # inspect Portfile and upstream changes
dockhand edit ripgrep               # open the Portfile in your editor
dockhand check                      # build and test working files
dockhand tidy                       # shape commits for MacPorts review
dockhand submit --plan              # preview the push, build evidence, and PR body
dockhand submit                     # push to your fork and open/update the PR

check builds tracked working files (including uncommitted edits), so you can iterate before committing. If a check fails or a reviewer asks for changes, inspect dockhand status and dockhand logs ripgrep, edit, re-check (dockhand check --baseline checks whether master fails the same way), and run dockhand submit again to update the PR.

Where builds run

Checks run lint, fetch, checksum, install from source, and declared tests (test failures are advisory by default, matching MacPorts CI; pass --tests required to fail on them). Passing builds are reused automatically when inputs haven't changed.

Environment Flag / Setup How it works
Tart (default on Apple silicon) dockhand setup tart [release] Builds in disposable macOS VMs. The default minmax profile covers each port's oldest and newest available images; use --on <release> or --build macports-ci for specific releases. See Tart provider.
GitHub Actions --on github Runs MacPorts' CI workflow in your fork via a temporary branch (cleaned up automatically). Enable Actions in your fork first. See GitHub provider.
Local prefix --on local Builds in your local MacPorts prefix (/opt/local, or --on local:<prefix>) and restores active ports afterward. See local provider.
Custom command Configured profile Runs a script you define, such as building on another Mac over SSH. See command provider.

Stay on top of your ports

  • dockhand console — live terminal dashboard of your branches, PR reviews, CI status, and MacPorts' 72-hour maintainer timeout, with single-key shortcuts for logs (l), check (c), tidy (t), and submit (s).
  • dockhand serve --install — optional macOS login agent that processes queued checks, tracks open PRs, checks your maintained ports daily for new releases, and sends macOS notifications. Automatic preparation and submission are opt-in via serve.ship_to in ~/.dockhand/config.toml.

Other common tasks

Task Command
Start a manual Portfile fix dockhand edit <port> --new
Draft a new port (GitHub, PyPI, crates.io, Go) dockhand create <source> --new --category <cat>
Check dependents and library rebuilds dockhand impact, or dockhand update <port> --revbump-dependents --plan
Compare old and new upstream archives dockhand diff --source
Review someone else's PR (optionally build in Tart) dockhand review <pr> / dockhand review <pr> --check
Bring an existing Git branch into Dockhand dockhand adopt (from that branch's worktree)
Refresh a branch against master or undo a tidy/rebase dockhand rebase / dockhand undo
Open a shell in a kept Tart check VM dockhand check --keep, then dockhand shell <check-id>
Clean up merged branches and worktrees dockhand clean

What Dockhand handles best

Dockhand is built for everyday MacPorts maintenance: routine version updates from GitHub releases and GitLab tags—especially Go (go.vendors), Rust (cargo.crates), and C/C++ (CMake, Meson, autotools) ports—along with batch maintenance, library revbumps, and drafting new ports.

For ports with custom version calculations, shared multi-subport Portfiles, or upstreams outside GitHub and GitLab, Dockhand either produces a conservative plan or refuses clearly and tells you what to finish by hand. See the release notes for each version's changes and known issues.

Documentation and help

Dockhand's workflow guide is built into the binary, so it always matches the version you installed:

dockhand --help           # command overview
dockhand <cmd> --help     # flags and options for any command
dockhand usage            # first-run guide
dockhand usage <topic>    # one workflow, such as checks, recovery, or batches
dockhand explain <code>   # explain any finding, check result, or branch state

The repository's copy of the guide, docs/usage/, follows the development branch and may describe features newer than your release.

For MacPorts conventions, see the MacPorts contribution workflow and commit-message guidelines.

Contributing and license

Report bugs or suggest improvements on GitHub Issues (include dockhand --version or -V, the command you ran, and the relevant error or log). To work on Dockhand itself, build with make build and run tests with make test.

Licensed under the MIT License.

Directories

Path Synopsis
cmd
dockhand command
Command dockhand authors, checks, and submits changes to MacPorts ports.
Command dockhand authors, checks, and submits changes to MacPorts ports.
docs
usage
Package usage is the guide's pages, embedded, so the binary prints the text the repository keeps here (dockhand usage).
Package usage is the guide's pages, embedded, so the binary prints the text the repository keeps here (dockhand usage).
internal
archive
Package archive walks tar and zip source archives without extracting them onto the host.
Package archive walks tar and zip source archives without extracting them onto the host.
atomicfile
Package atomicfile durably replaces local files.
Package atomicfile durably replaces local files.
branchstate
Package branchstate is the one verdict on a branch's state, from what's recorded of it: whether its checks stand for its files, and, as part 4 of v0.5.0 brings each judgment here, what it's ready for, what holds it, and what moves it on, which status, serve, submit, tidy, and ship each judged apart (the direction synthesis's layer 1).
Package branchstate is the one verdict on a branch's state, from what's recorded of it: whether its checks stand for its files, and, as part 4 of v0.5.0 brings each judgment here, what it's ready for, what holds it, and what moves it on, which status, serve, submit, tidy, and ship each judged apart (the direction synthesis's layer 1).
buildenv
Package buildenv is the contract between the engine and the providers of build environments a check builds in (Design v3 §7), which live beneath it: tart, ghactions for github, and script for a person's own command.
Package buildenv is the contract between the engine and the providers of build environments a check builds in (Design v3 §7), which live beneath it: tart, ghactions for github, and script for a person's own command.
buildenv/buildcmd
Package buildcmd is the command provider (Design v3 §7): a person's own build script.
Package buildcmd is the command provider (Design v3 §7): a person's own build script.
buildenv/ghactions
Package actions is the github provider (Design v3 §7): it builds a revision with MacPorts' own workflow, in your fork.
Package actions is the github provider (Design v3 §7): it builds a revision with MacPorts' own workflow, in your fork.
buildenv/guest
Package guest is the program dockhand's builds run where they build (Design v3 §7), guest.tcl, and the following of what it writes: its input and results, and the Follower that records each target's result as the program finishes it, so a program lost midway keeps what it finished (decision 44).
Package guest is the program dockhand's builds run where they build (Design v3 §7), guest.tcl, and the following of what it writes: its input and results, and the Follower that records each target's result as the program finishes it, so a program lost midway keeps what it finished (decision 44).
buildenv/guest/guesttest
Package guesttest is what tests of the guest program share, the guest package's and the local provider's: stand-ins for MacPorts' port and Xcode's otool, as shell scripts.
Package guesttest is what tests of the guest program share, the guest package's and the local provider's: stand-ins for MacPorts' port and Xcode's otool, as shell scripts.
buildenv/local
Package local is the local provider (Design v3 §7): it builds a check's targets in a MacPorts prefix on this Mac, /opt/local or one of the person's own, with the guest program Tart's clones run (package guest), under the prefix's port-tclsh and in MacPorts CI's order.
Package local is the local provider (Design v3 §7): it builds a check's targets in a MacPorts prefix on this Mac, /opt/local or one of the person's own, with the guest program Tart's clones run (package guest), under the prefix's port-tclsh and in MacPorts CI's order.
buildenv/staging
Package staging prepares indexed source archives for the providers of build environments that carry a check's files into a guest, as the Tart provider does.
Package staging prepares indexed source archives for the providers of build environments that carry a check's files into a guest, as the Tart provider does.
buildenv/starter
Package starter is the process a Local or a Script build is started through, and the stop that sees it end (the lifecycle design's "Local and Script: which processes, and when they are gone").
Package starter is the process a Local or a Script build is started through, and the stop that sees it end (the lifecycle design's "Local and Script: which processes, and when they are gone").
buildenv/tart
Package tart is the Tart provider (Design v3 §7): it builds a check's targets in a fresh clone of one of dockhand's prepared images, one guest for each release and attempt, in MacPorts CI's order (decisions 11 and 22).
Package tart is the Tart provider (Design v3 §7): it builds a check's targets in a fresh clone of one of dockhand's prepared images, one guest for each release and attempt, in MacPorts CI's order (decisions 11 and 22).
buildinfo
Package buildinfo describes the running dockhand build from the information the Go toolchain embeds: the module version when built from a tagged module, otherwise the VCS revision, marked when the tree was modified.
Package buildinfo describes the running dockhand build from the information the Go toolchain embeds: the module version when built from a tagged module, otherwise the VCS revision, marked when the tree was modified.
buildlog
Package buildlog reads a build's log for what most likely made it fail: the line a person would look for first.
Package buildlog reads a build's log for what most likely made it fail: the line a person would look for first.
checkplan
Package checkplan decides what a check builds, where, and in what order, from what each environment's evaluation says of the ports it could build (Design v3 §3).
Package checkplan decides what a check builds, where, and in what order, from what each environment's evaluation says of the ports it could build (Design v3 §3).
checks
Package checks is the check-execution service: a check's admission, its slots and the lease its driver holds, its driving, the following of it, its cancellation, and the recovery of a run whose driver is gone, one type where they were spread over the engine's runner, queue, slots, and a batch's drive (Codex's review of 275125ff, finding 4's second step).
Package checks is the check-execution service: a check's admission, its slots and the lease its driver holds, its driving, the following of it, its cancellation, and the recovery of a run whose driver is gone, one type where they were spread over the engine's runner, queue, slots, and a batch's drive (Codex's review of 275125ff, finding 4's second step).
command
Package command is dockhand's command line, rebuilt for Design v3 (docs/design-v3.md).
Package command is dockhand's command line, rebuilt for Design v3 (docs/design-v3.md).
command/backup
Package backup is dockhand backup: a consistent copy of the database, to a file or a directory, made without opening the engine (#92, docs/designs/db-backup.md).
Package backup is dockhand backup: a consistent copy of the database, to a file or a directory, made without opening the engine (#92, docs/designs/db-backup.md).
command/branchflags
Package branchflags finds the branch a command works in: -b, -p, and --pr (BranchFlags), an authoring command's -b or --new (BranchChoice), the question where several branches change a port, and a run command's named or latest check.
Package branchflags finds the branch a command works in: -b, -p, and --pr (BranchFlags), an authoring command's -b or --new (BranchChoice), the question where several branches change a port, and a run command's named or latest check.
command/checkrun
Package checkrun sees a queued check through for the command line: run here where no serve leads, or followed where one does, its progress and its results reported as they come, and what a failure's log says.
Package checkrun sees a queued check through for the command line: run here where no serve leads, or followed where one does, its progress and its results reported as they come, and what a failure's log says.
command/cmdtest
Package cmdtest is the command line's tests' shared harness: a world of a MacPorts checkout, an upstream, and a fork (NewWorld), each test's stand-ins for compose and the host (Stands, Hosted), command lines run through them (Dockhand, RunFor, JSONOf), and the fakes a test gives the engine.
Package cmdtest is the command line's tests' shared harness: a world of a MacPorts checkout, an upstream, and a fork (NewWorld), each test's stand-ins for compose and the host (Stands, Hosted), command lines run through them (Dockhand, RunFor, JSONOf), and the fakes a test gives the engine.
command/console
Package console is dockhand console: the branches in a table the terminal's size, kept current as serve works, a pane of the journal's events or a branch's detail under it, and keys that run logs, check, tidy, and submit on the row selected.
Package console is dockhand console: the branches in a table the terminal's size, kept current as serve works, a pane of the journal's events or a branch's detail under it, and keys that run logs, check, tidy, and submit on the row selected.
command/decide
Package decide is dockhand decide: a person's decision on one concern that holds a branch, with their reason (the person's voice, Then's item 13).
Package decide is dockhand decide: a person's decision on one concern that holds a branch, with their reason (the person's voice, Then's item 13).
command/host
Package host is the Mac the command line runs on, or a test's stand-in for it: its clock, identity, notifications, launchd, the background cleanup and drain it starts, its Tart and its login's stores, and the timings serve and dockhand console keep (Timings).
Package host is the Mac the command line runs on, or a test's stand-in for it: its clock, identity, notifications, launchd, the background cleanup and drain it starts, its Tart and its login's stores, and the timings serve and dockhand console keep (Timings).
command/settings
Package settings is what every command shares: the paths and configuration a command line gives, the engine it opens with them, the places it works in, its --json mark, and the person's editor.
Package settings is what every command shares: the paths and configuration a command line gives, the engine it opens with them, the places it works in, its --json mark, and the person's editor.
command/tidyrun
Package tidyrun is tidy's stage, which tidy, ship, and submit each run: a branch's edits committed as tidy plans them, previewed as tidy previews them, applied unasked where the plan allows (AppliesUnasked), asked on a terminal otherwise, and made through history.Make.
Package tidyrun is tidy's stage, which tidy, ship, and submit each run: a branch's edits committed as tidy plans them, previewed as tidy previews them, applied unasked where the plan allows (AppliesUnasked), asked on a terminal otherwise, and made through history.Make.
command/usage
Package usage prints the guide in the binary, a page a topic, for one who has dockhand and no checkout of it (the person's "usage", 2026-10-28).
Package usage prints the guide in the binary, a page a topic, for one who has dockhand and no checkout of it (the person's "usage", 2026-10-28).
command/view
Package view is how the command line shows what the engine returns: the --json shapes, the writers of results, plans, and the queue, the attention rows and their Next lines, and the words they share.
Package view is how the command line shows what the engine returns: the --json shapes, the writers of results, plans, and the queue, the attention rows and their Next lines, and the words they share.
comparison
Package comparison collects what upstream's change means for a port: from each version's fetch plan or Git source, it reads the archives, pairs them by the port's source set, checks the port's patches against the new source, observes the ports its requirements name, and applies the assessment's rules (macports/assess), for a revision's assessment and an update's alike (Then's item 15, C8-7; the architecture thread's shape, 2026-10-27).
Package comparison collects what upstream's change means for a port: from each version's fetch plan or Git source, it reads the archives, pairs them by the port's source set, checks the port's patches against the new source, observes the ports its requirements name, and applies the assessment's rules (macports/assess), for a revision's assessment and an update's alike (Then's item 15, C8-7; the architecture thread's shape, 2026-10-27).
comparison/comparisontest
Package comparisontest has the fakes the comparison's tests and the engine's share: a planner serving its ports' archives over HTTP, and the tarballs it serves.
Package comparisontest has the fakes the comparison's tests and the engine's share: a planner serving its ports' archives over HTTP, and the tarballs it serves.
compose
Package compose assembles dockhand for a command: the engine, with its providers, its GitHub runtime, and the readers it's given, from the person's settings and configuration, in one place.
Package compose assembles dockhand for a command: the engine, with its providers, its GitHub runtime, and the readers it's given, from the person's settings and configuration, in one place.
config
Package config reads and writes dockhand's configuration file, ~/.dockhand/config.toml (decision 15; docs/design-v3.md §12).
Package config reads and writes dockhand's configuration file, ~/.dockhand/config.toml (decision 15; docs/design-v3.md §12).
coord
Package coord coordinates dockhand processes that share one database (docs/design-v3.md §11): sessions, fenced leases, one serve leader with standbys, and the event journal observers tail.
Package coord coordinates dockhand processes that share one database (docs/design-v3.md §11): sessions, fenced leases, one serve leader with standbys, and the event journal observers tail.
credential
Package credential defines secret-storage and device-authorization contracts.
Package credential defines secret-storage and device-authorization contracts.
credential/keychain
Package keychain stores credentials in the current user's macOS Keychain.
Package keychain stores credentials in the current user's macOS Keychain.
editprep
Package editprep connects immutable Git sources to Portfile editing.
Package editprep connects immutable Git sources to Portfile editing.
engine
Package engine carries out dockhand v3's operations (docs/design-v3.md): it binds a person's request to the ports checkout, Git, and the store, and does the work.
Package engine carries out dockhand v3's operations (docs/design-v3.md): it binds a person's request to the ports checkout, Git, and the store, and does the work.
evidence
Package evidence says what recorded checks establish about a tree in the environments required now (the architecture review's finding 4): each planned target's result in each environment, as a cell that says what it is; which of an earlier check's results still stand for a newer one (Counts), a blocked result only with what blocked it; and each target's verdict.
Package evidence says what recorded checks establish about a tree in the environments required now (the architecture review's finding 4): each planned target's result in each environment, as a cell that says what it is; which of an earlier check's results still stand for a newer one (Counts), a blocked result only with what blocked it; and each target's verdict.
failpoint
Package failpoint stops dockhand at a named step, as a kill there would, for the acceptance harness's kill rows (the project's plan/acceptance-harness.md, H5).
Package failpoint stops dockhand at a named step, as a kill there would, for the acceptance harness's kill rows (the project's plan/acceptance-harness.md, H5).
fetch
Package fetch performs bounded HTTP transfers using caller-owned requests and clients.
Package fetch performs bounded HTTP transfers using caller-owned requests and clients.
filedigest
Package filedigest reads a stream's size and SHA-256 digest.
Package filedigest reads a stream's size and SHA-256 digest.
filelock
Package filelock provides context-aware advisory locks for files and external resources shared by Dockhand processes.
Package filelock provides context-aware advisory locks for files and external resources shared by Dockhand processes.
forge
Package forge defines remote repository observations and publication inputs shared by forge adapters and their consumers.
Package forge defines remote repository observations and publication inputs shared by forge adapters and their consumers.
forge/forgetest
Package forgetest is GitHub as the engine's and the command line's tests stand it in: one stateful fake, its fork a local bare repository and its pull requests in memory, so each package's tests drive the same behavior rather than a fake of their own (the test plan's step 1, 2026-10-02).
Package forgetest is GitHub as the engine's and the command line's tests stand it in: one stateful fake, its fork a local bare repository and its pull requests in memory, so each package's tests drive the same behavior rather than a fake of their own (the test plan's step 1, 2026-10-02).
forge/github
Package github adapts GitHub repositories and pull requests to forge contracts.
Package github adapts GitHub repositories and pull requests to forge contracts.
forge/gitlab
Package gitlab adapts GitLab tag observations to forge contracts.
Package gitlab adapts GitLab tag observations to forge contracts.
git
Package git provides repository operations through a configurable Git executable.
Package git provides repository operations through a configurable Git executable.
github
Package github supplies the GitHub client and authentication shared by forge and verification adapters.
Package github supplies the GitHub client and authentication shared by forge and verification adapters.
history
Package history makes a change to a branch's history, a tidy, rebase, or restore, one complete transition (Design v3 §8).
Package history makes a change to a branch's history, a tidy, rebase, or restore, one complete transition (Design v3 §8).
macos
Package macos describes macOS releases and supplies developer-tool, storage, and launchd operations.
Package macos describes macOS releases and supplies developer-tool, storage, and launchd operations.
macports
Package macports defines bound ports-tree contexts and evaluated observations.
Package macports defines bound ports-tree contexts and evaluated observations.
macports/assess
Package assess decides what an upstream change means for a MacPorts port (the assessment design, C): from two versions' readings, what sourcecompare says changed between them, and the port as MacPorts evaluates it at each end, which findings ask a person's look before a submission nobody reviews, and what the assessment read and set apart.
Package assess decides what an upstream change means for a MacPorts port (the assessment design, C): from two versions' readings, what sourcecompare says changed between them, and the port as MacPorts evaluates it at each end, which findings ask a person's look before a submission nobody reviews, and what the assessment read and set apart.
macports/binaryarchive
Package binaryarchive makes built MacPorts archives installable from an archive site of MacPorts' own kind: signed both ways MacPorts verifies a site's archives, beside the public keys a MacPorts installation is told to trust for them (decision 28).
Package binaryarchive makes built MacPorts archives installable from an archive site of MacPorts' own kind: signed both ways MacPorts verifies a site's archives, beside the public keys a MacPorts installation is told to trust for them (decision 28).
macports/buildhistory
Package buildhistory reads what MacPorts' builders made of a port, as ports.macports.org keeps their build history: whether a port built on each macOS release before, which says whether a failure there is the branch's own or one the builders had too, to choose between a patch and known_fail.
Package buildhistory reads what MacPorts' builders made of a port, as ports.macports.org keeps their build history: whether a port built on each macOS release before, which says whether a failure there is the branch's own or one the builders had too, to choose between a patch and known_fail.
macports/cilog
Package cilog reads a job's log from MacPorts' CI workflow (.github/workflows/main.yml) for what it says of each port it built, by the markers the workflow writes, as macports' ci.go reads the workflow's matrix: the github provider reads its runners' logs with it, and the engine a pull request's failed jobs'.
Package cilog reads a job's log from MacPorts' CI workflow (.github/workflows/main.yml) for what it says of each port it built, by the markers the workflow writes, as macports' ci.go reads the workflow's matrix: the github provider reads its runners' logs with it, and the engine a pull request's failed jobs'.
macports/commitmsg
Package commitmsg holds the rules of a MacPorts commit message that more than one part of dockhand writes by: the "<port>: <what changed>" subject, and dockhand's attribution line.
Package commitmsg holds the rules of a MacPorts commit message that more than one part of dockhand writes by: the "<port>: <what changed>" subject, and dockhand's attribution line.
macports/commitrules
Package commitrules checks commits against what MacPorts asks of them (Design v3 §8): subjects that name the port, short and specific; bodies wrapped at 72; tickets as full URLs; no follow-up or merge commits; a revision reset to 0 when the version changes, an epoch raised when it goes lower, by MacPorts' version order the caller gives (Order), and a replaced_by that changes the version, revision, or epoch.
Package commitrules checks commits against what MacPorts asks of them (Design v3 §8): subjects that name the port, short and specific; bodies wrapped at 72; tickets as full URLs; no follow-up or merge commits; a revision reset to 0 when the version changes, an epoch raised when it goes lower, by MacPorts' version order the caller gives (Order), and a replaced_by that changes the version, revision, or epoch.
macports/depblock
Package depblock handles generated MacPorts Go and Rust dependency blocks.
Package depblock handles generated MacPorts Go and Rust dependency blocks.
macports/distfetch
Package distfetch fetches a port's source archives as the direct downloader dockhand uses in place of MacPorts' fetch: it maps evaluated distfiles to their single direct locations, refuses what the downloader cannot fetch as MacPorts would, downloads with bounded size and time while hashing, and rewrites checksum declarations from what it fetched.
Package distfetch fetches a port's source archives as the direct downloader dockhand uses in place of MacPorts' fetch: it maps evaluated distfiles to their single direct locations, refuses what the downloader cannot fetch as MacPorts would, downloads with bounded size and time while hashing, and rewrites checksum declarations from what it fetched.
macports/distfiles
Package distfiles associates native fetch observations with exact checksum declarations.
Package distfiles associates native fetch observations with exact checksum declarations.
macports/distributable
Package distributable judges whether MacPorts' builders may keep a binary archive of a port, by MacPorts' own checker: macports-infrastructure's jobs/distributable_lib.tcl, kept verbatim and pinned (Pin), with infoForPort answered from what dockhand reads, so its answer is the buildbot's (decisions.md, "Distributability is MacPorts' own judge").
Package distributable judges whether MacPorts' builders may keep a binary archive of a port, by MacPorts' own checker: macports-infrastructure's jobs/distributable_lib.tcl, kept verbatim and pinned (Pin), with infoForPort answered from what dockhand reads, so its answer is the buildbot's (decisions.md, "Distributability is MacPorts' own judge").
macports/eval
Package eval implements MacPorts evaluation through its native Tcl runtime.
Package eval implements MacPorts evaluation through its native Tcl runtime.
macports/fetchguard
Package fetchguard reads a port's pre-fetch hooks and decides whether the fetch is standard, guarded by a rejection that changes nothing fetched, or custom.
Package fetchguard reads a port's pre-fetch hooks and decides whether the fetch is standard, guarded by a rejection that changes nothing fetched, or custom.
macports/fidelity
Package fidelity compares MacPorts evaluations of a Portfile before and after an edit and reports whether only the intended metadata changed.
Package fidelity compares MacPorts evaluations of a Portfile before and after an edit and reports whether only the intended metadata changed.
macports/installation
Package installation observes and installs MacPorts on an explicit command target.
Package installation observes and installs MacPorts on an explicit command target.
macports/patchcheck
Package patchcheck tells whether a port's patch files still apply to a source archive before any build is attempted.
Package patchcheck tells whether a port's patch files still apply to a source archive before any build is attempted.
macports/portcreate
Package portcreate writes a new port's first Portfile (Design v3 §6.4) from what can be observed of an upstream project: its forge, its latest release, and the build files at that release.
Package portcreate writes a new port's first Portfile (Design v3 §6.4) from what can be observed of an upstream project: its forge, its latest release, and the build files at that release.
macports/portedit
Package portedit prepares evaluated Portfile edits in disposable source workspaces.
Package portedit prepares evaluated Portfile edits in disposable source workspaces.
macports/portedit/observe
Package observe runs a Portfile's contents through MacPorts in modeled contexts and judges what the evaluation depended on.
Package observe runs a Portfile's contents through MacPorts in modeled contexts and judges what the evaluation depended on.
macports/portfile
Package portfile identifies and edits literal inputs in Tcl Portfiles.
Package portfile identifies and edits literal inputs in Tcl Portfiles.
macports/portindex
Package portindex prepares, reads, and retains MacPorts indexes for immutable source trees.
Package portindex prepares, reads, and retains MacPorts indexes for immutable source trees.
macports/portsource
Package portsource interprets the upstream conventions of evaluated Portfiles.
Package portsource interprets the upstream conventions of evaluated Portfiles.
macports/prdescription
Package prdescription is the description of a pull request against macports/macports-ports, as MacPorts' template has it (.github/PULL_REQUEST_TEMPLATE.md): its headings and Type(s), what each part claims, from facts the engine establishes, and how submitting again updates a description, keeping what a person edited (the architecture review's finding 5).
Package prdescription is the description of a pull request against macports/macports-ports, as MacPorts' template has it (.github/PULL_REQUEST_TEMPLATE.md): its headings and Type(s), what each part claims, from facts the engine establishes, and how submitting again updates a description, keeping what a person edited (the architecture review's finding 5).
macports/selection
Package selection resolves port names in a captured source before native evaluation.
Package selection resolves port names in a captured source before native evaluation.
macports/sourcechoice
Package sourcechoice chooses which of a forge release's files is the project's source, from what each holds: the candidates by name, what the repository's tag and the Portfile ask of one, and the one that holds it, or why none does.
Package sourcechoice chooses which of a forge release's files is the project's source, from what each holds: the candidates by name, what the repository's tag and the Portfile ask of one, and the one that holds it, or why none does.
macports/survey
Package survey selects ports from an isolated snapshot of committed source.
Package survey selects ports from an isolated snapshot of committed source.
macports/treequery
Package treequery reads a ports tree's ports as MacPorts evaluates them: a directory's ports, the port index's dependents and dependency graph, and the archives a port's fetch plan names.
Package treequery reads a ports tree's ports as MacPorts evaluates them: a directory's ports, the port index's dependents and dependency graph, and the archives a port's fetch plan names.
macports/version
Package version owns how Dockhand reads a version spelling: whether it is a usable spelling at all, how an upstream tag maps to and from it, and whether it is stable or a prerelease.
Package version owns how Dockhand reads a version spelling: whether it is a usable spelling at all, how an upstream tag maps to and from it, and whether it is stable or a prerelease.
macports/workspace
Package workspace projects one immutable git tree onto a directory MacPorts can read.
Package workspace projects one immutable git tree onto a directory MacPorts can read.
model
Package model defines dockhand's v3 records and the vocabulary the domain packages share (docs/design-v3.md §3).
Package model defines dockhand's v3 records and the vocabulary the domain packages share (docs/design-v3.md §3).
outdated
Package outdated observes upstream updates for ports selected from committed local source.
Package outdated observes upstream updates for ports selected from committed local source.
procid
Package procid identifies an operating-system process by its PID and when it started, so a PID the system reuses names another process: the identity coord's sessions and a provider's ownership of a prefix both record, neither importing the other (Codex's review of 8e314b96).
Package procid identifies an operating-system process by its PID and when it started, so a PID the system reuses names another process: the identity coord's sessions and a provider's ownership of a prefix both record, neither importing the other (Codex's review of 8e314b96).
progress
Package progress carries transient operation messages through a context to an optional observer.
Package progress carries transient operation messages through a context to an optional observer.
project
Package project reads what an upstream project's own files say of it: its license files, its build files, and each ecosystem's manifest, as a typed record of that ecosystem's own (the assessment design, B).
Package project reads what an upstream project's own files say of it: its license files, its build files, and each ecosystem's manifest, as a typed record of that ecosystem's own (the assessment design, B).
projectregistry
Package projectregistry finds where a project named in a language's registry keeps its source, so create can start from "crates:ripgrep" as from a repository's address.
Package projectregistry finds where a project named in a language's registry keeps its source, so create can start from "crates:ripgrep" as from a repository's address.
prose
Package prose words counts and sizes the same way wherever dockhand says them.
Package prose words counts and sizes the same way wherever dockhand says them.
pypi
Package pypi reads what the Python Package Index publishes for a release, through its JSON API, which PyPI documents (https://docs.pypi.org/api/json/): the files a release has, a source archive, wheels, or both.
Package pypi reads what the Python Package Index publishes for a release, through its JSON API, which PyPI documents (https://docs.pypi.org/api/json/): the files a release has, a source archive, wheels, or both.
refusal
Package refusal is why something dockhand was asked to do didn't go, as a kind, its words, what was kept as it was, and what moves it on: the one shape every layer refuses in, where ten sentences with their remedies were composed below the engine (the architecture review of 5897a82, R3-31), commands read an exit error as a verdict and cut words out of errors (R3-38), and a failure another try may meet had five shapes (R3-6).
Package refusal is why something dockhand was asked to do didn't go, as a kind, its words, what was kept as it was, and what moves it on: the one shape every layer refuses in, where ten sentences with their remedies were composed below the engine (the architecture review of 5897a82, R3-31), commands read an exit error as a verdict and cut words out of errors (R3-38), and a failure another try may meet had five shapes (R3-6).
remotewrite
Package remotewrite is dockhand's only caller of what changes something remote: a branch pushed or deleted, a pull request opened, edited, returned to draft or marked ready, reviewers asked, a review posted, a pull request's checks run again, and a workflow run canceled or run again.
Package remotewrite is dockhand's only caller of what changes something remote: a branch pushed or deleted, a pull request opened, edited, returned to draft or marked ready, reviewers asked, a review posted, a pull request's checks run again, and a workflow run canceled or run again.
reuse
Package reuse is decision 28's reuse of evidence: what each target's build read, recorded as its inputs, so that a result can stand for a build that would read the same.
Package reuse is decision 28's reuse of evidence: what each target's build read, recorded as its inputs, so that a result can stand for a build that would read the same.
scratch
Package scratch is the process's transient directory: one run root under the system temporary directory that every short-lived directory dockhand makes is created inside, workspaces, their overlays, materialized sources, helper sandboxes, and edit buffers among them.
Package scratch is the process's transient directory: one run root under the system temporary directory that every short-lived directory dockhand makes is created inside, workspaces, their overlays, materialized sources, helper sandboxes, and edit buffers among them.
signify
Package signify makes the keys and signatures OpenBSD's signify(1) verifies, which MacPorts checks an archive fetched from an archive site with (signify -V -p key -x signature -m archive): an Ed25519 key, and a signature of the whole file.
Package signify makes the keys and signatures OpenBSD's signify(1) verifies, which MacPorts checks an archive fetched from an archive site with (signify -V -p key -x signature -m archive): an Ed25519 key, and a signature of the whole file.
sourcecompare
Package sourcecompare compares two versions of a project's upstream source, as project read them, for what a reviewer would ask about before an update is submitted (Design v3 §6.12): a license file, a build file, or a declared dependency.
Package sourcecompare compares two versions of a project's upstream source, as project read them, for what a reviewer would ask about before an update is submitted (Design v3 §6.12): a license file, a build file, or a declared dependency.
store
Package store is the contract for v3's durable records (docs/design-v3.md §3 and §11): branches, revisions, plans, runs, guest executions, target results, and the sessions, leases, and events that coordinate processes.
Package store is the contract for v3's durable records (docs/design-v3.md §3 and §11): branches, revisions, plans, runs, guest executions, target results, and the sessions, leases, and events that coordinate processes.
store/sqlite
Package sqlite implements the store contract on one SQLite database, dockhand v3's ~/.dockhand/dockhand.db.
Package sqlite implements the store contract on one SQLite database, dockhand v3's ~/.dockhand/dockhand.db.
store/sqlite/sqlitetest
Package sqlitetest gives tests a new dockhand database without each running every migration: a fresh database takes the schema's whole history, about fifty migrations, each in its own transaction synced to the disk, and hundreds of tests open one.
Package sqlitetest gives tests a new dockhand database without each running every migration: a fresh database takes the schema's whole history, about fifty migrations, each in its own transaction synced to the disk, and hundreds of tests open one.
subprocess
Package subprocess runs one external command with the conventions every Dockhand tool runner shares: a bounded wait after cancellation, captured output, the context error joined into the cause, and one error shape that names the tool, its command, and what it wrote to stderr.
Package subprocess runs one external command with the conventions every Dockhand tool runner shares: a bounded wait after cancellation, captured output, the context error joined into the cause, and one error shape that names the tool, its command, and what it wrote to stderr.
tart
Package tart provides shared mechanics for the local Tart installation and its images.
Package tart provides shared mechanics for the local Tart installation and its images.
tart/guestssh
Package guestssh reaches a Tart guest over SSH through Apple's /usr/bin/ssh, macOS's own documented client (decision 43 of the contracts direction).
Package guestssh reaches a Tart guest over SSH through Apple's /usr/bin/ssh, macOS's own documented client (decision 43 of the contracts direction).
tart/host
Package host controls concrete Tart VMs and their guest-agent transport.
Package host controls concrete Tart VMs and their guest-agent transport.
tart/provision
Package provision constructs and validates local Tart images for verification.
Package provision constructs and validates local Tart images for verification.
tcl/rpc
Package rpc exchanges framed calls with a Tcl child over its standard streams.
Package rpc exchanges framed calls with a Tcl child over its standard streams.
tcl/shell
Package shell manages Tcl child processes and their bounded output.
Package shell manages Tcl child processes and their bounded output.
tcl/syntax
Package syntax parses Tcl source into byte-addressed syntax without evaluating it.
Package syntax parses Tcl source into byte-addressed syntax without evaluating it.
term/screen
Package screen is the terminal a view draws on whole, as dockhand console does: the alternate screen, its input read in raw mode as keys, and a frame drawn in one write at the terminal's size.
Package screen is the terminal a view draws on whole, as dockhand console does: the alternate screen, its input read in raw mode as keys, and a frame drawn in one write at the terminal's size.
testsupport
Package testsupport holds helpers that tests in many packages share.
Package testsupport holds helpers that tests in many packages share.
textedit
Package textedit provides byte spans and edits for source-preserving transformations.
Package textedit provides byte spans and edits for source-preserving transformations.
upstream
Package upstream selects and checks releases for interpreted MacPorts sources.
Package upstream selects and checks releases for interpreted MacPorts sources.
tools
acceptance/faultproxy command
Command faultproxy is an HTTP proxy that fails on purpose, for the acceptance harness's fault kit (the project's plan/prime-time- environment.md): set as HTTPS_PROXY, it makes every connection dockhand asks for stall, reset, or answer 502, or tunnels it through unchanged; stall-body tunnels it until the host has sent -after bytes, past TLS's handshake and a response's headers, then sends no more, so the stall falls in a body, not the handshake.
Command faultproxy is an HTTP proxy that fails on purpose, for the acceptance harness's fault kit (the project's plan/prime-time- environment.md): set as HTTPS_PROXY, it makes every connection dockhand asks for stall, reset, or answer 502, or tunnels it through unchanged; stall-body tunnels it until the host has sent -after bytes, past TLS's handshake and a response's headers, then sends no more, so the stall falls in a body, not the handshake.
corpus command
Command corpus replays MacPorts' own version bumps through dockhand's update, against a pinned slice of the ports tree: its PortGroups and about a dozen exemplar ports, each as it was before a bump, beside the Portfile the bump made (testdata/corpus).
Command corpus replays MacPorts' own version bumps through dockhand's update, against a pinned slice of the ports tree: its PortGroups and about a dozen exemplar ports, each as it was before a bump, beside the Portfile the bump made (testdata/corpus).
facts command
Command facts harvests the toolchain facts table, internal/macos's facts.json, and regenerates it (decisions 9-13 of the contracts direction).
Command facts harvests the toolchain facts table, internal/macos's facts.json, and regenerates it (decisions 9-13 of the contracts direction).
livecheck command
Command livecheck replays dockhand's upstream discovery over the ports tree with no network, from recorded catalogs and pages, and checks it against what needs no oracle: where a port's own tag exists upstream, the port's own livecheck filter must admit it (#200, the offline livecheck sweep's first step).
Command livecheck replays dockhand's upstream discovery over the ports tree with no network, from recorded catalogs and pages, and checks it against what needs no oracle: where a port's own tag exists upstream, the port's own livecheck filter must admit it (#200, the offline livecheck sweep's first step).
survey command
Command survey assesses every port of a ports tree, or a selection of them, and compares two surveys.
Command survey assesses every port of a ports tree, or a selection of them, and compares two surveys.

Jump to

Keyboard shortcuts

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