From 8c5e82bd16ac8b8331100204fd7dbf98cd62f9f7 Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Mon, 6 Jul 2026 00:14:34 +0100 Subject: [PATCH] Drop armv7 build target and remove dead golangci settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The published multi-arch Docker manifest is amd64+arm64 only, but GoReleaser and the Makefile dockerx target still built linux/arm/v7 binaries with no matching image. Drop the armv7 target (goarch arm + goarm 7) from .goreleaser.yml and linux/arm/v7 from the Makefile so shipped binaries match the images; other platforms are unchanged. Also remove the goconst and lll settings blocks from backend/.golangci.yml — neither linter is in the enable list, so the settings were inert. --- .goreleaser.yml | 9 --------- Makefile | 2 +- backend/.golangci.yml | 5 ----- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 56286cb8..09fff1d9 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -26,26 +26,17 @@ builds: - amd64 - arm64 - "386" - - arm - goarm: - - "7" ignore: - goos: darwin goarch: "386" - - goos: darwin - goarch: arm - goos: freebsd goarch: arm64 - goos: freebsd goarch: "386" - - goos: freebsd - goarch: arm - goos: windows goarch: arm64 - goos: windows goarch: "386" - - goos: windows - goarch: arm ldflags: - -s -w -X main.revision={{ .Tag }}-{{ .ShortCommit }}-{{ trimsuffix (replace (replace .CommitDate "-" "") ":" "") "Z" }} diff --git a/Makefile b/Makefile index f3d6e524..51fcacb6 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ docker: dockerx: docker buildx build --build-arg GITHUB_REF=$(GITHUB_REF) --build-arg GITHUB_SHA=$(GITHUB_SHA) --build-arg CI=true \ --build-arg SKIP_FRONTEND_TEST=true --build-arg SKIP_BACKEND_TEST=true \ - --progress=plain --platform linux/amd64,linux/arm/v7,linux/arm64 \ + --progress=plain --platform linux/amd64,linux/arm64 \ -t ghcr.io/umputun/remark42:master -t umputun/remark42:master . release: diff --git a/backend/.golangci.yml b/backend/.golangci.yml index b99ab2c4..ae5f84e1 100644 --- a/backend/.golangci.yml +++ b/backend/.golangci.yml @@ -20,9 +20,6 @@ linters: - unparam - unused settings: - goconst: - min-len: 2 - min-occurrences: 2 gosec: excludes: - G117 # false positive: struct field name matches "secret" pattern @@ -38,8 +35,6 @@ linters: govet: enable: - shadow - lll: - line-length: 140 misspell: locale: US exclusions: