flakehub-push icon indicating copy to clipboard operation
flakehub-push copied to clipboard

Allow impure Flake

Open shikanime opened this issue 1 year ago • 4 comments

Currently, flakehub-push only supports pushing pure Nix flakes to FlakeHub. However, there are valid cases for impure flakes, such as those that use devenv. This issue proposes adding a new option to that allows users to indicate their flake is impure for the nix flake show command to work.

shikanime avatar Sep 26 '24 10:09 shikanime

I'm having the same error here: https://github.com/copier-org/copier/actions/runs/13752905656/job/38456132767

logs_35421876080.zip

Is there any workaround for now?

yajo avatar Mar 10 '25 07:03 yajo

Currently, FlakeHub deliberately does not support impure flakes. What is the devenv use case that requires impure flakes?

grahamc avatar Aug 06 '25 01:08 grahamc

It's simply an edge case of flake. Devenv needs to know the current directory (aka PWD) in order to set up the tools, cache, and other configuration files.

shikanime avatar Aug 06 '25 16:08 shikanime

Perhaps Impure could be allowed but a warning showing up on flakehub should show up too?

Malix-Labs avatar Sep 06 '25 10:09 Malix-Labs