Skip to content

nixos build broken on main: mcpx inconsistent vendoring (x/net bumped in go.mod, vendor/ not regenerated) #14051

Done

Description

@dezren39

What broke

Building the laptop's NixOS configuration from current main fails in pkgs/mcpx:

building '/nix/store/bcnknwvgmwji52siid0vdfpsgf9w0qic-mcpx-0.1.0.drv'...
go: inconsistent vendoring in /build/source:
    golang.org/x/net@v0.63.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    golang.org/x/net@v0.62.0: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod

Cause

Commit 3141777acee (2026-11-23, "chore(deps): bump the gomod group across 4 directories with 5 updates") bumped golang.org/x/net v0.62.0 → v0.63.0 in pkgs/mcpx/go.mod/go.sum but did not regenerate pkgs/mcpx/vendor/, and pkgs/mcpx/package.nix's vendorHash still covers the old vendored tree.

Impact

nixos-rebuild build --flake github:developing-today/code/main#amd fails (verified 2026-11-23, ~6.6 min in, mcpx is the first failing derivation; everything downstream of it — activation script, system path, the toplevel — cannot build). This blocks any laptop system switch to current main.

Fix

Regenerate the vendor tree (go mod vendor in pkgs/mcpx), update vendorHash in pkgs/mcpx/package.nix to match, verify the mcpx package and the full amd system build pass.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-24T03:32:03Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. developing-today commented on Nov 24, 2026

    @developing-today
    Contributor
  2. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    Contributor

    Second break found while verifying the vendor fix — same build, independent cause:

    With the corrected vendorHash, the mcpx check phase ran to completion and failed on exactly one test: TestEveryDocumentationLinkResolves (internal/defaults). docs/program/libraries-models.md:18 names `internal/model.Provider.Generate` in backticks; the checker treats a backticked path-shaped token as a file path, and that path does not exist — the doc named a symbol, not a file. Everything else in the suite passed (including the 996 s e2e package and the 175 s daemon package).

    Fix included in the same PR as the vendorHash sync (branch fix/mcpx-vendor-sync): the sentence now reads "the Generate method of the Provider interface in internal/model" — same meaning, in a form the checker accepts. The targeted test passes locally:

    go test ./internal/defaults/ -run TestEveryDocumentationLinkResolves -count=1
    ok  github.com/developing-today/code/pkgs/mcpx/internal/defaults 0.151s
    

    Full-build verification runs against main once the PR merges (the NixOS build proof that surfaced both breaks).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions