Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

error: unexpected argument '--build' found - exit status 2 #313

Open
AWHubGit opened this issue Oct 17, 2023 · 1 comment
Open

error: unexpected argument '--build' found - exit status 2 #313

AWHubGit opened this issue Oct 17, 2023 · 1 comment

Comments

@AWHubGit
Copy link

Describe the bug
A clear and concise description of what the bug is.

"nix run "https://getfleek.dev/latest.tar.gz" -- apply" aborts with

Activating batCache
error: unexpected argument '--build' found

note: to pass '--build' as a value, use '-- --build'

Usage: bat ...

For more information, try '--help'.

Exit status 2


To Reproduce
Steps to reproduce the behavior:

Run:
nix run "https://getfleek.dev/latest.tar.gz" -- init
[*] Initialize fleek

nix run "https://getfleek.dev/latest.tar.gz" -- apply
[*] Apply fleek configuration

Expected behavior
A clear and concise description of what you expected to happen.

Applying fleek conf with exit 0

Environment

  • OS: [e.g. macOS Mojave, Ubuntu 18.04, ...]
  • Shell: [e.g. bash, zsh, ...]
  • fleek version [e.g. 0.4.1]
    Fedora 38 WS Gnome 44.5

Additional context
Add any other context about the problem here.

How do I run bat ... For more information, try '--help'?
and
Run with FLEEK_DEBUG=1 ?

@mtalexan
Copy link

Can you list your fleek version and shell? All you listed was your OS version:

  • OS: [e.g. macOS Mojave, Ubuntu 18.04, ...]
  • Shell: [e.g. bash, zsh, ...]
  • fleek version [e.g. 0.4.1]
    Fedora 38 WS Gnome 44.5

Also can you get the info with FLEEK_DEBUG=1:

FLEEK_DEBUG=1 nix run "https://getfleek.dev/latest.tar.gz" -- apply

The issue you're seeing appears to be with building the bat derivation. bat is one of the tools fleek enables as part of the default bling level. Chances are there's a mismatch with a nix version or something, or maybe an short term bug in nixpkgs Unstable channel itself with the bat derivation definition.

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

No branches or pull requests

2 participants