Repository navigation
Closed
0 / 10 of 1 issue completedClosed
0 / 10 of 1 issue completed
Copy link
Labels
Description
Parent spike: #1769. Research the 2026 best practice for shipping prebuilt binaries and installers (Rust first, language-agnostic where possible) and decide what devkit manages.
Motivation / why
The only supported path today is a hand-copied cargo-dist recipe (on dev, docs/DOWNSTREAM_RELEASE.md "cargo-dist adopter recipe"), because dist's generated CI undrafts the Release itself under GITHUB_TOKEN (bypasses promote, never fires release: published). The upstream fix — undraft-release = false, axodotdev/cargo-dist#2520 / #2521 — is still open.
Proposed approach (strawman)
- Short term: turn the recipe into a managed-or-seeded tag-push workflow driven by
dist-workspace.toml(dist as asset builder into the train's draft). - Once #2521 lands: switch to dist's generated CI with
undraft-release = false; devkit manages only the config contract and a drift check. - Evaluate alternatives for non-Rust binaries (goreleaser for Go, generic matrix builds) and distribution extras: Homebrew tap, shell/PowerShell installers,
cargo binstallmetadata, macOS codesign/notarization, Windows signing.
What already exists
cargo-dist recipe (on dev), draft-first + pre-publish assets window (#1746), release-publish.yml draft-before-tag ordering.
Scope / questions
- cargo-dist maintenance status 2026 and the #2521 timeline — safe to bet on?
- Cross-compilation: native runners matrix vs.
cargo-zigbuildvs. nix cross — what should the template default to? - Per-binary attestations + checksums: dist-native or devkit's generic assets step (see GitHub Releases spike)?
- Homebrew tap publishing: needs a write token to another repo — fits the App token model (
docs/WORKFLOW_SECURITY.md)? - macOS notarization / Windows signing: in scope or explicitly out?
Pitfalls
- dist's
plandrift check fails on hand-edited generated CI. - Tag-only candidates have no draft → asset workflow must no-op cleanly.
- Runner labels (
macos-14,ubuntu-24.04) drift;DEVKIT_CI_RUNNERinterplay.
Acceptance criteria
- Dated verdict (verified-on / verified-how) on the 2026 best practice for this channel, with primary sources (registry docs, official actions)
- Gap table: best practice vs. what devkit ships today
- Concrete split: devkit owns (managed) / devkit seeds (template) / repo owns (build recipe, registry registration)
- Prerelease policy for this channel decided
- Implementation issue(s) filed, or an explicit "won't do" with reason
References
Parent: #1769 · #1746 · #1748 · #1523 · #1519 · docs/DOWNSTREAM_RELEASE.md (on dev)
Sub-issues
Collapse Sub-issuesSub-issues
Loading 1 sub-issues
Activity
gerchowl commentedon Sep 29, 2026
Verdict
cargo-dist is a safe bet. v0.33.0 shipped 2026-09-10, maintainers are actively merging, and on 2026-09-28 a maintainer said they were "fine with your proposed solution" on #2520. Treat #2521 as the thing that lets us delete the hand-copied recipe, not as a dependency the plan can't survive without.
Alternatives: GoReleaser v2.5+ (Rust via
cargo-zigbuild), cargo-binstall, or a hand-rolled matrix.Choices
cargo-zigbuildon Linux for glibc, musl and windows-gnu; nativemacos-14/windows-2022runners for Darwin and MSVC;crossas an escape hatch.docs/WORKFLOW_SECURITY.mdshape). If the tap has branch protection, the App needs a bypass or a PR flow.Split
dist build, upload into the draft, sums and attestations, no-op without a draft). Seededdist-workspace.toml, signing and tap config.undraft-release = false; dist's generated CI becomes the seeded part.New pitfalls
macos-14runners are Apple Silicon only.allow-dirty = ["ci"]: it disables drift protection globally.Sources: dist releases · dist #2396 Azure signing · GoReleaser Rust · cargo-zigbuild · notarizing CLIs
c-vigo commentedon Sep 30, 2026
Spike complete. The dated verdict is in the review above; the cross-cutting decision is recorded in
docs/rfcs/ADR-publish-lanes.md(PR #1785, merged todevas 36e74cc), per #1769's rule that the channel spikes close when the ADR lands.Implementation continues in: #1783 (binaries lane) (lane foundation: #1778).