fix(deps): update module github.com/michaelkinsy/pig/extensions/sdk to v0.9.0 #16

Open
renovate-bot wants to merge 1 commit from renovate/github.com-michaelkinsy-pig-extensions-sdk-0.x into main
Collaborator

This PR contains the following updates:

Package Change Age Confidence
github.com/MichaelKinsy/PiG/extensions/sdk v0.8.0 → v0.9.0 age confidence

⚠️ Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

MichaelKinsy/PiG (github.com/MichaelKinsy/PiG/extensions/sdk)

v0.9.0

Compare Source

PiG 0.9.0

image

PiG 0.9.0 is a Pi-catch-up, fix, extension-SDK and MCP OAuth release. It follows Pi 1.7.0 (fb0fe823), advancing from the prior Pi pin shipped in PiG 0.8.0. It follows PiG 0.8.0, with 24 additions, 9 changes and 54 recorded fixes in CHANGELOG.md (54 bug-fix ledger entries with fixedIn: 0.9.0: 49 PiG defects and 5 Pi fixes ported). Install it with go install github.com/MichaelKinsy/PiG/cmd/pig@latest or npm i -g @pi-in-go/pig, or download the pig, pig-standard or pig-acp archives attached to this release.

PiG is a faithful Go implementation of Pi, the reference implementation. Pi's behavior is the contract, and every place PiG differs is a numbered divergence. PiG is not an official Pi project, and Pi's maintainers have not endorsed it. It was created by Michael Kinsy and originally developed at Hewlett Packard Enterprise.

This is a minor release because it catches up to Pi 1.7.0 (including pi-image, Chord Protocol v2, --agent-dir, and removal of install telemetry), adds Microsoft Entra multi-tenant MCP OAuth discovery (D662/D663), adds opt-in Tier B derivative-harness hooks (D91, D664, D665), and removes deprecated chord/sync epochs, durable nested park structs, and Chord v1 variants. Read "Upgrading" before you update Go code or rebuild extensions.

Thanks

This release includes fixes driven by your reports:

  • @​jihongwei reported #​575, where resuming a JSONL session with large custom entries eagerly retained raw lines and decoded payloads on the heap and could OOM.
  • @​zochari reported #​588, where native-SDK custom editors that delegate to the host editor dropped the / slash-command autocomplete dropdown.
  • @​xinaps-dev reported #​567, where a live kit.Loader returned from a custom entry, message or tool view renderer stayed frozen on its first frame inside a caching transcript container.
  • @​edersohe reported #​260 (model list parity; the final bundled catalog alignment and dynamic Radius classifier/image catalogs close out the remaining gap).

Fixes for reported issues

  • #​575. Opening a file-backed v3 session now indexes custom and branch_summary entries lazily by file offset, length, hash and base metadata instead of eagerly decoding and retaining both the raw JSONL line and decoded payload on the heap. Standard-shaped oversized custom lines (>4 MiB) stream in constant memory without buffering the whole line, and redundant raw JSON copies are stripped from canonical resident entries.
  • #​588. Native-SDK custom editors (ctx.SetEditorComponent in Go, Python, Rust and Common Lisp) that delegate to the host editor now flush and refresh slash-command autocomplete when typing / and complete on Tab, instead of dropping queued flushes under Editor.forwards().
  • #​567. A live kit.Loader returned from an EntryViewRenderer, MessageViewRenderer or ToolViewRenderer now animates inside a caching transcript container instead of staying frozen on its first frame.
  • 0.8.0 deferred fixes (both resolved). RPC extension UI reply ordering now waits off the read loop until the originating command batch's replies are written (matching Pi's microtask ordering without deadlocking), and extension-installed editor slash completion races are resolved.
  • Safety and resilience. Evicted history chunk reloads validate each record length before narrowing to uint32 (preventing oversized-record wraparound). Temp-file open/write/close failures in bash tool output, ! shell execution, external editor launch and TUI crash logging no longer crash or drop output, and surface FullOutputError / full_output_error across sessions, RPC and all four SDKs.

Pi 1.7.0 catch-up

PiG 0.9.0 pins Pi 1.7.0 (fb0fe823).

  • Images, classifiers and providers. Adds the pi-image API (ai.GenerateImages, PiImageRequest, PiImageResponse) with Usage.ImageOutput / ModelCost.ImageOutput pricing across Go, Python, Rust and Common Lisp SDKs. Adds the pi-decision classifier API (ClassifyPiDecision) and ClassifierResult.ResponseID. Adds dynamic Radius gateway image and decision catalogs, xhigh thinking on Gemini 4 Hydrogen and Neon, GitHub Copilot gpt-6-luna-decisions and reasoning_opaque replay with prompt-cache preservation across effort/tool changes, and Bedrock Kimi K3 / GLM 5.3 updates.
  • CLI, terminal and Program Resume (OSC 7577). Adds --agent-dir <dir> (applied before subcommands and carried into resume commands). Adds Program Resume via OSC 7577: in terminals setting OSC7577_TOKEN, interactive mode reports the session resume command (including restriction and resource flags) and strips OSC7577_TOKEN from child environments at startup. Adds per-notice visibility settings (notices.cacheMisses, notices.cacheWarming, notices.compactionCosts, notices.reasoningDrops) under Notices in /settings, BlockedKind (permission, question, auth) on OSC 7501 dialogs, and removes install telemetry reporting (/api/report-install, enableInstallTelemetry, PI_TELEMETRY / PIG_TELEMETRY).
  • Chord Protocol v2 and Durable. Ports Chord Protocol v2 (ProtocolVersion = 2) with grantable state, admit/allow/deny, Bound.Granted, Self.Follow, TuiScope.Live, Plugins.Apply/ApplyWith, commit-indexed shared live reads, and FileSystemSyncRemote. Moves chord/nextnode/plugins, chord/nextnode/workers and durable to tagged unions (RolloutHost, PluginSource, SeriesResult, Compiled, ToolPark, FoundSlot, CompactionDecision, SignalState, CommitResult). Upgrades Durable's TinyGo runtime to v0.44.0.
  • MCP and auth. Exports mcp.CreateMcpResultSchema and mcp.ToMcpModelContent. Adds Microsoft Entra ID multi-tenant v2.0 OpenID discovery and RFC 9207 callback tenant-UUID matching (D662) so MCP OAuth sign-in works with Microsoft Work IQ, Fabric and Azure MCP servers, plus --oauth-auth-server-metadata-url and --oauth-scope on pig mcp add (D663). Stored auth.json !command failures now render as stored key did not resolve in /login without synchronous blocking.
  • Process cleanup. env/daemon now tears down every process in a terminal or command session across process groups on shell exit or close (pidfd on Linux, getsid on macOS/Unix), leaving detached setsid sessions untouched.

Extension SDKs & Piglets

  • Derivative-harness hooks (D91, D664, D665). Adds opt-in recursive child sessions bounded by DefaultMaxChildSessionDepth = 8, extension MCP resource host calls (ListMcpResources, ListMcpResourceTemplates, ReadMcpResource), and prompt-only token accounting (agent.CalculatePromptTokens, ContextUsageEstimate.PromptTokens). Extends the D91 frontend seam with opt-in structured transcript primitives (StructuredTranscriptSession, Toast, AssistantTurn, TurnUsage, FormCard, Env.SubmitForm, Env.Interrupt) and inline ui.formDialog / sdk.Context.FormDialog (with plain-terminal fallback). Adds opt-in tool argument hooks (PrepareArguments, PrepareArgumentsRaw, LenientValidation, IntentField, throttled OnPartialArgs previews) and Piglet manifest UX defaults (settings, themes, keybindings, ShortcutDecl.{Action,Global}).
  • Piglet builds and release archives. pig build now raises the merged go.mod go directive to the highest version required by any fused member module. pig-acp archives update to @pi-in-go/pigpen-acp 0.2.4.

Upgrading

Every breaking change and removal from 0.8.0 is listed below. Run pig extension upgrade to diagnose removed install-telemetry methods (RuleInstallTelemetryRemoved).

  • Install telemetry removed. enableInstallTelemetry, PI_TELEMETRY, PIG_TELEMETRY, PIG_INSTALL_TELEMETRY_URL, and SettingsManager.{Get,Set}EnableInstallTelemetry are removed across Go, Python, Rust and Common Lisp SDKs (Pi v1.7.0).
  • chord/sync writer epochs removed. Remove any references to StaleEpoch, PutStaleEpoch, UploadResult.Epoch, UploadOptions.Epoch, PutBatchResult.Epoch and PutBatchOptions.Epoch (retired upstream).
  • Chord v1 variants removed. variants / useVariant APIs are replaced by Chord Protocol v2 grantable / admit / useLive.
  • Tagged unions in chord/nextnode and durable. durable.ToolParkSleep and durable.ToolParkWait are now ToolParkKind constants on flat durable.ToolPark; harness.CompactionDecision.Decline is replaced by Kind == CompactionDecline and Summary string; SubmitIn methods on durable.ConversationHandle, durable/harness and durable/core/driver are renamed to Admit. RolloutHostKind string values change to "reloaded" / "failed" and worker reload failures send FromWorkerReloadFailed.
  • Deprecations. showCacheMissNotices and SettingsManager.{Get,Set}ShowCacheMissNotices are deprecated in favor of notices.* (SettingsManager.GetNotices / SetNotice); coding/mcpext.{CreateMcpResultSchema,ToModelContent} are deprecated in favor of mcp.{CreateMcpResultSchema,ToMcpModelContent}.

Known differences

Every intentional difference between PiG and Pi is tracked as a numbered divergence record in docs/parity/DIVERGENCES.md (214 files under docs/parity/divergences/) and additive PiG features in docs/additive-features.md. This release adds D662 (Microsoft Entra multi-tenant v2.0 MCP OAuth discovery and RFC 9207 callback matching) and additive records D663, D664 and D665.

Parity inventories at Pi 1.7.0: 1,064 / 1,067 intended-portable monorepo files ported (99.7%; 544 / 545 across the four core packages, 99.8%), 1,060 upstream test files ported (0 partial, 0 pending), and 15,593 / 15,593 semantic interface IDs closed (0 gaps).

Full changelog

See CHANGELOG.md (0.9.0 section).


Configuration

📅 Schedule: (in timezone Europe/London)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [github.com/MichaelKinsy/PiG/extensions/sdk](https://github.com/MichaelKinsy/PiG) | `v0.8.0` → `v0.9.0` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fMichaelKinsy%2fPiG%2fextensions%2fsdk/v0.9.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fMichaelKinsy%2fPiG%2fextensions%2fsdk/v0.8.0/v0.9.0?slim=true) | --- > ⚠️ **Warning** > > Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/12) for more information. --- ### Release Notes <details> <summary>MichaelKinsy/PiG (github.com/MichaelKinsy/PiG/extensions/sdk)</summary> ### [`v0.9.0`](https://github.com/MichaelKinsy/PiG/releases/tag/v0.9.0) [Compare Source](https://github.com/MichaelKinsy/PiG/compare/v0.8.0...v0.9.0) ### PiG 0.9.0 <img width="1376" height="768" alt="image" src="https://github.com/user-attachments/assets/55506b2a-d6ba-4f6f-8f74-dd66a2e553d5" /> PiG 0.9.0 is a Pi-catch-up, fix, extension-SDK and MCP OAuth release. It follows Pi 1.7.0 (`fb0fe823`), advancing from the prior Pi pin shipped in PiG 0.8.0. It follows PiG 0.8.0, with 24 additions, 9 changes and 54 recorded fixes in `CHANGELOG.md` (54 bug-fix ledger entries with `fixedIn: 0.9.0`: 49 PiG defects and 5 Pi fixes ported). Install it with `go install github.com/MichaelKinsy/PiG/cmd/pig@latest` or `npm i -g @pi-in-go/pig`, or download the `pig`, `pig-standard` or `pig-acp` archives attached to this release. PiG is a faithful Go implementation of [Pi](https://github.com/earendil-works/pi), the reference implementation. Pi's behavior is the contract, and every place PiG differs is a numbered divergence. PiG is not an official Pi project, and Pi's maintainers have not endorsed it. It was created by Michael Kinsy and originally developed at Hewlett Packard Enterprise. This is a minor release because it catches up to Pi 1.7.0 (including `pi-image`, Chord Protocol v2, `--agent-dir`, and removal of install telemetry), adds Microsoft Entra multi-tenant MCP OAuth discovery (`D662`/`D663`), adds opt-in Tier B derivative-harness hooks (`D91`, `D664`, `D665`), and removes deprecated `chord/sync` epochs, `durable` nested park structs, and Chord v1 `variants`. Read "Upgrading" before you update Go code or rebuild extensions. #### Thanks This release includes fixes driven by your reports: - [@&#8203;jihongwei](https://github.com/jihongwei) reported [#&#8203;575](https://github.com/MichaelKinsy/PiG/issues/575), where resuming a JSONL session with large custom entries eagerly retained raw lines and decoded payloads on the heap and could OOM. - [@&#8203;zochari](https://github.com/zochari) reported [#&#8203;588](https://github.com/MichaelKinsy/PiG/issues/588), where native-SDK custom editors that delegate to the host editor dropped the `/` slash-command autocomplete dropdown. - [@&#8203;xinaps-dev](https://github.com/xinaps-dev) reported [#&#8203;567](https://github.com/MichaelKinsy/PiG/issues/567), where a live `kit.Loader` returned from a custom entry, message or tool view renderer stayed frozen on its first frame inside a caching transcript container. - [@&#8203;edersohe](https://github.com/edersohe) reported [#&#8203;260](https://github.com/MichaelKinsy/PiG/issues/260) (model list parity; the final bundled catalog alignment and dynamic Radius classifier/image catalogs close out the remaining gap). #### Fixes for reported issues - **[#&#8203;575](https://github.com/MichaelKinsy/PiG/issues/575).** Opening a file-backed v3 session now indexes `custom` and `branch_summary` entries lazily by file offset, length, hash and base metadata instead of eagerly decoding and retaining both the raw JSONL line and decoded payload on the heap. Standard-shaped oversized `custom` lines (>4 MiB) stream in constant memory without buffering the whole line, and redundant raw JSON copies are stripped from canonical resident entries. - **[#&#8203;588](https://github.com/MichaelKinsy/PiG/issues/588).** Native-SDK custom editors (`ctx.SetEditorComponent` in Go, Python, Rust and Common Lisp) that delegate to the host editor now flush and refresh slash-command autocomplete when typing `/` and complete on `Tab`, instead of dropping queued flushes under `Editor.forwards()`. - **[#&#8203;567](https://github.com/MichaelKinsy/PiG/issues/567).** A live `kit.Loader` returned from an `EntryViewRenderer`, `MessageViewRenderer` or `ToolViewRenderer` now animates inside a caching transcript container instead of staying frozen on its first frame. - **0.8.0 deferred fixes (both resolved).** RPC extension UI reply ordering now waits off the read loop until the originating command batch's replies are written (matching Pi's microtask ordering without deadlocking), and extension-installed editor slash completion races are resolved. - **Safety and resilience.** Evicted history chunk reloads validate each record length before narrowing to `uint32` (preventing oversized-record wraparound). Temp-file open/write/close failures in bash tool output, `!` shell execution, external editor launch and TUI crash logging no longer crash or drop output, and surface `FullOutputError` / `full_output_error` across sessions, RPC and all four SDKs. #### Pi 1.7.0 catch-up PiG 0.9.0 pins Pi 1.7.0 (`fb0fe823`). - **Images, classifiers and providers.** Adds the `pi-image` API (`ai.GenerateImages`, `PiImageRequest`, `PiImageResponse`) with `Usage.ImageOutput` / `ModelCost.ImageOutput` pricing across Go, Python, Rust and Common Lisp SDKs. Adds the `pi-decision` classifier API (`ClassifyPiDecision`) and `ClassifierResult.ResponseID`. Adds dynamic Radius gateway `image` and `decision` catalogs, `xhigh` thinking on Gemini 4 Hydrogen and Neon, GitHub Copilot `gpt-6-luna-decisions` and `reasoning_opaque` replay with prompt-cache preservation across effort/tool changes, and Bedrock Kimi K3 / GLM 5.3 updates. - **CLI, terminal and Program Resume (OSC 7577).** Adds `--agent-dir <dir>` (applied before subcommands and carried into resume commands). Adds Program Resume via OSC 7577: in terminals setting `OSC7577_TOKEN`, interactive mode reports the session resume command (including restriction and resource flags) and strips `OSC7577_TOKEN` from child environments at startup. Adds per-notice visibility settings (`notices.cacheMisses`, `notices.cacheWarming`, `notices.compactionCosts`, `notices.reasoningDrops`) under Notices in `/settings`, `BlockedKind` (`permission`, `question`, `auth`) on OSC 7501 dialogs, and removes install telemetry reporting (`/api/report-install`, `enableInstallTelemetry`, `PI_TELEMETRY` / `PIG_TELEMETRY`). - **Chord Protocol v2 and Durable.** Ports Chord Protocol v2 (`ProtocolVersion = 2`) with `grantable` state, `admit`/`allow`/`deny`, `Bound.Granted`, `Self.Follow`, `TuiScope.Live`, `Plugins.Apply`/`ApplyWith`, commit-indexed shared live reads, and `FileSystemSyncRemote`. Moves `chord/nextnode/plugins`, `chord/nextnode/workers` and `durable` to tagged unions (`RolloutHost`, `PluginSource`, `SeriesResult`, `Compiled`, `ToolPark`, `FoundSlot`, `CompactionDecision`, `SignalState`, `CommitResult`). Upgrades Durable's TinyGo runtime to v0.44.0. - **MCP and auth.** Exports `mcp.CreateMcpResultSchema` and `mcp.ToMcpModelContent`. Adds Microsoft Entra ID multi-tenant v2.0 OpenID discovery and RFC 9207 callback tenant-UUID matching (`D662`) so MCP OAuth sign-in works with Microsoft Work IQ, Fabric and Azure MCP servers, plus `--oauth-auth-server-metadata-url` and `--oauth-scope` on `pig mcp add` (`D663`). Stored `auth.json` `!command` failures now render as `stored key did not resolve` in `/login` without synchronous blocking. - **Process cleanup.** `env/daemon` now tears down every process in a terminal or command session across process groups on shell exit or close (`pidfd` on Linux, `getsid` on macOS/Unix), leaving detached `setsid` sessions untouched. #### Extension SDKs & Piglets - **Derivative-harness hooks (`D91`, `D664`, `D665`).** Adds opt-in recursive child sessions bounded by `DefaultMaxChildSessionDepth = 8`, extension MCP resource host calls (`ListMcpResources`, `ListMcpResourceTemplates`, `ReadMcpResource`), and prompt-only token accounting (`agent.CalculatePromptTokens`, `ContextUsageEstimate.PromptTokens`). Extends the `D91` frontend seam with opt-in structured transcript primitives (`StructuredTranscriptSession`, `Toast`, `AssistantTurn`, `TurnUsage`, `FormCard`, `Env.SubmitForm`, `Env.Interrupt`) and inline `ui.formDialog` / `sdk.Context.FormDialog` (with plain-terminal fallback). Adds opt-in tool argument hooks (`PrepareArguments`, `PrepareArgumentsRaw`, `LenientValidation`, `IntentField`, throttled `OnPartialArgs` previews) and Piglet manifest UX defaults (`settings`, `themes`, `keybindings`, `ShortcutDecl.{Action,Global}`). - **Piglet builds and release archives.** `pig build` now raises the merged `go.mod` `go` directive to the highest version required by any fused member module. `pig-acp` archives update to `@pi-in-go/pigpen-acp` `0.2.4`. #### Upgrading Every breaking change and removal from 0.8.0 is listed below. Run `pig extension upgrade` to diagnose removed install-telemetry methods (`RuleInstallTelemetryRemoved`). - **Install telemetry removed.** `enableInstallTelemetry`, `PI_TELEMETRY`, `PIG_TELEMETRY`, `PIG_INSTALL_TELEMETRY_URL`, and `SettingsManager.{Get,Set}EnableInstallTelemetry` are removed across Go, Python, Rust and Common Lisp SDKs (Pi v1.7.0). - **`chord/sync` writer epochs removed.** Remove any references to `StaleEpoch`, `PutStaleEpoch`, `UploadResult.Epoch`, `UploadOptions.Epoch`, `PutBatchResult.Epoch` and `PutBatchOptions.Epoch` (retired upstream). - **Chord v1 `variants` removed.** `variants` / `useVariant` APIs are replaced by Chord Protocol v2 `grantable` / `admit` / `useLive`. - **Tagged unions in `chord/nextnode` and `durable`.** `durable.ToolParkSleep` and `durable.ToolParkWait` are now `ToolParkKind` constants on flat `durable.ToolPark`; `harness.CompactionDecision.Decline` is replaced by `Kind == CompactionDecline` and `Summary string`; `SubmitIn` methods on `durable.ConversationHandle`, `durable/harness` and `durable/core/driver` are renamed to `Admit`. `RolloutHostKind` string values change to `"reloaded"` / `"failed"` and worker reload failures send `FromWorkerReloadFailed`. - **Deprecations.** `showCacheMissNotices` and `SettingsManager.{Get,Set}ShowCacheMissNotices` are deprecated in favor of `notices.*` (`SettingsManager.GetNotices` / `SetNotice`); `coding/mcpext.{CreateMcpResultSchema,ToModelContent}` are deprecated in favor of `mcp.{CreateMcpResultSchema,ToMcpModelContent}`. #### Known differences Every intentional difference between PiG and Pi is tracked as a numbered divergence record in [docs/parity/DIVERGENCES.md](https://github.com/MichaelKinsy/PiG/blob/v0.9.0/docs/parity/DIVERGENCES.md) (214 files under `docs/parity/divergences/`) and additive PiG features in [docs/additive-features.md](https://github.com/MichaelKinsy/PiG/blob/v0.9.0/docs/additive-features.md). This release adds `D662` (Microsoft Entra multi-tenant v2.0 MCP OAuth discovery and RFC 9207 callback matching) and additive records `D663`, `D664` and `D665`. Parity inventories at Pi 1.7.0: 1,064 / 1,067 intended-portable monorepo files ported (99.7%; 544 / 545 across the four core packages, 99.8%), 1,060 upstream test files ported (0 partial, 0 pending), and 15,593 / 15,593 semantic interface IDs closed (0 gaps). #### Full changelog See [CHANGELOG.md](https://github.com/MichaelKinsy/PiG/blob/v0.9.0/CHANGELOG.md) (0.9.0 section). </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/London) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yNDcuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjI0Ny4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZSJdfQ==-->
fix(deps): update module github.com/michaelkinsy/pig/extensions/sdk to v0.9.0
Some checks failed
Lint / fmt (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 11s
Nix / eval (pull_request) Successful in 21m1s
Nix / build (desktop) (pull_request) Failing after 8m46s
Nix / build (nas) (pull_request) Successful in 2m20s
Nix / build (vps) (pull_request) Failing after 2m32s
Nix / repair (pull_request) Successful in 58s
41b9a36120

🤖 Repair attempt

Status: invalid patch produced; no commit pushed

Attempt: 1 of 3

Summary

Update the Nix vendorHash for pig-extensions after the Go SDK dependency update.

Diagnosis

The PR updated github.com/MichaelKinsy/PiG/extensions/sdk from v0.8.0 to v0.9.0 in go.mod/go.sum, but the Nix vendorHash for pig-extensions was not updated. The build fails with a fixed-output derivation hash mismatch: expected sha256-PjLGJ8MrihWpqKpbCRLSNcMEsfNWap9Gd3gjVgZWslY=, got sha256-97AAL0unx4c4kbDW1ucth0b5yqpg4IMkvIsHTvxHSrk=.

Confidence

  • medium

Suggested fixes

modules/aspects/ai/pig/extensions/default.nix

  • lines: line containing vendorHash = (approx. 5-10)
  • location: outside_current_diff
  • problem: The vendorHash attribute still contains the old hash for SDK v0.8.0, causing a hash mismatch in the fixed-output derivation pig-extensions-0.1.0-go-modules.drv.
  • change: Replace the old vendorHash value sha256-PjLGJ8MrihWpqKpbCRLSNcMEsfNWap9Gd3gjVgZWslY= with the new hash sha256-97AAL0unx4c4kbDW1ucth0b5yqpg4IMkvIsHTvxHSrk=.
pkgs.buildGoModule {
  pname = "pig-extensions";
  version = "0.1.0";
  src = ./.;
  vendorHash = "sha256-97AAL0unx4c4kbDW1ucth0b5yqpg4IMkvIsHTvxHSrk=";
}

modules/aspects/ai/pig/default.nix

  • lines: line containing vendorHash =
  • location: outside_current_diff
  • problem: If the package definition is in the parent default.nix, the same old vendorHash is present there and must be updated.
  • change: Replace sha256-PjLGJ8MrihWpqKpbCRLSNcMEsfNWap9Gd3gjVgZWslY= with sha256-97AAL0unx4c4kbDW1ucth0b5yqpg4IMkvIsHTvxHSrk=.
pkgs.buildGoModule {
  pname = "pig-extensions";
  version = "0.1.0";
  src = ./extensions;
  vendorHash = "sha256-97AAL0unx4c4kbDW1ucth0b5yqpg4IMkvIsHTvxHSrk=";
}

Artifacts

  • repair/repair.patch
  • repair/git-apply-check.log

Note

The Go module hash changed after updating the SDK dependency. Update the vendorHash in the Nix package definition to the hash reported in the build log (sha256-97AAL0unx4c4kbDW1ucth0b5yqpg4IMkvIsHTvxHSrk=). The patch targets the most likely file modules/aspects/ai/pig/extensions/default.nix; if the definition lives in modules/aspects/ai/pig/default.nix, apply the same change there.

<!--repair:note--><!--repair:attempted--> ## 🤖 Repair attempt **Status:** invalid patch produced; no commit pushed **Attempt:** 1 of 3 ### Summary Update the Nix vendorHash for pig-extensions after the Go SDK dependency update. ### Diagnosis The PR updated `github.com/MichaelKinsy/PiG/extensions/sdk` from v0.8.0 to v0.9.0 in `go.mod`/`go.sum`, but the Nix `vendorHash` for `pig-extensions` was not updated. The build fails with a fixed-output derivation hash mismatch: expected `sha256-PjLGJ8MrihWpqKpbCRLSNcMEsfNWap9Gd3gjVgZWslY=`, got `sha256-97AAL0unx4c4kbDW1ucth0b5yqpg4IMkvIsHTvxHSrk=`. ### Confidence - `medium` ### Suggested fixes #### `modules/aspects/ai/pig/extensions/default.nix` - lines: line containing `vendorHash =` (approx. 5-10) - location: outside_current_diff - problem: The `vendorHash` attribute still contains the old hash for SDK v0.8.0, causing a hash mismatch in the fixed-output derivation `pig-extensions-0.1.0-go-modules.drv`. - change: Replace the old `vendorHash` value `sha256-PjLGJ8MrihWpqKpbCRLSNcMEsfNWap9Gd3gjVgZWslY=` with the new hash `sha256-97AAL0unx4c4kbDW1ucth0b5yqpg4IMkvIsHTvxHSrk=`. ```nix pkgs.buildGoModule { pname = "pig-extensions"; version = "0.1.0"; src = ./.; vendorHash = "sha256-97AAL0unx4c4kbDW1ucth0b5yqpg4IMkvIsHTvxHSrk="; } ``` #### `modules/aspects/ai/pig/default.nix` - lines: line containing `vendorHash =` - location: outside_current_diff - problem: If the package definition is in the parent `default.nix`, the same old `vendorHash` is present there and must be updated. - change: Replace `sha256-PjLGJ8MrihWpqKpbCRLSNcMEsfNWap9Gd3gjVgZWslY=` with `sha256-97AAL0unx4c4kbDW1ucth0b5yqpg4IMkvIsHTvxHSrk=`. ```nix pkgs.buildGoModule { pname = "pig-extensions"; version = "0.1.0"; src = ./extensions; vendorHash = "sha256-97AAL0unx4c4kbDW1ucth0b5yqpg4IMkvIsHTvxHSrk="; } ``` ### Artifacts - `repair/repair.patch` - `repair/git-apply-check.log` ### Note The Go module hash changed after updating the SDK dependency. Update the `vendorHash` in the Nix package definition to the hash reported in the build log (`sha256-97AAL0unx4c4kbDW1ucth0b5yqpg4IMkvIsHTvxHSrk=`). The patch targets the most likely file `modules/aspects/ai/pig/extensions/default.nix`; if the definition lives in `modules/aspects/ai/pig/default.nix`, apply the same change there.
Some checks failed
Lint / fmt (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 11s
Nix / eval (pull_request) Successful in 21m1s
Nix / build (desktop) (pull_request) Failing after 8m46s
Nix / build (nas) (pull_request) Successful in 2m20s
Nix / build (vps) (pull_request) Failing after 2m32s
Nix / repair (pull_request) Successful in 58s
Some required checks were not successful.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'renovate/github.com-michaelkinsy-pig-extensions-sdk-0.x:renovate/github.com-michaelkinsy-pig-extensions-sdk-0.x'
git switch 'renovate/github.com-michaelkinsy-pig-extensions-sdk-0.x'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
hmajid2301/nixicle!16
No description provided.