ITADN

False negative in duplicate input detection

#26Closedcdfa 创建于 2025-01-05
C
cdfacommented
I think I encoutered a false negative in the detection of duplicate flake inputs. `flake.lock`: ```json { "nodes": { "catppuccin": { "inputs": { "catppuccin-v1_1": "catppuccin-v1_1", "catppuccin-v1_2": "catppuccin-v1_2", "home-manager": "home-manager", "home-manager-stable": "home-manager-stable", "nixpkgs": "nixpkgs", "nixpkgs-stable": "nixpkgs-stable", "nuscht-search": "nuscht-search" }, "locked": { "lastModified": 1735263930, "narHash": "sha256-vU7SkHINr+NqmZeFLA11plsaUfazKKpdEhI/oTJbK3Q=", "owner": "catppuccin", "repo": "nix", "rev": "a2e641bc6b17129d81d54019e14c9956784c69c6", "type": "github" }, "original": { "owner": "catppuccin", "repo": "nix", "type": "github" } }, "catppuccin-v1_1": { "locked": { "lastModified": 1734055249, "narHash": "sha256-pCWJgwo77KD7EJpwynwKrWPZ//dwypHq2TfdzZWqK68=", "rev": "7221d6ca17ac36ed20588e1c3a80177ac5843fa7", "revCount": 326, "type": "tarball", "url": "https://api.flakehub.com/f/pinned/catppuccin/nix/1.1.1/0193bdc0-b045-7eed-bbec-95611a8ecdf5/source.tar.gz" }, "original": { "type": "tarball", "url": "https://flakehub.com/f/catppuccin/nix/1.1.%2A.tar.gz" } }, "catppuccin-v1_2": { "locked": { "lastModified": 1734728407, "narHash": "sha256-Let3uJo4YDyfqbqaw66dpZxhJB2TrDyZWSFd5rpPLJA=", "rev": "23ee86dbf4ed347878115a78971d43025362fab1", "revCount": 341, "type": "tarball", "url": "https://api.flakehub.com/f/pinned/catppuccin/nix/1.2.0/0193e5e0-33b7-7149-a362-bfe56b20f64e/source.tar.gz" }, "original": { "type": "tarball", "url": "https://flakehub.com/f/catppuccin/nix/1.2.%2A.tar.gz" } }, "catppuccin-vsc": { "inputs": { "nixpkgs": [ "garuda", "chaotic-nyx", "nixpkgs" ] }, "locked": { "lastModified": 1733066065, "narHash": "sha256-H4BKe79KqrbaegHR4YIjIAsY4AXzVH+MpFxJdHRzllE=", "owner": "catppuccin", "repo": "vscode", "rev": "7b0ff73aa9e9718cbe418a3f90f771aa14a655b8", "type": "github" }, "original": { "owner": "catppuccin", "repo": "vscode", "type": "github" } }, "cdfa-pkgs": { "inputs": { "nixpkgs": [ "nix-24-11" ] }, "locked": { "lastModified": 1736001112, "narHash": "sha256-mtDHC3agJcjgJlB2vQFzZaZhBrW2thh8i6mr2VFQawI=", "path": "/home/cdfa/Projects/nur-packages", "type": "path" }, "original": { "path": "/home/cdfa/Projects/nur-packages", "type": "path" } }, "chaotic-nyx": { "inputs": { "flake-schemas": "flake-schemas", "home-manager": [ "garuda", "home-manager" ], "jovian": "jovian", "nixpkgs": "nixpkgs_2" }, "locked": { "lastModified": 1732715105, "narHash": "sha256-WGf8bzwNEgbWjM9aTFv9ZCGrBQEfg0fYd4FSoVa2gDs=", "path": "/nix/store/jjvigsrjm04lfnsdkmbn4ik0z07k6jlp-source", "rev": "8f153d013632e6036e8bec6377cc5ed7d2ad14df", "type": "path" }, "original": { "id": "chaotic-nyx", "type": "indirect" } }, "devshell": { "flake": false, "locked": { "lastModified": 1728330715, "narHash": "sha256-xRJ2nPOXb//u1jaBnDP56M7v5ldavjbtR6lfGqSvcKg=", "owner": "numtide", "repo": "devshell", "rev": "dd6b80932022cea34a019e2bb32f6fa9e494dfef", "type": "github" }, "original": { "owner": "numtide", "repo": "devshell", "type": "github" } }, "flake-parts": { "inputs": { "nixpkgs-lib": [ "garuda", "chaotic-nyx", "nixpkgs" ] }, "locked": { "lastModified": 1733312601, "narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=", "owner": "hercules-ci", "repo": "flake-parts", "rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9", "type": "github" }, "original": { "owner": "hercules-ci", "repo": "flake-parts", "type": "github" } }, "flake-schemas": { "locked": { "lastModified": 1721999734, "narHash": "sha256-G5CxYeJVm4lcEtaO87LKzOsVnWeTcHGKbKxNamNWgOw=", "rev": "0a5c42297d870156d9c57d8f99e476b738dcd982", "revCount": 75, "type": "tarball", "url": "https://api.flakehub.com/f/pinned/DeterminateSystems/flake-schemas/0.1.5/0190ef2f-61e0-794b-ba14-e82f225e55e6/source.tar.gz" }, "original": { "type": "tarball", "url": "https://flakehub.com/f/DeterminateSystems/flake-schemas/%3D0.1.5.tar.gz" } }, "flake-utils": { "inputs": { "systems": "systems" }, "locked": { "lastModified": 1731533236, "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { "owner": "numtide", "repo": "flake-utils", "type": "github" } }, "garuda": { "inputs": { "catppuccin": "catppuccin", "catppuccin-vsc": "catppuccin-vsc", "chaotic-nyx": "chaotic-nyx", "devshell": "devshell", "flake-parts": "flake-parts", "home-manager": "home-manager_2", "nix-index-database": "nix-index-database", "nixpkgs": [ "garuda", "chaotic-nyx", "nixpkgs" ], "pre-commit-hooks": "pre-commit-hooks" }, "locked": { "lastModified": 1735362150, "narHash": "sha256-389704LsqfmGM8Hqx3xZHVW7rXQJGovIEwFl9X0GpXw=", "owner": "garuda-linux", "repo": "garuda-nix-subsystem", "rev": "8c8ae475bf2600012e67be7188522671694d48fc", "type": "gitlab" }, "original": { "owner": "garuda-linux", "ref": "stable", "repo": "garuda-nix-subsystem", "type": "gitlab" } }, "gitignore": { "inputs": { "nixpkgs": [ "garuda", "pre-commit-hooks", "nixpkgs" ] }, "locked": { "lastModified": 1709087332, "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=", "owner": "hercules-ci", "repo": "gitignore.nix", "rev": "637db329424fd7e46cf4185293b9cc8c88c95394", "type": "github" }, "original": { "owner": "hercules-ci", "repo": "gitignore.nix", "type": "github" } }, "home-manager": { "inputs": { "nixpkgs": [ "garuda", "catppuccin", "nixpkgs" ] }, "locked": { "lastModified": 1734622215, "narHash": "sha256-OOfI0XhSJGHblfdNDhfnn8QnZxng63rWk9eeJ2tCbiI=", "owner": "nix-community", "repo": "home-manager", "rev": "1395379a7a36e40f2a76e7b9936cc52950baa1be", "type": "github" }, "original": { "owner": "nix-community", "repo": "home-manager", "type": "github" } }, "home-manager-stable": { "inputs": { "nixpkgs": [ "garuda", "catppuccin", "nixpkgs-stable" ] }, "locked": { "lastModified": 1734366194, "narHash": "sha256-vykpJ1xsdkv0j8WOVXrRFHUAdp9NXHpxdnn1F4pYgSw=", "owner": "nix-community", "repo": "home-manager", "rev": "80b0fdf483c5d1cb75aaad909bd390d48673857f", "type": "github" }, "original": { "owner": "nix-community", "ref": "release-24.11", "repo": "home-manager", "type": "github" } }, "home-manager_2": { "inputs": { "nixpkgs": [ "garuda", "chaotic-nyx", "nixpkgs" ] }, "locked": { "lastModified": 1735343815, "narHash": "sha256-p7IJP/97zJda/wwCn1T2LJBz4olF5LjNf4uwhuyvARo=", "owner": "nix-community", "repo": "home-manager", "rev": "b7a7cd5dd1a74a9fe86ed4e016f91c78483b527a", "type": "github" }, "original": { "owner": "nix-community", "ref": "master", "repo": "home-manager", "type": "github" } }, "ixx": { "inputs": { "flake-utils": [ "garuda", "catppuccin", "nuscht-search", "flake-utils" ], "nixpkgs": [ "garuda", "catppuccin", "nuscht-search", "nixpkgs" ] }, "locked": { "lastModified": 1729958008, "narHash": "sha256-EiOq8jF4Z/zQe0QYVc3+qSKxRK//CFHMB84aYrYGwEs=", "owner": "NuschtOS", "repo": "ixx", "rev": "9fd01aad037f345350eab2cd45e1946cc66da4eb", "type": "github" }, "original": { "owner": "NuschtOS", "ref": "v0.0.6", "repo": "ixx", "type": "github" } }, "jovian": { "inputs": { "nix-github-actions": "nix-github-actions", "nixpkgs": [ "garuda", "chaotic-nyx", "nixpkgs" ] }, "locked": { "lastModified": 1734725857, "narHash": "sha256-bivlV9l/UjMtTfz/CZaoNJ5RfH2Lre4P9Ds64conoUQ=", "owner": "Jovian-Experiments", "repo": "Jovian-NixOS", "rev": "dbae2fd6adaf34c947d310bec08deac7c4ed265b", "type": "github" }, "original": { "owner": "Jovian-Experiments", "repo": "Jovian-NixOS", "type": "github" } }, "nix-24-11": { "locked": { "lastModified": 1735264675, "narHash": "sha256-MgdXpeX2GuJbtlBrH9EdsUeWl/yXEubyvxM1G+yO4Ak=", "owner": "NixOS", "repo": "nixpkgs", "rev": "d49da4c08359e3c39c4e27c74ac7ac9b70085966", "type": "github" }, "original": { "owner": "NixOS", "ref": "nixos-24.11", "repo": "nixpkgs", "type": "github" } }, "nix-github-actions": { "inputs": { "nixpkgs": [ "garuda", "chaotic-nyx", "jovian", "nixpkgs" ] }, "locked": { "lastModified": 1729697500, "narHash": "sha256-VFTWrbzDlZyFHHb1AlKRiD/qqCJIripXKiCSFS8fAOY=", "owner": "zhaofengli", "repo": "nix-github-actions", "rev": "e418aeb728b6aa5ca8c5c71974e7159c2df1d8cf", "type": "github" }, "original": { "owner": "zhaofengli", "ref": "matrix-name", "repo": "nix-github-actions", "type": "github" } }, "nix-index-database": { "inputs": { "nixpkgs": [ "garuda", "chaotic-nyx", "nixpkgs" ] }, "locked": { "lastModified": 1735222882, "narHash": "sha256-kWNi45/mRjQMG+UpaZQ7KyPavYrKfle3WgLn9YeBBVg=", "owner": "nix-community", "repo": "nix-index-database", "rev": "7e3246f6ad43b44bc1c16d580d7bf6467f971530", "type": "github" }, "original": { "owner": "nix-community", "repo": "nix-index-database", "type": "github" } }, "nixos-hardware": { "locked": { "lastModified": 1735388221, "narHash": "sha256-e5IOgjQf0SZcFCEV/gMGrsI0gCJyqOKShBQU0iiM3Kg=", "owner": "NixOS", "repo": "nixos-hardware", "rev": "7c674c6734f61157e321db595dbfcd8523e04e19", "type": "github" }, "original": { "owner": "NixOS", "ref": "master", "repo": "nixos-hardware", "type": "github" } }, "nixpkgs": { "locked": { "lastModified": 1734424634, "narHash": "sha256-cHar1vqHOOyC7f1+tVycPoWTfKIaqkoe1Q6TnKzuti4=", "owner": "NixOS", "repo": "nixpkgs", "rev": "d3c42f187194c26d9f0309a8ecc469d6c878ce33", "type": "github" }, "original": { "owner": "NixOS", "ref": "nixos-unstable", "repo": "nixpkgs", "type": "github" } }, "nixpkgs-stable": { "locked": { "lastModified": 1734600368, "narHash": "sha256-nbG9TijTMcfr+au7ZVbKpAhMJzzE2nQBYmRvSdXUD8g=", "owner": "NixOS", "repo": "nixpkgs", "rev": "b47fd6fa00c6afca88b8ee46cfdb00e104f50bca", "type": "github" }, "original": { "owner": "NixOS", "ref": "nixos-24.11", "repo": "nixpkgs", "type": "github" } }, "nixpkgs_2": { "locked": { "lastModified": 1734649271, "narHash": "sha256-4EVBRhOjMDuGtMaofAIqzJbg4Ql7Ai0PSeuVZTHjyKQ=", "owner": "NixOS", "repo": "nixpkgs", "rev": "d70bd19e0a38ad4790d3913bf08fcbfc9eeca507", "type": "github" }, "original": { "owner": "NixOS", "ref": "nixos-unstable", "repo": "nixpkgs", "type": "github" } }, "nur": { "inputs": { "flake-parts": [ "garuda", "flake-parts" ], "nixpkgs": [ "nix-24-11" ], "treefmt-nix": "treefmt-nix" }, "locked": { "lastModified": 1735390986, "narHash": "sha256-ifg4DoxYOtECFXlQYFUAdBpfoS2E66uD/vMHRYet5So=", "owner": "nix-community", "repo": "NUR", "rev": "932726312a5243f148fb3795975b430041dbc2e5", "type": "github" }, "original": { "owner": "nix-community", "repo": "NUR", "type": "github" } }, "nuscht-search": { "inputs": { "flake-utils": "flake-utils", "ixx": "ixx", "nixpkgs": [ "garuda", "catppuccin", "nixpkgs" ] }, "locked": { "lastModified": 1733773348, "narHash": "sha256-Y47y+LesOCkJaLvj+dI/Oa6FAKj/T9sKVKDXLNsViPw=", "owner": "NuschtOS", "repo": "search", "rev": "3051be7f403bff1d1d380e4612f0c70675b44fc9", "type": "github" }, "original": { "owner": "NuschtOS", "repo": "search", "type": "github" } }, "pre-commit-hooks": { "inputs": { "flake-compat": [ "garuda", "chaotic-nyx", "nixpkgs" ], "gitignore": "gitignore", "nixpkgs": [ "garuda", "chaotic-nyx", "nixpkgs" ], "nixpkgs-stable": [ "garuda", "chaotic-nyx", "nixpkgs" ] }, "locked": { "lastModified": 1734797603, "narHash": "sha256-ulZN7ps8nBV31SE+dwkDvKIzvN6hroRY8sYOT0w+E28=", "owner": "cachix", "repo": "pre-commit-hooks.nix", "rev": "f0f0dc4920a903c3e08f5bdb9246bb572fcae498", "type": "github" }, "original": { "owner": "cachix", "repo": "pre-commit-hooks.nix", "type": "github" } }, "root": { "inputs": { "cdfa-pkgs": "cdfa-pkgs", "garuda": "garuda", "nix-24-11": "nix-24-11", "nixos-hardware": "nixos-hardware", "nur": "nur" } }, "systems": { "locked": { "lastModified": 1681028828, "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", "owner": "nix-systems", "repo": "default", "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", "type": "github" }, "original": { "owner": "nix-systems", "repo": "default", "type": "github" } }, "treefmt-nix": { "inputs": { "nixpkgs": [ "nur", "nixpkgs" ] }, "locked": { "lastModified": 1733222881, "narHash": "sha256-JIPcz1PrpXUCbaccEnrcUS8jjEb/1vJbZz5KkobyFdM=", "owner": "numtide", "repo": "treefmt-nix", "rev": "49717b5af6f80172275d47a418c9719a31a78b53", "type": "github" }, "original": { "owner": "numtide", "repo": "treefmt-nix", "type": "github" } } }, "root": "root", "version": 7 } ``` Output of `nix run github:fzakaria/nix-auto-follow --no-write-lock-file -- -c`: ``` warning: not writing modified lock file of flake 'github:fzakaria/nix-auto-follow': • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/05405724efa137a0b899cce5ab4dde463b4fd30b?narHash=sha256-VEdJmVU2eLFtLqCjTYJd1J7%2BGo8idAcZoT11IewFiRg%3D' (2024-08-01) → 'github:NixOS/nixpkgs/d29ab98cd4a70a387b8ceea3e930b3340d41ac5a?narHash=sha256-vk0xwGZSlvZ/596yxOtsk4gxsIx2VemzdjiU8zhjgWw%3D' (2025-01-03) Node catppuccin has input home-manager pointing to home-manager which is not the same as garuda's home-manager which is home-manager_2 in the lockfile. Please add 'home-manager.url = "github:nix-community/home-manager"' or 'home-manager.url = "github:nix-community/home-manager/master' ``` There are multiple `nixpkgs` in the lock file, but `nix-auto-follow` does not mention it.
关闭于 2025-01-07 0 条评论