Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: $ arion -p $absolutePath not working #268

Open
izelnakri opened this issue Dec 10, 2024 · 1 comment
Open

BUG: $ arion -p $absolutePath not working #268

izelnakri opened this issue Dec 10, 2024 · 1 comment

Comments

@izelnakri
Copy link

arion cli version: 0.2.1.0

Hi there,

When I supply:

$ arion up -f /home/izelnakri/.config/home-manager/containers/arion-compose.nix -p /home/izelnakri/.config/home-manager/containers/arion-pkgs.nix

I get:

error:
       … in the left operand of the update (//) operator
         at /nix/store/pvqsjhfadkq0cwy0zgx5cp9vjrgjzbvz-arion-0.2.1.0-data/share/ghc-9.6.6/x86_64-linux-ghc-9.6.6/arion-compose-0.2.1.0/nix/eval-composition.nix:33:15:
           32|   # Typically you need composition.config.out.dockerComposeYaml
           33|   composition // {
             |               ^
           34|     # throw in lib and pkgs for repl conveniencewhile calling the 'import' builtin
         at /nix/store/pvqsjhfadkq0cwy0zgx5cp9vjrgjzbvz-arion-0.2.1.0-data/share/ghc-9.6.6/x86_64-linux-ghc-9.6.6/arion-compose-0.2.1.0/nix/eval-composition.nix:7:15:
            6|   pkgs = if builtins.typeOf _pkgs == "path"
            7|          then import _pkgs
             |               ^
            8|          else if builtins.typeOf _pkgs == "set"

       error: path '/home/izelnakri/arion-pkgs.nix' does not exist

arion argument parser for -p need to improve, probably along with -f

@roberth
Copy link
Member

roberth commented Dec 10, 2024

Unlike -f, -p is actually supposed to be an expression. Bit weird though, I'll admit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants