@@ -15,7 +15,14 @@ FROM amd64/golang:1.23.0-bookworm as builder
15
15
# https://github.com/atc0005/go-ci/issues/1188
16
16
ENV GOTOOLCHAIN="local"
17
17
18
+ # A current dev branch build (mirrored to fork) is used for pre-release Go
19
+ # versions, otherwise the latest upstream build of the tool is installed in
20
+ # this image.
21
+ # ENV GOLANGCI_LINT_VERSION="FORK-go1.23-support-2024-07-31"
22
+
23
+ # Latest upstream
18
24
ENV GOLANGCI_LINT_VERSION="v1.60.1"
25
+
19
26
ENV STATICCHECK_VERSION="v0.5.1"
20
27
ENV DEADCODE_VERSION="v0.24.0"
21
28
ENV GOVULNCHECK_VERSION="v1.1.3"
@@ -34,40 +41,36 @@ ENV STRUCTSLOP_VERSION="33c868804e9e6070fdaee64b729d3129bbe85a53"
34
41
ENV TICKERYZER_VERSION="b38acaa6d76d30629a49ad9eddd1aa5ddd0afa8f"
35
42
# ENV ERRWRAP_VERSION="c75521dd38c3bf43d1acaf3f628d87252fa69270"
36
43
37
- ENV APT_BSDMAINUTILS_VERSION="12.1.8"
38
- ENV APT_TREE_VERSION="2.1.0-1"
39
-
40
44
RUN echo "Installing staticcheck@${STATICCHECK_VERSION}" \
41
45
&& go install honnef.co/go/tools/cmd/staticcheck@${STATICCHECK_VERSION} \
42
46
&& staticcheck --version
43
47
44
- # RUN echo "Installing govulncheck@${GOVULNCHECK_VERSION}" \
45
- # && go install golang.org/x/vuln/cmd/govulncheck@${GOVULNCHECK_VERSION} \
46
- # && echo "Installing httperroryzer@${HTTPERRORYZER_VERSION}" \
47
- # && go install github.com/orijtech/httperroryzer/cmd/httperroryzer@${HTTPERRORYZER_VERSION} \
48
- # && echo "Installing structslop@${STRUCTSLOP_VERSION}" \
49
- # && go install github.com/orijtech/structslop/cmd/structslop@${STRUCTSLOP_VERSION} \
50
- # && echo "Installing tickeryzer@${TICKERYZER_VERSION}" \
51
- # && go install github.com/orijtech/tickeryzer/cmd/tickeryzer@${TICKERYZER_VERSION} \
52
- # && echo "Installing tomll@${TOMLL_VERSION}" \
53
- # && go install github.com/pelletier/go-toml/v2/cmd/tomll@${TOMLL_VERSION} \
54
- # && echo "Installing errwrap@${ERRWRAP_VERSION}" \
55
- # && go install github.com/fatih/errwrap@${ERRWRAP_VERSION}
48
+ RUN echo "Installing staticcheck@${STATICCHECK_VERSION}" \
49
+ && go install honnef.co/go/tools/cmd/staticcheck@${STATICCHECK_VERSION} \
50
+ && staticcheck --version
56
51
57
52
RUN echo "Installing govulncheck@${GOVULNCHECK_VERSION}" \
58
53
&& go install golang.org/x/vuln/cmd/govulncheck@${GOVULNCHECK_VERSION} \
59
- && echo "Installing deadcode@${DEADCODE_VERSION}" \
54
+ && govulncheck --version
55
+
56
+ RUN echo "Installing deadcode@${DEADCODE_VERSION}" \
60
57
&& go install golang.org/x/tools/cmd/deadcode@${DEADCODE_VERSION} \
61
- && echo "Installing tomll@${TOMLL_VERSION}" \
58
+ && go version -m $(which deadcode)
59
+
60
+ RUN echo "Installing tomll@${TOMLL_VERSION}" \
62
61
&& go install github.com/pelletier/go-toml/v2/cmd/tomll@${TOMLL_VERSION} \
63
- && echo "Installing gotestdox@${GOTESTDOX_VERSION}" \
64
- && go install github.com/bitfield/gotestdox/cmd/gotestdox@${GOTESTDOX_VERSION}
62
+ && go version -m $(which tomll)
63
+
64
+ RUN echo "Installing gotestdox@${GOTESTDOX_VERSION}" \
65
+ && go install github.com/bitfield/gotestdox/cmd/gotestdox@${GOTESTDOX_VERSION} \
66
+ && go version -m $(which gotestdox)
65
67
66
68
RUN echo "Installing httperroryzer from temporary fork" \
67
69
&& git clone https://github.com/atc0005/httperroryzer \
68
70
&& cd httperroryzer \
69
71
&& git checkout ${HTTPERRORYZER_VERSION} \
70
72
&& go install ./cmd/httperroryzer \
73
+ && go version -m $(which httperroryzer) \
71
74
&& cd ..
72
75
73
76
# https://github.com/orijtech/structslop/issues/64
@@ -76,17 +79,20 @@ RUN echo "Installing structslop from temporary fork" \
76
79
&& cd structslop \
77
80
&& git checkout ${STRUCTSLOP_VERSION} \
78
81
&& go install -ldflags=-checklinkname=0 ./cmd/structslop \
82
+ && go version -m $(which structslop) \
79
83
&& cd ..
80
84
81
85
RUN echo "Installing tickeryzer from temporary fork" \
82
86
&& git clone https://github.com/atc0005/tickeryzer \
83
87
&& cd tickeryzer \
84
88
&& git checkout ${TICKERYZER_VERSION} \
85
89
&& go install ./cmd/tickeryzer \
90
+ && go version -m $(which tickeryzer) \
86
91
&& cd ..
87
92
88
93
RUN echo "Installing errwrap@${ERRWRAP_VERSION}" \
89
- && go install github.com/fatih/errwrap@${ERRWRAP_VERSION}
94
+ && go install github.com/fatih/errwrap@${ERRWRAP_VERSION} \
95
+ && go version -m $(which errwrap)
90
96
91
97
# RUN echo "Installing errwrap from temporary fork" \
92
98
# && git clone https://github.com/atc0005/errwrap \
@@ -127,15 +133,17 @@ LABEL org.opencontainers.image.authors="Adam Chalkley (github.com/atc0005)"
127
133
# https://github.com/atc0005/go-ci/issues/1188
128
134
ENV GOTOOLCHAIN="local"
129
135
130
- # These commits/versions are provided by temporary forks of the upstream
131
- # projects. The plan is to switch back to current upstream vesions once
132
- # the required dependencies are updated for those upstream projects.
133
- ENV HTTPERRORYZER_VERSION="9f94717820d4a5075117680de2ca07875d32c9f1"
134
- ENV STRUCTSLOP_VERSION="33c868804e9e6070fdaee64b729d3129bbe85a53"
135
- ENV TICKERYZER_VERSION="b38acaa6d76d30629a49ad9eddd1aa5ddd0afa8f"
136
+ # A current dev branch build (mirrored to fork) is used for pre-release Go
137
+ # versions, otherwise the latest upstream build of the tool is installed in
138
+ # this image.
139
+ # ENV GOLANGCI_LINT_VERSION="FORK-go1.23-support-2024-07-31"
136
140
141
+ # Latest upstream
137
142
ENV GOLANGCI_LINT_VERSION="v1.60.1"
143
+
144
+ # ENV STATICCHECK_VERSION="dec278f2f0d94b07c04db075d807e9f499f5d7b5"
138
145
ENV STATICCHECK_VERSION="v0.5.1"
146
+
139
147
ENV DEADCODE_VERSION="v0.24.0"
140
148
ENV GOVULNCHECK_VERSION="v1.1.3"
141
149
# ENV HTTPERRORYZER_VERSION="v0.0.1"
@@ -145,6 +153,14 @@ ENV TOMLL_VERSION="v2.2.2"
145
153
ENV ERRWRAP_VERSION="v1.6.0"
146
154
ENV GOTESTDOX_VERSION="v0.2.2"
147
155
156
+ # These commits/versions are provided by temporary forks of the upstream
157
+ # projects. The plan is to switch back to current upstream vesions once
158
+ # the required dependencies are updated for those upstream projects.
159
+ ENV HTTPERRORYZER_VERSION="9f94717820d4a5075117680de2ca07875d32c9f1"
160
+ ENV STRUCTSLOP_VERSION="33c868804e9e6070fdaee64b729d3129bbe85a53"
161
+ ENV TICKERYZER_VERSION="b38acaa6d76d30629a49ad9eddd1aa5ddd0afa8f"
162
+ # ENV ERRWRAP_VERSION="c75521dd38c3bf43d1acaf3f628d87252fa69270"
163
+
148
164
ENV APT_BSDMAINUTILS_VERSION="12.1.8"
149
165
ENV APT_TREE_VERSION="2.1.0-1"
150
166
ENV APT_FILE_VERSION="1:5.44-3"
0 commit comments