Skip to content

fix(mcpx): refresh stale vendorHash so the package (and home-manager generation) builds again (#3074) - #3088

Merged
dezren39 merged 2 commits into
mainfrom
fix/mcpx-vendor-publicsuffix
Oct 31, 2026
Merged

dezren39 merged 2 commits into
mainfrom
fix/mcpx-vendor-publicsuffix

Conversation

@dezren39

@dezren39 dezren39 commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Root cause

The #1678 elicit work (ff55530, f626032) added an import of golang.org/x/net/publicsuffix to internal/cli/elicit.go. x/net was already a required module, so go.mod/go.sum did not change — but the vendor tree did, and vendorHash in pkgs/mcpx/package.nix was never updated. Because the go-modules derivation is fixed-output, Nix kept substituting the old vendor tree by hash (its golang.org/x/net has idna but no publicsuffix), so the build failed at compile time with cannot find module providing package golang.org/x/net/publicsuffix: import lookup disabled by -mod=vendor — and with it the whole home-manager generation (#3074).

What changed (pkgs/mcpx/package.nix only; go.mod/go.sum untouched)

  • Commit 1: vendorHash sha256-B962TunDKasBWH+RXqvjwRRkKwUC1MtDkBEwFkWlhxA= → sha256-S5qXMMhYBghhjqQvzMARYliC9Dtvu+QJBTUsgpLl2TA=, harvested from a fresh sandbox go mod vendor run via the fakeHash mismatch. Verified beforehand: go mod tidy is a no-op on go.mod/go.sum, and a manual go mod vendor (Go 1.27.2, module cache) produces vendor/golang.org/x/net/publicsuffix and lists it in modules.txt — the metadata was complete; only the hash was stale.
  • Commit 2 (separable): interim-exclude examples from the sandbox check phase, same pattern as the existing internal/conformance / internal/defaults entries. With vendoring repaired, the check phase reaches TestExamples, which fails on unmodified main — reproduced identically with a plain go test ./examples/ outside the sandbox: destructive example calls end "not confirmed: the answer was cancel" under the mcpx: Phase 3 of #1675 — review-first mcpx elicit surface + nix#255 truth-up #1678 confirmation flow. That failure is tracked as mcpx: e2e/examples cluster fails with 'may be destructive and was not confirmed' under the PR #2888 sharded suite — main's suite state is masked by #2795 #2896; this exclusion should be removed when it lands. Shout if you'd rather this commit ride separately.

Verification (laptop, this branch)

Fixes #3074. Refs #2896.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

…suffix import (#3074)

The #1678 elicit work (ff55530, f626032) added an import of
golang.org/x/net/publicsuffix to internal/cli/elicit.go. x/net was
already a required module, so go.mod/go.sum did not change — but the
vendor tree did, and vendorHash was never updated. The fixed-output
go-modules derivation kept substituting the old tree by hash, so the
build failed with: cannot find module providing package
golang.org/x/net/publicsuffix: import lookup disabled by -mod=vendor.

Verified: go mod tidy is a no-op on go.mod/go.sum, a fresh go mod
vendor includes publicsuffix, and the hash below is the one the
sandbox vendor run produces.
With vendoring repaired the check phase reaches TestExamples, which
fails on unmodified main — in the sandbox and under a plain go test
alike: destructive example calls are never confirmed since the #1678
confirmation flow (tracked as #2896). Same interim pattern as the
internal/conformance and internal/defaults exclusions above: the OS
deploy is not the gate for that desync. Remove when #2896 lands.
@dezren39
dezren39 requested a review from a team as a code owner October 31, 2026 14:15
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T14:16:50.768672Z 52e2316 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 31, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 28 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 58f5faa8-1ffa-448f-be42-01fca7122387
Commits

Reviewing files that changed from the base of the PR and between 43d7d4d and 52e2316.

Files selected for processing: 1
  • pkgs/mcpx/package.nix
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit 33b6cb3 into main Oct 31, 2026
8 checks passed
@dezren39
dezren39 deleted the fix/mcpx-vendor-publicsuffix branch October 31, 2026 14:16
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.

mcpx package fails to build at main HEAD — vendored module gap (golang.org/x/net/publicsuffix) blocks home-manager generation

1 participant