From 4b128a4904e59de95013eefdbbd6cc1bf1eedb48 Mon Sep 17 00:00:00 2001 From: Jeremy Rand Date: Tue, 1 Jun 2021 14:37:08 +0000 Subject: [PATCH] CI: Whitelist go.mod replace x509-compressed Fixes a warning from gomoddirectives linter. --- .cirrus.yml | 2 +- .golangci.yml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .golangci.yml diff --git a/.cirrus.yml b/.cirrus.yml index 5a22a6b..b6317c4 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -37,7 +37,7 @@ task: - go mod tidy lint_script: - cd $(go env GOPATH)/src/github.com/$CIRRUS_REPO_FULL_NAME/ - - golangci-lint run --no-config --enable-all --disable gochecknoglobals,gomnd $GOLANGCI_ARGS -v --timeout 5m --out-format json > $CIRRUS_WORKING_DIR/lint-report.json + - golangci-lint run --enable-all --disable gochecknoglobals,gomnd $GOLANGCI_ARGS -v --timeout 5m --out-format json > $CIRRUS_WORKING_DIR/lint-report.json matrix: - name: Go Lint $GOOS New env: diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..ef1742a --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,7 @@ +linters-settings: + goimports: + local-prefixes: "github.com/namecoin" + gomoddirectives: + replace-local: true + replace-allow-list: + - "github.com/namecoin/x509-compressed"