diff options
author | Moritz Poldrack <git@moritz.sh> | 2023-03-16 21:44:24 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-03-16 21:47:30 +0100 |
commit | 6d59ad3f02bc97c0b5040f59259fa8450702a2e2 (patch) | |
tree | 8e7f64817d67e0af4bfe0e1301e2bf7bcce24851 /.golangci.toml | |
parent | a3edb98b0151a1793d10b5f1a171338a5997f004 (diff) | |
download | aerc-6d59ad3f02bc97c0b5040f59259fa8450702a2e2.tar.gz |
ci: fix lint if notmuch is not installed
The linter goes completely crazy when notmuch is not installed and the
notmuch build tag is enabled. With an otherwise successful lint, the
following output is generated:
worker/notmuch/lib/database.go:14:10: could not import github.com/zenhack/go.notmuch (-: # github.com/zenhack/go.notmuch
../../go/pkg/mod/github.com/brunnre8/go.notmuch@v0.0.0-20201126061756-caa2daf7093c/configList.go:9:11: fatal error: notmuch.h: No such file or directory
9 | // #include <notmuch.h>
| ^~~~~~~~~~~
compilation terminated.) (typecheck)
notmuch "github.com/zenhack/go.notmuch"
^
commands/eml.go:4:2: "bytes" imported and not used (typecheck)
"bytes"
^
aerc.go:39:7: previous case (typecheck)
case *widgets.AccountView:
^
exit status 1
make: *** [Makefile:73: lint] Error 1
Only include the notmuch build tag in the lint process if it is actually
installed.
Signed-off-by: Moritz Poldrack <git@moritz.sh>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to '.golangci.toml')
-rw-r--r-- | .golangci.toml | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/.golangci.toml b/.golangci.toml index 74cd03bb..543f142a 100644 --- a/.golangci.toml +++ b/.golangci.toml @@ -1,6 +1,4 @@ [run] -# include notmuch codes -build-tags = ["notmuch"] # don't lint tests tests = false |