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

Build error for TUI after flake update #372

Open
osmano807 opened this issue Feb 18, 2024 · 5 comments
Open

Build error for TUI after flake update #372

osmano807 opened this issue Feb 18, 2024 · 5 comments

Comments

@osmano807
Copy link

I was trying to update my setup based on an old version of https://github.com/truelecter/hive/ to newer nixpkgs and run nix flake update, and after that my repo devShell doens't work.

❯ nix flake update
❯ nix develop
error: builder for '/nix/store/bwivn3gikpx6sl0k2wbsrgfcclgmbpcc-std-0.32.0-dev-go-modules.drv' failed with exit code 1;
       last 10 log lines:
       > go: downloading github.com/yuin/goldmark-emoji v1.0.2
       > go: downloading github.com/alecthomas/chroma v0.10.0
       > go: downloading github.com/microcosm-cc/bluemonday v1.0.26
       > go: downloading github.com/olekukonko/tablewriter v0.0.5
       > go: downloading github.com/dlclark/regexp2 v1.10.0
       > go: downloading github.com/aymerick/douceur v0.2.0
       > go: downloading golang.org/x/net v0.21.0
       > go: downloading github.com/gorilla/css v1.0.1
       > go: updates to go.mod needed; to update it:
       >     go mod tidy
       For full logs, run 'nix log /nix/store/bwivn3gikpx6sl0k2wbsrgfcclgmbpcc-std-0.32.0-dev-go-modules.drv'.
error: 1 dependencies of derivation '/nix/store/kr45wmr6dbi9490dis3y0j48fxyq1ff0-std-0.32.0-dev.drv' failed to build
error: 1 dependencies of derivation '/nix/store/7il37cbjbv8mgcn6abafr18gif01km6j-devshell-dir.drv' failed to build
error: 1 dependencies of derivation '/nix/store/bjj4cnhfk3316m7h1ghj4n5fsk79a0wp-infra-env.drv' failed to build

Reverted to the last working build on my end and all works now, using https://github.com/divnix/std/commits/b548f1eb8e035a2288b9cb91aa178f27b61d81aa

❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.77, NixOS, 23.11 (Tapir), 23.11.20240214.dirty`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - nixpkgs: `/nix/store/684dgr65n8li4pnfirls96jigyhvb9rq-source`
@blaggacao
Copy link
Collaborator

I've seen that, as well, today in one of my downstream projects. I did them build the TUI directly from std on the same commit that I had used downstream and it built, after that I locked the downstream.flake to a different version and immediately locked it back to the previos version that had failed with the same error.

This time it worked. I haven't gotten behind what was causing this, yet.

@sielicki
Copy link

sielicki commented Feb 18, 2024

I am also seeing this locally. My configuration is https://github.com/sielicki/dogfiles, but I haven't pushed in a few months as I need to audit my git history for secrets, so I doubt that's much help. nix derivation show output and flake.lock is here, let me know if anything else could help.

@blaggacao
Copy link
Collaborator

Maybe this fixed it: https://github.com/paisano-nix/tui/compare/v0.4.1..v0.4.2

Could you check with https://github.com/divnix/std/compare/v0.31.0..v0.31.1 and report back, please?

@nazarewk
Copy link
Contributor

@blaggacao
Copy link
Collaborator

If the previous attempt didn't fix things, I hope this does, now: https://github.com/divnix/std/blob/main/CHANGELOG.md#v0320---2024-02-19

Beware it bumps Standard's nixpkgs version!! That might cause all kinds of ripple effects if you've done nixpkgs.follows = "std/nixpkgs"; (or equivalents) anywhere in your config! Your nixpkgs would be rug-pulled under your feet.

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

4 participants