When I make and install with a different
$SHAREDIR the root filter dir is not correct. For example, if I build with:
env GOPATH=$HOME/go PREFIX=$HOME/.local SHAREDIR=$HOME/.local/share/aerc make install
Then when I open an email it shows:
sh: /usr/local/share/aerc/filters/plaintext: No such file or directory (END)
Did you first run
makewithout the correct prefix/sharedir configured?
Don't set GOPATH, either.
Yes, but I ran
make cleanand then tried installing again.
I looked into it a bit further, and now I realize that the filter path is set in the config, and editing it there fixed it.
I must note though, that if I do not set the GOPATH, go tries to store the dependencies to GOROOT. That fails as I am on NixOS, and go is installed via
nixwhich installs it in
/nix/store/, which is read-only.