divnix / std

A DevOps framework for the SDLC with the power of Nix and Flakes. Good for keeping deadlines!
https://std.divnix.com
391 stars 43 forks source link

Build error for TUI after `flake update` #372

Open osmano807 opened 7 months ago

osmano807 commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

this works for me:

blaggacao commented 7 months ago

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.