From 7265cf18eb8ccfc44ebc99c581ca5068febbd77d Mon Sep 17 00:00:00 2001 From: Ricardo Guilherme Schmidt <3esmit@gmail.com> Date: Wed, 15 Jul 2026 18:15:01 -0300 Subject: [PATCH] fix(amm-ui): pin standalone client input --- apps/amm/MACOS.md | 7 ++++--- apps/amm/flake.lock | 26 ++++++++++++++------------ apps/amm/flake.nix | 5 ++++- 3 files changed, 22 insertions(+), 16 deletions(-) diff --git a/apps/amm/MACOS.md b/apps/amm/MACOS.md index 27b585c..82dcc8a 100644 --- a/apps/amm/MACOS.md +++ b/apps/amm/MACOS.md @@ -82,10 +82,11 @@ nix-store --gc Do not remove `/nix/store` directly. -### A local flake lock error mentions an unlocked `amm_client` input +### A flake lock error mentions an unlocked input -The committed `flake.lock` includes a hash for the repository-local client -input. Restore that file if a local experiment replaced it, then retry: +The committed `flake.lock` pins the AMM client to the PR branch and hashes the +local shared-wallet source. Restore that file if a local experiment replaced +it, then retry: ```sh git restore flake.lock diff --git a/apps/amm/flake.lock b/apps/amm/flake.lock index ee067f5..c2eef62 100644 --- a/apps/amm/flake.lock +++ b/apps/amm/flake.lock @@ -6,16 +6,19 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1784149231, - "narHash": "sha256-C2Z0t4FNq0tLlFosZ6/HNYoq2jqSkEJeytObS3I/MPA=", - "path": "../..", - "type": "path" + "lastModified": 1784138901, + "narHash": "sha256-kqLqwQiTpc1Lj8RGz2EIWpFx2rPOBwXaMzwsByYx38o=", + "owner": "logos-blockchain", + "repo": "lez-programs", + "rev": "ca0b67db08f19da01154a481017fc95d230516ae", + "type": "github" }, "original": { - "path": "../..", - "type": "path" - }, - "parent": [] + "owner": "logos-blockchain", + "ref": "feat/amm-pool-creation", + "repo": "lez-programs", + "type": "github" + } }, "crane": { "locked": { @@ -26903,16 +26906,15 @@ "shared_wallet": { "flake": false, "locked": { - "lastModified": 1784149231, - "narHash": "sha256-yhF0x6BrOn3IvffBq+jjnwfDWKK0NrMV7iFsHvCvqc8=", + "lastModified": 1, + "narHash": "sha256-m7PiWaU5Beio+XeJP6Tz7JFUq8PZZJvcZrmKwShekTY=", "path": "../shared/wallet", "type": "path" }, "original": { "path": "../shared/wallet", "type": "path" - }, - "parent": [] + } } }, "root": "root", diff --git a/apps/amm/flake.nix b/apps/amm/flake.nix index c1ad4d0..356f3ff 100644 --- a/apps/amm/flake.nix +++ b/apps/amm/flake.nix @@ -14,7 +14,10 @@ # deployed program ID and keeps the `logos_execution_zone` module identity. logos_execution_zone.url = "github:logos-blockchain/logos-execution-zone-module?rev=d70225ced646934d2294fd9e8f8b03615c104b80"; - amm_client.url = "path:../.."; + # A path input to the repository contains this flake.lock, which makes + # its lock hash self-referential. Pin the client to this PR's remote + # branch instead so a fresh clone can evaluate the flake reproducibly. + amm_client.url = "github:logos-blockchain/lez-programs/feat/amm-pool-creation"; }; outputs = inputs@{ logos-module-builder, shared_wallet, ... }: