From 670f9dbd8d9b54d52b50cb2c7662b674d0aeb357 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 3 May 2024 09:03:55 +0200 Subject: chore: revert to blocklist-based gitignore --- .gitignore | 48 +++++++++++++++++++----------------------------- 1 file changed, 19 insertions(+), 29 deletions(-) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index ebdb921..c034bd1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,34 +1,24 @@ -# Allowlisting gitignore template for GO projects prevents us -# from adding various unwanted local files, such as generated -# files, developer configurations or IDE-specific files etc. -# -# Recommended: Go.AllowList.gitignore +### https://raw.github.com/github/gitignore/4488915eec0b3a45b5c63ead28f286819c0917de/Go.gitignore -# Ignore everything -* +# Binaries for programs and plugins +/* +*.exe +*.exe~ +*.dll +*.so +*.dylib +!*.* +!/**/ -# But not these files... -!/.gitignore -!/.editorconfig -!/.envrc.sample +# Test binary, built with `go test -c` +*.test -!/README.md -!/LICENSE -!/justfile -!/config.toml +# Output of the go coverage tool, specifically when used with LiteIDE +*.out -!/nix -!*.nix +# Go workspace file +go.work -!/.golangci.yaml -!/go.sum -!/go.mod -!/gomod2nix.toml -!*.go - -!*.tmpl -!*.js -!/frontend - -# ...even if they are in subdirectories -!*/ +/.env +/.envrc +/.pre-commit-config.yaml -- cgit 1.4.1