digitallyinduced / ihp

🔥 The fastest way to build type safe web apps. IHP is a new batteries-included web framework optimized for longterm productivity and programmer happiness

Home Page:https://ihp.digitallyinduced.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error: found circular import of flake 'github:digitallyinduced/ihp/v1.2'

geofflangenderfer opened this issue · comments

context: I tried to update from 1.1 -> 1.2:

diff --git a/flake.nix b/flake.nix
index 2a8a023..fac2f4a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,6 +1,6 @@
 {
     inputs = {
-        ihp.url = "github:digitallyinduced/ihp/v1.1";
+        ihp.url = "github:digitallyinduced/ihp/v1.2";
         nixpkgs.follows = "ihp/nixpkgs";
         flake-parts.follows = "ihp/flake-parts";
         devenv.follows = "ihp/devenv";
❯ direnv reload
direnv: loading ~/example.co/.envrc
direnv: loading https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc (sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8=)
direnv: using flake . --impure --accept-flake-config
warning: Git tree '/home/g/example.co' is dirty
error:
       … while updating the lock file of flake 'git+file:///home/g/example.co'

       … while updating the flake input 'ihp'

       … while updating the flake input 'ihp/ihp-boilerplate'

       … while updating the flake input 'ihp/ihp-boilerplate/ihp'

       error: found circular import of flake 'github:digitallyinduced/ihp/v1.2'
error: getting status of '/home/g/example.co/.direnv/flake-profile.23223': No such file or directory
warning: Git tree '/home/g/example.co' is dirty
error:
       … while updating the lock file of flake 'git+file:///home/g/example.co'

       … while updating the flake input 'ihp'

       … while updating the flake input 'ihp/ihp-boilerplate'

       … while updating the flake input 'ihp/ihp-boilerplate/ihp'

       error: found circular import of flake 'github:digitallyinduced/ihp/v1.2'
direnv: nix-direnv: renewed cache
direnv: export ~XDG_DATA_DIRS

~/example.co master*
❯
❯ cat flake.nix
{
    inputs = {
        ihp.url = "github:digitallyinduced/ihp/v1.2";
        nixpkgs.follows = "ihp/nixpkgs";
        flake-parts.follows = "ihp/flake-parts";
        devenv.follows = "ihp/devenv";
        systems.follows = "ihp/systems";
    };

    outputs = inputs@{ ihp, flake-parts, systems, ... }:
        flake-parts.lib.mkFlake { inherit inputs; } {

            systems = import systems;
            imports = [ ihp.flakeModules.default ];

            perSystem = { pkgs, ... }: {
                ihp = {
                    enable = true;
                    projectPath = ./.;
                    packages = with pkgs; [
                        # Native dependencies, e.g. imagemagick
                    ];
                    haskellPackages = p: with p; [
                        # Haskell dependencies go here
                        p.ihp
                        cabal-install
                        base
                        wai
                        text
                        html-conduit
                        aeson
                        bytestring
                        hlint
                    ];
                    withHoogle = true;
                };
            };

        };
}

~/example.co master*
❯

Did you try nix flake update?

that worked! Thanks!