mastodon.me.uk is one of the many independent Mastodon servers you can use to participate in the fediverse.
Open, user-supported, corporation-free social media for the UK.

Administered by:

Server stats:

499
active users

Every time I use for something new I get a weird, inscrutable error message that I spend ages trying to work out. Every time it's because I've forgotten to `git add` something. There must be a better way?

@boffbowsh have you disabled the warning that Nix gives you when the git repo is dirty? It should be saying something like "warning: git working directory is dirty" if you have uncommitted (including untracked) changes.

My first course of action when things inexplicably explode is to make sure Nix can see all the files.

Paul Bowsher

@jakehamilton I think once it's happened another 20 or 30 times I'll learn my lesson ;)

I do have that "tree is dirty" warning enabled, but I often test things without committing. The files only need to be in the staging area (`git add`), not necessarily committed to be used by Nix.