You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-03 18:35:08 +02:00
Bump golangci-lint and work around the corrupting bug (#666)
* Bump golangci-lint to 1.25 * Skip the "unused" linter when running golangci-lint in --fix mode This linter seems to provide bogus fix-up information to golangci-lint, which results in file corruption instead of fixing the issue. Since we are going to run the linter again anyway, but without the --fix mode, skip the "unused" linter explicitly for the first run - it will still have a chance to report errors on the second run.
This commit is contained in:
@@ -124,7 +124,7 @@ lint: $(TOOLS_DIR)/golangci-lint $(TOOLS_DIR)/misspell
|
||||
set -e; for dir in $(ALL_GO_MOD_DIRS); do \
|
||||
echo "golangci-lint in $${dir}"; \
|
||||
(cd "$${dir}" && \
|
||||
$(TOOLS_DIR)/golangci-lint run --fix && \
|
||||
$(TOOLS_DIR)/golangci-lint run --disable unused --fix && \
|
||||
$(TOOLS_DIR)/golangci-lint run); \
|
||||
done
|
||||
$(TOOLS_DIR)/misspell -w $(ALL_DOCS)
|
||||
|
||||
Reference in New Issue
Block a user