Skip to content

chore: release 1.19.0 - #1841

Closed
vig-os-release-app[bot] wants to merge 35 commits into
mainfrom
release/1.19.0
Closed

vig-os-release-app[bot] wants to merge 35 commits into
mainfrom
release/1.19.0

Conversation

@vig-os-release-app

Copy link
Copy Markdown
Contributor

Release 1.19.0

This PR prepares release 1.19.0 for merge to main.

[1.19.0] - TBD

Added

  • Rust cold adoption: a Cargo repo gets a working Rust setup from the scaffold
    (#1496)

    • The first scaffold of a repo with a Cargo.toml seeds a cargo
      justfile.project: just lint runs cargo fmt --check and clippy with
      warnings denied, and just test runs cargo test --workspace. It used to
      get the Python recipes, which skip without a pyproject.toml, so CI went
      green without compiling anything
    • A fresh direnv scaffold of a Rust repo gets a flake.nix on
      vigos.lib.mkRustProject instead of mkProjectShell: one call wires the
      dev shell, the nix flake check suite (fmt, clippy, nextest, doctests,
      rustdoc, cargo-deny, the package builds) and packages, and forwards the
      .vig-os hook settings
    • Base rustfmt.toml, clippy.toml and deny.toml are seeded when the
      scaffold adopts Rust (never on an existing Rust consumer's upgrade, where a
      new deny.toml would switch on a check nobody asked for), and never beside
      an equivalent such as .rustfmt.toml or .cargo/deny.toml; they are
      consumer-owned from then on and never overwritten
    • New nix flake init -t github:vig-os/devkit#rust starter crate that passes
      the pack's whole check suite as shipped
    • The consumer matrix's rust cell now passes, and a new rust-flake cell
      runs the whole direnv path (nix flake check, hooks, just lint/just test in the flake's shell) on every PR
  • mkRustProject sandboxExcludes for tests the Nix sandbox cannot run
    (#1834)

    • A list of nextest filterset expressions (e.g. [ "test(pty_)" "binary(supervisor)" ])
      that checks.nextest skips, for suites that need a PTY, process groups,
      signals or the network
    • The excluded tests stay in just test and CI; only the sandboxed flake
      check skips them, so a repo no longer has to choose between
      nextest = false and a red nix flake check

Changed

  • Documented, tested stanza for flakes that consume a devkit project's packages
    (#1832)

    • New docs/MIGRATION.md section "Projects that ship packages to other
      flakes": the consuming flake builds the package with its own nixpkgs and
      drops the devkit inputs a package build never reads (follows = ""), so
      its lock shrinks from devkit's whole input tree to nixpkgs, crane,
      fenix and flake-utils
    • CI builds a Rust project's package through that exact block, and fails if
      devkit adds an input the stanza does not cover or starts reading one it
      drops. The scaffolded flake.nix keeps following devkit's nixpkgs, and
      points at the section
  • Rust adopters are pointed at the Rust pack, not a bare compiler
    (#1831)

    • docs/MIGRATION.md no longer calls rust an unshipped candidate module or
      recommends extraPackages = [ pkgs.cargo pkgs.rustc ]; a new "Rust projects:
      the Rust pack" section covers the new-repo path, porting a repo scaffolded
      before it was Rust, toolchain pinning, sandboxExcludes and the base tool
      configs. README.md and docs/SOLO_ADOPTION.md link to it
    • The scaffold prints a notice when a Rust repo keeps a preserved flake.nix
      that does not use mkRustProject, or a justfile.project that never runs
      cargo, naming the doc section that fixes it

Fixed

  • Untracked build output no longer blocks the upgrade that ignores it
    (#1826)

    • The install.sh --force preflight refused any untracked file, so a repo
      that had just gained a language (a Rust repo with target/) could not take
      the very upgrade that adds its .gitignore fragment. Untracked paths are
      now matched against the .gitignore the upgrade will write; covered ones
      are named and left in place, any other one still refuses, by name
    • New --allow-untracked flag runs the upgrade with untracked files present;
      tracked changes still refuse
  • mkRustProject forwards the .vig-os hook settings
    (#1810)

    • lib.mkRustProject accepts branchTypes, commitTypes, refsPolicy and
      refsOptionalTypes and passes them to mkProjectShell, so a Rust repo's
      DEVKIT_BRANCH_TYPES / DEVKIT_COMMIT_TYPES / DEVKIT_REFS_POLICY /
      DEVKIT_REFS_OPTIONAL_TYPES reach the flake-generated branch guard and
      commit-message hook instead of being silently ignored
    • A Rust flake no longer has to drop or # deadnix: skip the manifest
      bindings it reads, which made the first commit touching flake.nix fail
      deadnix

commit-action-bot Bot and others added 30 commits October 5, 2026 08:48
Syncs `dev` with `main` (sync-main-to-dev workflow).
## Description

`lib.mkRustProject` builds its dev shell through `mkProjectShell` but
did not accept the four `.vig-os` hook settings. A Rust flake therefore
had nowhere to pass `branchTypes` / `commitTypes` / `refsPolicy` /
`refsOptionalTypes`. Its `DEVKIT_*` settings were silently ignored by
the generated branch guard and commit-message hook, and the manifest
bindings the flake reads went unused, which fails deadnix on the first
commit touching `flake.nix`.

**Stack 1/6** for #1833 (Rust cold adoption). Base: `dev`.

## Type of Change

- [x] `fix` -- Bug fix
- [x] `test` -- Adding or updating tests

## Changes Made

- `nix/mk-rust-project.nix`: new `branchTypes`, `commitTypes`,
`refsPolicy`, `refsOptionalTypes` arguments (default `null`), forwarded
verbatim to `mkProjectShell`, which already documents and validates
them.
- The usage examples in `nix/mk-rust-project.nix` and `flake.nix` use
`inherit (rust) checks packages;` (statix [04]).
- Having the Rust scaffold pass these settings is the remaining half of
#1810. It lands with the `#rust` template in #1496 (stack 3/6), because
no Rust flake scaffold exists before that PR.

## Changelog Entry

### Fixed
- **`mkRustProject` forwards the `.vig-os` hook settings**
([#1810](#1810))
- `lib.mkRustProject` accepts `branchTypes`, `commitTypes`, `refsPolicy`
and `refsOptionalTypes` and passes them to `mkProjectShell`, so a Rust
repo's `DEVKIT_BRANCH_TYPES` / `DEVKIT_COMMIT_TYPES` /
`DEVKIT_REFS_POLICY` / `DEVKIT_REFS_OPTIONAL_TYPES` reach the
flake-generated branch guard and commit-message hook instead of being
silently ignored
- A Rust flake no longer has to drop or `# deadnix: skip` the manifest
bindings it reads, which made the first commit touching `flake.nix` fail
deadnix

## Testing

- [x] `test_mk_rust_project_forwards_the_vig_os_hook_knobs` builds the
Rust dev shell's generated hook config and checks the rendered argv:
`--types` carries the custom type, `--refs-optional-types` is
`chore,record` (taking precedence over `refsPolicy = "required"`), and
the branch guard carries the custom branch type. It failed first with
`unexpected argument 'branchTypes'`.
- [x] All `mk_rust_project` tests in `tests/test_flake_modules.py` pass
locally (8 passed).

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and
pasted the entry above)
- [x] I have added tests that prove my fix is effective or that my
feature works

Refs: #1810, #1833
## Description

`mkRustProject`'s `nextest` check runs inside the Nix build sandbox,
where tests that need a PTY, process groups, signals or the network
cannot pass. Before this PR a consumer had two options: `nextest =
false`, which also dropped every test the sandbox *can* run, or an
undocumented `craneArgs` patch. This adds a named seam for it.

**Stack 2/6** for #1833. Base: #1835
(`bugfix/1810-rust-project-hook-knobs`).

## Type of Change

- [x] `feat` -- New feature
- [x] `test` -- Adding or updating tests

## Changes Made

- `nix/mk-rust-project.nix`: new `sandboxExcludes ? [ ]`, a list of
nextest filterset expressions. They are rendered into a single `-E 'not
(a) and not (b)'`, because nextest *unions* repeated `-E` flags, so
per-exclusion flags would still run everything. The filter is composed
with any `cargoNextestExtraArgs` the consumer passes through
`craneArgs`, never assigned over it.
- Malformed input (not a list, or an empty entry) fails eval with
`sandboxExcludes must be …`.
- Only `checks.nextest` is affected. The excluded tests stay in `just
test` and CI through the Rust `justfile.project` that #1496 (stack 3/6)
seeds. The adopter docs for the seam land with #1831 (stack 4/6).

## Changelog Entry

### Added
- **`mkRustProject` `sandboxExcludes` for tests the Nix sandbox cannot
run** ([#1834](#1834))
- A list of nextest filterset expressions (e.g. `[ "test(pty_)"
"binary(supervisor)" ]`) that `checks.nextest` skips, for suites that
need a PTY, process groups, signals or the network
- The excluded tests stay in `just test` and CI; only the sandboxed
flake check skips them, so a repo no longer has to choose between
`nextest = false` and a red `nix flake check`

## Testing

- [x]
`test_mk_rust_project_sandbox_excludes_skip_tests_in_the_nextest_check`
**builds** `checks.nextest` on a fixture crate whose `needs_a_pty` test
always panics. Without the exclusion the build must fail on that test
(the control); with `sandboxExcludes = [ "test(needs_a_pty)" ]` it must
succeed. Only nextest itself can prove that the filter expression
matches.
- [x] `…_compose_with_crane_args`: two exclusions and a consumer's
`--no-fail-fast` all reach the check phase.
- [x] `…_rejects_a_malformed_sandbox_excludes`: a non-list and an empty
entry are refused by name.
- [x] `tests/test_flake_modules.py`: 36 passed locally.

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and
pasted the entry above)
- [x] I have added tests that prove my fix is effective or that my
feature works

Refs: #1834, #1833
…s, mkRustProject flake, #rust template) (#1837)

## Description

Ships the Rust pack's missing entry point (#1496: L1, L4, L7). A repo
with a `Cargo.toml` now gets a working Rust setup from the scaffold,
instead of the Python recipes that skip without a `pyproject.toml` and
let CI go green without compiling anything. It also completes #1810's
second half: the Rust flake forwards the `.vig-os` hook settings.

**Stack 3/6** for #1833. Base: #1836
(`feature/1834-rust-sandbox-test-excludes`).

## Type of Change

- [x] `feat` -- New feature
- [x] `test` -- Adding or updating tests

## Changes Made

**L4: cargo `justfile.project`**
(`assets/justfile.d/rust.justfile.project`)
- `lint` = `cargo fmt --all --check` + `cargo clippy --workspace
--all-targets -- --deny warnings`; `test` = `cargo test --workspace`
(doctests included, and the tests `sandboxExcludes` keeps out of the
flake check); `sync` = `cargo fetch`; plus `format`, `test-cov`
(cargo-llvm-cov), `build`, `update`, `clean-artifacts`. Each recipe
reports its skip when `Cargo.toml` is absent (#1478).

**L1: base tool configs** (`assets/lang.d/rust/`)
- `rustfmt.toml` (stable options only), `clippy.toml` (unwrap/expect
allowed in tests), `deny.toml` (permissive licence allow-list,
`[licenses.private] ignore = true`, wildcard and unknown-source denial).
They are seeded where the repo has none, and they're `PRESERVE_FILES`,
so consumer-owned from then on. #1400 settled ownership: the pack owns
them, and guardrails' copies defer.
- `.cargo/config.toml` is **deliberately not shipped**. Everything it
would carry (mold, linker flags) already comes from the flake's rust
module, so the file would only be comments.

**Rust `flake.nix`** (`assets/flake.d/rust.flake.nix`)
- Replaces the fresh `flake.nix` on a first direnv scaffold of a Cargo
repo (never an existing one). `rust = vigos.lib.mkRustProject { … }`
provides `devShells.default`, and `inherit (rust) checks packages;`
keeps statix clean. All five `.vig-os` settings are forwarded behind
`functionArgs` probes, because `vigos` floats (#1249). This closes
#1810's remaining half.
- The managed `.vig-os` reader and the `extraPackages` block are
byte-identical to the base stub. `tests/test_rust_scaffold.py` pins that
lockstep, so the two stubs can't drift.

**Seeding** (`assets/init-workspace.sh`)
- `seed_node_justfile_project` became `seed_language_variant <dir>
<suffix> <target> <preexisted>`. It serves the Node and Rust
`justfile.project` and the Rust `flake.nix` from one code path. Node
still wins over Rust, as before. A second language that also ships a
variant is named in a notice, never silently dropped.
- New `seed_language_statics` walks `lang.d/<lang>/`.
- `infer_legacy_mode` also recognises a `mkRustProject` flake as the
scaffold stub.
- `scripts/sync_manifest.py` stamps the preserved banner on the Rust
seed and on every `lang.d` file, with targets derived from the layout.

**L7: `nix flake init -t github:vig-os/devkit#rust`**
(`templates/rust/`)
- Edition-2024 crate with a library, a binary, a doctest, a unit test,
an integration test, `[lints]` and a stripped release profile. The
README gives the order (template first, then `install.sh`).

**Consumer matrix**
- `EXPECTED_FAIL[rust]` is removed (c-vigo's acceptance condition on
#1496), and the `rust` cell passes.
- New `rust-flake` cell: rust fixture in direnv mode, running `nix flake
check` (fmt/clippy/nextest/doctest/doc/deny/workspace), the first-commit
hooks, then `just sync/lint/test` inside the flake's dev shell. The
fixture gains its `Cargo.lock`.
- The expected-fail mechanism stays tested through a synthetic marker.

## Changelog Entry

### Added
- **Rust cold adoption: a Cargo repo gets a working Rust setup from the
scaffold** ([#1496](#1496))
- The first scaffold of a repo with a `Cargo.toml` seeds a cargo
`justfile.project`: `just lint` runs `cargo fmt --check` and clippy with
warnings denied, and `just test` runs `cargo test --workspace`. It used
to get the Python recipes, which skip without a `pyproject.toml`, so CI
went green without compiling anything
- A fresh direnv scaffold of a Rust repo gets a `flake.nix` on
`vigos.lib.mkRustProject` instead of `mkProjectShell`: one call wires
the dev shell, the `nix flake check` suite (fmt, clippy, nextest,
doctests, rustdoc, cargo-deny, the package builds) and `packages`, and
forwards the `.vig-os` hook settings
- Base `rustfmt.toml`, `clippy.toml` and `deny.toml` are seeded where
the repo has none; they are consumer-owned from then on and never
overwritten
- New `nix flake init -t github:vig-os/devkit#rust` starter crate that
passes the pack's whole check suite as shipped
- The consumer matrix's `rust` cell now passes, and a new `rust-flake`
cell runs the whole direnv path (`nix flake check`, hooks, `just
lint`/`just test` in the flake's shell) on every PR

## Testing

- [x] `tests/bats/init-workspace.bats`: 10 new tests (cargo recipes +
banner + preserve, statics seeded/scaffold-once/absent for non-Rust,
Rust flake seeded/hooks default/knob forwarding/preserve, non-Rust keeps
`mkProjectShell`). Full file plus `consumer-matrix.bats`: 345 ok, 0
failed.
- [x] `tests/test_rust_scaffold.py`: managed-block and `extraPackages`
lockstep, hooks anchor, knob probes, statix shape, and the `#rust`
template **built** through every `mkRustProject` check (nextest log: 2
passed).
- [x] Local consumer-matrix runs: `rust` passed (fixture suite ran);
`rust-flake` passed, with `nix flake check` evaluating and building
`clippy deny doc doctest fmt nextest workspace`.
- [x] Seeded Rust flake: `deadnix --no-lambda-arg
--no-lambda-pattern-names`, `statix check` and `nixfmt --check` are all
clean.

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and
pasted the entry above)
- [x] I have added tests that prove my fix is effective or that my
feature works

## Additional Notes

- The cold-adoption docs (MIGRATION.md, README) land in #1831 (stack
4/6). The adopter-facing story is complete only with both.

Refs: #1496, #1810, #1833
gerchowl and others added 5 commits October 5, 2026 23:31
…#1838)

## Description

The adopter docs never led a Rust consumer to the Rust pack, and
`docs/MIGRATION.md` actively steered them away from it: it called `rust`
an unshipped candidate and recommended `extraPackages = [ pkgs.cargo
pkgs.rustc ]`. This PR fixes both passages, adds a Rust section the
scaffold can link to, and has the scaffold print that link when a Rust
repo's preserved files bypass the pack.

**Stack 4/6** for #1833. Base: #1837
(`feature/1496-rust-cold-adoption-entry`).

## Type of Change

- [x] `docs` -- Documentation only
- [x] `feat` -- New feature (the scaffold notice)
- [x] `test` -- Adding or updating tests

## Changes Made

- `docs/MIGRATION.md`
- "Adding tools the image does not ship": Rust goes to the pack and
C/C++ to `native`. The `extraPackages` example keeps only genuinely
ad-hoc tools.
- "The native-build contract": lists the modules that actually ship
(`native`, `node`, `docs`, `guardrails`, `rust`), with `rust` used
through `mkRustProject`.
- New **"Rust projects: the Rust pack"** section: the check table; the
new-repo path (`nix flake init -t #rust`, then `install.sh`) and what
gets seeded; porting a repo scaffolded before it was Rust (pointers to
`assets/flake.d/rust.flake.nix` and the cargo recipes); `toolchainHash`
pinning; `sandboxExcludes` (#1834); the base tool configs and advisories
outside the sandbox.
  - "Declared project languages" names the new Rust seeds.
- `README.md` (via `docs/templates/README.md.j2` + `just docs`) and
`docs/SOLO_ADOPTION.md` link to the section.
- `assets/init-workspace.sh`: `notice_rust_pack_bypass`. In a Rust repo,
it prints a notice when a **preserved** `flake.nix` doesn't use
`mkRustProject`, or a **preserved** `justfile.project` never runs cargo.
Each notice names the gap and links the MIGRATION section. It stays
silent on a fresh scaffold, where #1496's seeds already landed. This is
the issue's "print a notice when `DEVKIT_LANGUAGES` gains `rust`",
scoped to the case that still needs it now that #1496 seeds
automatically.

## Changelog Entry

### Changed
- **Rust adopters are pointed at the Rust pack, not a bare compiler**
([#1831](#1831))
- `docs/MIGRATION.md` no longer calls `rust` an unshipped candidate
module or recommends `extraPackages = [ pkgs.cargo pkgs.rustc ]`; a new
"Rust projects: the Rust pack" section covers the new-repo path, porting
a repo scaffolded before it was Rust, toolchain pinning,
`sandboxExcludes` and the base tool configs. `README.md` and
`docs/SOLO_ADOPTION.md` link to it
- The scaffold prints a notice when a Rust repo keeps a preserved
`flake.nix` that does not use `mkRustProject`, or a `justfile.project`
that never runs cargo, naming the doc section that fixes it

## Testing

- [x] 3 bats tests: the flake notice, the justfile notice, and no notice
on a fresh Rust scaffold. They failed before the implementation.
- [x] `test_bypass_notice_links_to_a_real_migration_heading`: every
`docs/MIGRATION.md#…` anchor in `init-workspace.sh` resolves to a real
heading. It failed until the section existed.
- [x] All `#1496|#1831` bats tests pass locally.

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have updated the documentation accordingly (edit
`docs/templates/`, then run `just docs`)
- [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and
pasted the entry above)
- [x] I have added tests that prove my fix is effective or that my
feature works

Refs: #1831, #1833
… ignore (#1839)

## Description

The `install.sh --force` preflight refused **any** untracked file. A
repo that had just gained a language, such as a Rust repo with `cargo
build` output in `target/`, therefore could not take the very upgrade
that adds the `.gitignore` fragment ignoring it. The workaround was to
move the build directory aside. Same for `node_modules/`, `.venv/` and
Nix `result` links.

**Stack 5/6** for #1833. Base: #1838
(`feature/1831-rust-pack-adopter-docs`).

## Type of Change

- [x] `fix` -- Bug fix
- [x] `test` -- Adding or updating tests

## Changes Made

The judgement moves to where the knowledge is. The host doesn't know the
gitignore fragments or the detected languages; the image does.

- **`install.sh`** (host): tracked changes still refuse, unchanged.
Untracked paths (`git ls-files --others --exclude-standard --directory`)
are no longer refused host-side. They are forwarded to the container as
`DEVKIT_PREFLIGHT_UNTRACKED`. New `--allow-untracked` flag skips that
check: it names the paths it leaves out, and tracked changes still
refuse.
- **`assets/init-workspace.sh`** (container):
`preflight_untracked_guard` runs right after language detection, before
any file is written. It assembles the root `.gitignore` this run will
write (template base + the detected languages' `gitignore.d` fragments +
`.gitignore.project`, the same parts `render_gitignore` uses) and
matches each path with git's own matcher (`check-ignore --no-index`) in
a scratch repo, because the workspace's `.git` may be an unmounted
worktree pointer. Covered paths are named and left in place. Any other
path refuses by name and hints `--allow-untracked` / `--skip-preflight`.
- Build output of a language that **isn't detected** is not excused
(`node_modules/` without a `package.json`), because its fragment won't
be in the upgraded `.gitignore`.
- `docs/MIGRATION.md` "Upgrade preflight guard and preview" documents
the rule and the flag.

## Changelog Entry

### Fixed
- **Untracked build output no longer blocks the upgrade that ignores
it** ([#1826](#1826))
- The `install.sh --force` preflight refused any untracked file, so a
repo that had just gained a language (a Rust repo with `target/`) could
not take the very upgrade that adds its `.gitignore` fragment. Untracked
paths are now matched against the `.gitignore` the upgrade will write;
covered ones are named and left in place, any other one still refuses,
by name
- New `--allow-untracked` flag runs the upgrade with untracked files
present; tracked changes still refuse

## Testing

- [x] `install.bats` (5 new, 1 rewritten): untracked paths are forwarded
rather than refused; a tracked change still refuses alongside `target/`;
`--allow-untracked` proceeds and forwards nothing; `--allow-untracked`
doesn't excuse a tracked change; a clean tree forwards nothing. All 30
`preflight` tests pass.
- [x] `init-workspace.bats` (4 new): a Rust repo's `target/` passes
while an untracked `Cargo.toml` is named; an uncovered path refuses
**before `.vig-os` or `justfile` exist**; `node_modules/` without
`package.json` refuses; `.gitignore.project` entries count as covered.
- The issue's repro (neutral scaffold, then `Cargo.toml` + `cargo
build`, then `install.sh --force`) is the first init-workspace test.

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have updated the documentation accordingly
- [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and
pasted the entry above)
- [x] I have added tests that prove my fix is effective or that my
feature works

Refs: #1826, #1833
## Description

A flake that consumes a devkit project's `packages` (e.g. one binary
from a Rust CLI built by `mkRustProject`) inherits devkit's whole input
tree in its lock: home-manager twice, git-hooks, treefmt,
process-compose, services-flake and a second nixpkgs. This PR documents,
and puts under test, how the **consuming** flake avoids that.

**Stack 6/6** for #1833. Base: #1839
(`bugfix/1826-preflight-untracked-build-output`).

## Type of Change

- [x] `docs` -- Documentation only
- [x] `test` -- Adding or updating tests

## Changes Made

The issue offered two remedies. I measured before choosing:

| downstream flake | lock nodes | package store path |
| --- | --- | --- |
| plain `my-tool.url` | 17 | `…b87d0…-consumer_matrix_rust-0.1.0` |
| + `nixpkgs` follows (the issue's dedupe stanza) | 17 (nixpkgs is now
the consumer's) | same |
| + `follows = ""` on the 7 devkit inputs packages never read | **8** |
**same** |

- **Docs (taken):** new `docs/MIGRATION.md` section "Projects that ship
packages to other flakes", with the full consumer stanza: build with the
consumer's nixpkgs, and empty the seven unused devkit inputs with Nix's
`follows = ""` idiom. That leaves `nixpkgs`, `crane`, `fenix` and
`flake-utils`. The two stub flakes (`assets/workspace/flake.nix`,
`assets/flake.d/rust.flake.nix`) get a comment pointing there.
- **Template flip (not taken):** making `vigos` follow the project's
`nixpkgs` would re-pin devkit's tools, overlay and dev shell onto a
nixpkgs devkit never tested or cached. The issue's own caveat says this
needs a guard. Since the consumer-side stanza fully solves the reported
problem, the flip isn't needed. The rationale is in the doc section.
- **Contract test** `tests/test_flake_package_consumers.py`:
- It executes the documented block **verbatim** from MIGRATION.md, only
swapping in local URLs, against a project rendered from the `#rust`
template plus the seeded `mkRustProject` flake, with `vigos` overridden
to this checkout. It must build.
- A second test asserts that the stanza's drop list equals devkit's
inputs minus the four a package needs. A new devkit input therefore
fails CI until the doc covers it.

## Changelog Entry

### Changed
- **Documented, tested stanza for flakes that consume a devkit project's
packages** ([#1832](#1832))
- New `docs/MIGRATION.md` section "Projects that ship packages to other
flakes": the consuming flake builds the package with its own nixpkgs and
drops the devkit inputs a package build never reads (`follows = ""`), so
its lock shrinks from devkit's whole input tree to `nixpkgs`, `crane`,
`fenix` and `flake-utils`
- CI builds a Rust project's package through that exact block, and fails
if devkit adds an input the stanza does not cover or starts reading one
it drops. The scaffolded `flake.nix` keeps following devkit's nixpkgs,
and points at the section

## Testing

- [x] Both tests failed first (no documented stanza), then passed.
- [x] Negative control: temporarily adding `crane.follows = ""` to the
doc block makes the build test fail with `attribute 'mkLib' missing`.
The test catches a real dependency, not just an evaluation.
- [x] `tests/test_rust_scaffold.py` (the managed-block lockstep across
both stubs) still passes.

## Checklist

- [x] I have performed a self-review of my code
- [x] I have updated the documentation accordingly
- [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and
pasted the entry above)
- [x] I have added tests that prove my fix is effective or that my
feature works

Refs: #1832, #1833
Move Unreleased content to [1.19.0] - TBD
and create fresh empty Unreleased section for continued development.
Regenerate the synced workspace mirror so
assets/workspace/.devcontainer/CHANGELOG.md matches the frozen root
CHANGELOG.md on the release branch.
@vig-os-release-app

Copy link
Copy Markdown
Contributor Author

Release 1.19.0 abandoned via abandon-release before publication (#1504): draft Release, tag, and release branch deleted. The version number remains available for a re-cut.

@vig-os-release-app
vig-os-release-app Bot deleted the release/1.19.0 branch October 29, 2026 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant