ublue-os / fleek

[deprecated] Own your $HOME
https://getfleek.dev
Apache License 2.0
833 stars 24 forks source link

nix run github:ublue-os/fleek -- apply error: … while evaluating a branch condition #223

Open kuroki100 opened 1 year ago

kuroki100 commented 1 year ago

Describe the bug when running nix run github:ublue-os/fleek -- apply it fails with an error

To Reproduce Run FLEEK_DEBUG=1 nix run github:ublue-os/fleek -- apply

Environment

Additional context `FLEEK_DEBUG=1 nix run github:ublue-os/fleek -- apply [d] debug enabled [d] go go1.19.6 path github.com/ublue-os/fleek/cmd/fleek mod github.com/ublue-os/fleek (devel) dep atomicgo.dev/cursor v0.1.1
dep atomicgo.dev/keyboard v0.2.9
dep atomicgo.dev/schedule v0.0.2
dep github.com/ProtonMail/go-crypto v0.0.0-20230518184743-7afd39499903
dep github.com/atotto/clipboard v0.1.4
dep github.com/aymanbagabas/go-osc52/v2 v2.0.1
dep github.com/charmbracelet/bubbles v0.14.0 dep github.com/charmbracelet/bubbletea v0.23.1 dep github.com/charmbracelet/lipgloss v0.7.1
dep github.com/cloudflare/circl v1.3.3
dep github.com/containerd/console v1.0.3
dep github.com/emirpasic/gods v1.18.1 dep github.com/erikgeiser/promptkit v0.8.0
dep github.com/fatih/color v1.15.0 dep github.com/fitv/go-i18n v1.0.4
dep github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376
dep github.com/go-git/go-billy/v5 v5.4.1
dep github.com/go-git/go-git/v5 v5.7.0
dep github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
dep github.com/google/uuid v1.3.0
dep github.com/gookit/color v1.5.3
dep github.com/hashicorp/go-version v1.6.0
dep github.com/imdario/mergo v0.3.15 dep github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99
dep github.com/kevinburke/ssh_config v1.2.0
dep github.com/lithammer/fuzzysearch v1.1.8
dep github.com/lucasb-eyer/go-colorful v1.2.0
dep github.com/mattn/go-colorable v0.1.13 dep github.com/mattn/go-isatty v0.0.17 dep github.com/mattn/go-localereader v0.0.1
dep github.com/mattn/go-runewidth v0.0.14 dep github.com/muesli/ansi v0.0.0-20221106050444-61f0cd9a192a
dep github.com/muesli/cancelreader v0.2.2
dep github.com/muesli/mango v0.1.0
dep github.com/muesli/mango-cobra v1.2.0
dep github.com/muesli/mango-pflag v0.1.0
dep github.com/muesli/reflow v0.3.0
dep github.com/muesli/roff v0.1.0
dep github.com/muesli/termenv v0.15.1 dep github.com/otiai10/copy v1.11.0 dep github.com/pjbgf/sha1cd v0.3.0
dep github.com/pkg/errors v0.9.1
dep github.com/pterm/pterm v0.12.62
dep github.com/rivo/uniseg v0.4.4
dep github.com/riywo/loginshell v0.0.0-20200815045211-7d26008be1ab
dep github.com/samber/lo v1.38.1 dep github.com/sergi/go-diff v1.2.0
dep github.com/skeema/knownhosts v1.1.1
dep github.com/spf13/cobra v1.7.0
dep github.com/spf13/pflag v1.0.5
dep github.com/xanzy/ssh-agent v0.3.3
dep github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e
dep golang.org/x/crypto v0.9.0
dep golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561
dep golang.org/x/net v0.10.0 dep golang.org/x/sys v0.8.0
dep golang.org/x/term v0.8.0
dep golang.org/x/text v0.9.0
dep gopkg.in/warnings.v0 v0.1.2
dep gopkg.in/yaml.v3 v3.0.1
build -compiler=gc build -tags=netgo build -trimpath=true build CGO_ENABLED=0 build GOARCH=amd64 build GOOS=linux build GOAMD64=v1 [d] git autopush: true [d] git autocommit: true [d] git autopull: true [*] Apply fleek configuration [d] skipping git [✓] Writing configuration files
[d] skipping git [i] Applying configuration [d] running nix command in /var/home/lex/.local/share/fleek error: … while evaluating a branch condition

     at /nix/store/vby8c3909sglr03fxkclkly29vs49ncy-source/lib/lists.nix:57:9:

       56|       fold' = n:
       57|         if n == len
         |         ^
       58|         then nul

   … while calling the 'length' builtin

     at /nix/store/vby8c3909sglr03fxkclkly29vs49ncy-source/lib/lists.nix:55:13:

       54|     let
       55|       len = length list;
         |             ^
       56|       fold' = n:

   (stack trace truncated; use '--show-trace' to show the full trace)

   error: getting status of '/nix/store/4hyj9j0kzwplrw2j8why5z6rv62hxhbh-source/user.nix': No such file or directory

ERROR
ERROR Error: exit status 1 ERROR
[d] Command stderr:

[d]
ExecutionID:cd47214ca15d4f849d2ca9f0906218ec

`