Skip to content

Commit 782028c

Browse files
author
sapcc-bot
committed
Run go-makefile-maker
1 parent 57dbf8c commit 782028c

File tree

8 files changed

+18
-8
lines changed

8 files changed

+18
-8
lines changed

.envrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# SPDX-License-Identifier: Apache-2.0
44
if type -P lorri &>/dev/null; then
55
eval "$(lorri direnv)"
6-
else
6+
elif type -P nix &>/dev/null; then
77
use nix
8+
else
9+
echo "Found no nix binary. Skipping activating nix-shell..."
810
fi

.github/workflows/checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/setup-go@v5
3030
with:
3131
check-latest: true
32-
go-version: 1.23.4
32+
go-version: 1.23.5
3333
- name: Run golangci-lint
3434
uses: golangci/golangci-lint-action@v6
3535
with:

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/setup-go@v5
3333
with:
3434
check-latest: true
35-
go-version: 1.23.4
35+
go-version: 1.23.5
3636
- name: Build all binaries
3737
run: make build-all
3838
test:
@@ -47,6 +47,6 @@ jobs:
4747
uses: actions/setup-go@v5
4848
with:
4949
check-latest: true
50-
go-version: 1.23.4
50+
go-version: 1.23.5
5151
- name: Run tests and generate coverage report
5252
run: make build/cover.out

.github/workflows/codeql.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/setup-go@v5
3333
with:
3434
check-latest: true
35-
go-version: 1.23.4
35+
go-version: 1.23.5
3636
- name: Initialize CodeQL
3737
uses: github/codeql-action/init@v3
3838
with:

.license-scan-overrides.jsonl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{"name": "github.com/chzyer/logex", "licenceType": "MIT"}
22
{"name": "github.com/hashicorp/vault/api/auth/approle", "licenceType": "MPL-2.0"}
33
{"name": "github.com/jpillora/longestcommon", "licenceType": "MIT"}
4+
{"name": "github.com/miekg/dns", "licenceType": "BSD-3-Clause"}
45
{"name": "github.com/spdx/tools-golang", "licenceTextOverrideFile": "vendor/github.com/spdx/tools-golang/LICENSE.code"}
56
{"name": "github.com/xeipuuv/gojsonpointer", "licenceType": "Apache-2.0"}
67
{"name": "github.com/xeipuuv/gojsonreference", "licenceType": "Apache-2.0"}

.license-scan-rules.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
"allowlist": [
33
"Apache-2.0",
44
"BSD-2-Clause",
5+
"BSD-2-Clause-FreeBSD",
56
"BSD-3-Clause",
67
"ISC",
78
"MIT",
89
"MPL-2.0",
9-
"Unlicense"
10+
"Unlicense",
11+
"Zlib"
1012
]
1113
}

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.23.4-alpine3.21 AS builder
1+
FROM golang:1.23.5-alpine3.21 AS builder
22

33
RUN apk add --no-cache --no-progress ca-certificates gcc git make musl-dev
44

@@ -16,7 +16,7 @@ RUN addgroup -g 4200 appgroup \
1616
# upgrade all installed packages to fix potential CVEs in advance
1717
# also remove apk package manager to hopefully remove dependency on OpenSSL 🤞
1818
RUN apk upgrade --no-cache --no-progress \
19-
&& apk del --no-cache --no-progress apk-tools alpine-keys
19+
&& apk del --no-cache --no-progress apk-tools alpine-keys alpine-release libc-utils
2020

2121
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs/
2222
COPY --from=builder /etc/ssl/cert.pem /etc/ssl/cert.pem

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ check-dependency-licenses: FORCE install-go-licence-detector
109109
@printf "\e[1;36m>> go-licence-detector\e[0m\n"
110110
@go list -m -mod=readonly -json all | go-licence-detector -includeIndirect -rules .license-scan-rules.json -overrides .license-scan-overrides.jsonl
111111

112+
goimports: FORCE
113+
@printf "\e[1;36m>> goimports -w -local https://github.com/sapcc/argora\e[0m\n"
114+
@goimports -w -local github.com/sapcc/tf-registry $(patsubst $(shell awk '$$1 == "module" {print $$2}' go.mod)%,.%/*.go,$(shell go list ./...))
115+
112116
clean: FORCE
113117
git clean -dxf build
114118

@@ -157,6 +161,7 @@ help: FORCE
157161
@printf " \e[36mlicense-headers\e[0m Add license headers to all non-vendored source code files.\n"
158162
@printf " \e[36mcheck-license-headers\e[0m Check license headers in all non-vendored .go files.\n"
159163
@printf " \e[36mcheck-dependency-licenses\e[0m Check all dependency licenses using go-licence-detector.\n"
164+
@printf " \e[36mgoimports\e[0m Run goimports on all non-vendored .go files\n"
160165
@printf " \e[36mclean\e[0m Run git clean.\n"
161166

162167
.PHONY: FORCE

0 commit comments

Comments
 (0)