Skip to content

Commit 8a7a0d4

Browse files
committed
chore: bump deps
Run rekres and bump gen to 0.5.0. Preparation for the next PR. Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
1 parent ea8b8f1 commit 8a7a0d4

File tree

6 files changed

+36
-11
lines changed

6 files changed

+36
-11
lines changed

.github/workflows/ci.yaml

+26-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2024-05-21T10:07:54Z by kres 0290180.
3+
# Generated on 2024-05-28T00:03:10Z by kres bcb280a.
44

55
name: default
66
concurrency:
@@ -30,6 +30,31 @@ jobs:
3030
- generic
3131
if: (!startsWith(github.head_ref, 'renovate/') && !startsWith(github.head_ref, 'dependabot/'))
3232
steps:
33+
- name: gather-system-info
34+
id: system-info
35+
uses: kenchan0130/actions-system-info@v1.3.0
36+
continue-on-error: true
37+
- name: print-system-info
38+
run: |
39+
MEMORY_GB=$((${{ steps.system-info.outputs.totalmem }}/1024/1024/1024))
40+
41+
OUTPUTS=(
42+
"CPU Core: ${{ steps.system-info.outputs.cpu-core }}"
43+
"CPU Model: ${{ steps.system-info.outputs.cpu-model }}"
44+
"Hostname: ${{ steps.system-info.outputs.hostname }}"
45+
"NodeName: ${NODE_NAME}"
46+
"Kernel release: ${{ steps.system-info.outputs.kernel-release }}"
47+
"Kernel version: ${{ steps.system-info.outputs.kernel-version }}"
48+
"Name: ${{ steps.system-info.outputs.name }}"
49+
"Platform: ${{ steps.system-info.outputs.platform }}"
50+
"Release: ${{ steps.system-info.outputs.release }}"
51+
"Total memory: ${MEMORY_GB} GB"
52+
)
53+
54+
for OUTPUT in "${OUTPUTS[@]}";do
55+
echo "${OUTPUT}"
56+
done
57+
continue-on-error: true
3358
- name: checkout
3459
uses: actions/checkout@v4
3560
- name: Unshallow

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
44
#
5-
# Generated on 2024-05-21T10:07:54Z by kres 0290180.
5+
# Generated on 2024-05-28T00:03:10Z by kres bcb280a.
66

77
ARG TOOLCHAIN
88

@@ -13,7 +13,7 @@ FROM ghcr.io/siderolabs/fhs:v1.7.0 AS image-fhs
1313
# runs markdownlint
1414
FROM docker.io/node:22.2.0-alpine3.19 AS lint-markdown
1515
WORKDIR /src
16-
RUN npm i -g markdownlint-cli@0.40.0
16+
RUN npm i -g markdownlint-cli@0.41.0
1717
RUN npm i sentences-per-line@0.2.1
1818
COPY .markdownlint.json .
1919
COPY ./README.md ./README.md
@@ -24,7 +24,7 @@ FROM scratch AS proto-specs
2424
ADD api/storage/storage.proto /api/storage/
2525

2626
# base toolchain image
27-
FROM ${TOOLCHAIN} AS toolchain
27+
FROM --platform=${BUILDPLATFORM} ${TOOLCHAIN} AS toolchain
2828
RUN apk --update --no-cache add bash curl build-base protoc protobuf-dev
2929

3030
# build tools

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2024-05-21T10:07:54Z by kres 0290180.
3+
# Generated on 2024-05-28T00:03:10Z by kres bcb280a.
44

55
# common variables
66

@@ -23,7 +23,7 @@ GRPC_GATEWAY_VERSION ?= 2.20.0
2323
VTPROTOBUF_VERSION ?= 0.6.0
2424
GOIMPORTS_VERSION ?= 0.21.0
2525
DEEPCOPY_VERSION ?= v0.5.6
26-
GOLANGCILINT_VERSION ?= v1.58.2
26+
GOLANGCILINT_VERSION ?= v1.59.0
2727
GOFUMPT_VERSION ?= v0.6.0
2828
GO_VERSION ?= 1.22.3
2929
GO_BUILDFLAGS ?=

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/prometheus/client_golang v1.19.0
1111
github.com/siderolabs/discovery-api v0.1.4
1212
github.com/siderolabs/discovery-client v0.1.8
13-
github.com/siderolabs/gen v0.4.8
13+
github.com/siderolabs/gen v0.5.0
1414
github.com/siderolabs/go-debug v0.3.0
1515
github.com/stretchr/testify v1.9.0
1616
go.uber.org/zap v1.27.0

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ github.com/siderolabs/discovery-api v0.1.4 h1:2fMEFSMiWaD1zDiBDY5md8VxItvL1rDQRS
4040
github.com/siderolabs/discovery-api v0.1.4/go.mod h1:kaBy+G42v2xd/uAF/NIe383sjNTBE2AhxPTyi9SZI0s=
4141
github.com/siderolabs/discovery-client v0.1.8 h1:8WhJiNyVmjZ0F+tSfeaDyQ04n02lRK2dh/CvWp+zlnY=
4242
github.com/siderolabs/discovery-client v0.1.8/go.mod h1:djZDsGuXOclDfMfur5mYfzFO1xasnIIL6ejyReOsFL8=
43-
github.com/siderolabs/gen v0.4.8 h1:VNpbmDLhkXp7qcSEkKk1Ee7vU2afs3xvHrWLGR2UuiY=
44-
github.com/siderolabs/gen v0.4.8/go.mod h1:7ROKVHHB68R3Amrd4a1ZXz/oMrXWF3Mg3lSEgnkJY5c=
43+
github.com/siderolabs/gen v0.5.0 h1:Afdjx+zuZDf53eH5DB+E+T2JeCwBXGinV66A6osLgQI=
44+
github.com/siderolabs/gen v0.5.0/go.mod h1:1GUMBNliW98Xeq8GPQeVMYqQE09LFItE8enR3wgMh3Q=
4545
github.com/siderolabs/go-debug v0.3.0 h1:C8t7jbac5Va2eYu9QRXXEGsy3Vz5xOEVo0TDwVJH268=
4646
github.com/siderolabs/go-debug v0.3.0/go.mod h1:DonqzIQOm3+qof020meFwJ2gXI5Jv/x4Dj27FyUW4aE=
4747
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=

internal/landing/landing.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ package landing
88

99
import (
1010
"embed"
11-
"fmt"
1211
"html/template"
12+
"io"
1313
"io/fs"
1414
"net/http"
1515
"net/url"
@@ -64,7 +64,7 @@ func Handler(state *state.State, logger *zap.Logger) http.Handler {
6464
mux.HandleFunc("/inspect", func(w http.ResponseWriter, r *http.Request) {
6565
if err := InspectHandler(w, r, state); err != nil {
6666
w.WriteHeader(http.StatusInternalServerError)
67-
fmt.Fprint(w, "Oops, try again")
67+
io.WriteString(w, "Oops, try again") //nolint:errcheck
6868
logger.Error("failed to return the page:", zap.Error(err))
6969
}
7070
})

0 commit comments

Comments
 (0)