main 80d5067

Lint failure 1m 23s

Annotations 10

  1. Current runner version: 'v0.5.1'
  2. GITHUB_TOKEN Permissions
  3. Contents: read
  4. Metadata: read
  5. Packages: read
  6. Secret source: Actions
  7. Cache mode: write
  8. Prepare workflow directory
  9. Prepare all required actions
  10. Getting action download info
  11. Download action repository 'actions/checkout@v6' (SHA:d23441a48e516b6c34aea4fa41551a30e30af803)
  12. Download action repository 'actions/setup-go@v7' (SHA:b7ad1dad31e06c5925ef5d2fc7ad053ef454303e)
  13. Download action repository 'golangci/golangci-lint-action@v9' (SHA:ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a)
  14. Complete job name: Lint
  15. Run actions/checkout@v6
  16. with:
  17. repository: bnema/ermite
  18. token: ***
  19. ssh-strict: true
  20. ssh-user: git
  21. persist-credentials: true
  22. clean: true
  23. sparse-checkout-cone-mode: true
  24. fetch-depth: 1
  25. fetch-tags: false
  26. show-progress: true
  27. lfs: false
  28. submodules: false
  29. set-safe-directory: true
  30. allow-unsafe-pr-checkout: false
  31. env:
  32. GOWORK: off
  33. Syncing repository: bnema/ermite
  34. Getting Git version info
  35. Working directory is '/home/runner/work/ermite/ermite'
  36. [command]/usr/bin/git version
  37. git version 2.53.0
  38. Temporarily overriding HOME='/home/runner/work/_temp/8c52fe9d-f0a8-4fdf-8e84-e904e58d31a6' before making global git config changes
  39. Adding repository directory to the temporary git global config as a safe directory
  40. [command]/usr/bin/git config --global --add safe.directory /home/runner/work/ermite/ermite
  41. Deleting the contents of '/home/runner/work/ermite/ermite'
  42. Determining repository object format
  43. Initializing the repository
  44. [command]/usr/bin/git init /home/runner/work/ermite/ermite
  45. hint: Using 'master' as the name for the initial branch. This default branch name
  46. hint: will change to "main" in Git 3.0. To configure the initial branch name
  47. hint: to use in all of your new repositories, which will suppress this warning,
  48. hint: call:
  49. hint:
  50. hint: git config --global init.defaultBranch <name>
  51. hint:
  52. hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
  53. hint: 'development'. The just-created branch can be renamed via this command:
  54. hint:
  55. hint: git branch -m <name>
  56. hint:
  57. hint: Disable this message with "git config set advice.defaultBranchName false"
  58. Initialized empty Git repository in /home/runner/work/ermite/ermite/.git/
  59. [command]/usr/bin/git remote add origin http://ermite:7341/bnema/ermite
  60. Disabling automatic garbage collection
  61. [command]/usr/bin/git config --local gc.auto 0
  62. Setting up auth
  63. Removing SSH command configuration
  64. [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
  65. [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
  66. Removing HTTP extra header
  67. [command]/usr/bin/git config --local --name-only --get-regexp http\.http\:\/\/ermite\:7341\/\.extraheader
  68. [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.http\:\/\/ermite\:7341\/\.extraheader' && git config --local --unset-all 'http.http://ermite:7341/.extraheader' || :"
  69. Removing includeIf entries pointing to credentials config files
  70. [command]/usr/bin/git config --local --name-only --get-regexp ^includeIf\.gitdir:
  71. [command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
  72. [command]/usr/bin/git config --file /home/runner/work/_temp/git-credentials-56e1270c-4321-4d7d-b578-7bbee9085f91.config http.http://ermite:7341/.extraheader AUTHORIZATION: basic ***
  73. [command]/usr/bin/git config --local includeIf.gitdir:/home/runner/work/ermite/ermite/.git.path /home/runner/work/_temp/git-credentials-56e1270c-4321-4d7d-b578-7bbee9085f91.config
  74. [command]/usr/bin/git config --local includeIf.gitdir:/home/runner/work/ermite/ermite/.git/worktrees/*.path /home/runner/work/_temp/git-credentials-56e1270c-4321-4d7d-b578-7bbee9085f91.config
  75. [command]/usr/bin/git config --local includeIf.gitdir:/github/workspace/.git.path /github/runner_temp/git-credentials-56e1270c-4321-4d7d-b578-7bbee9085f91.config
  76. [command]/usr/bin/git config --local includeIf.gitdir:/github/workspace/.git/worktrees/*.path /github/runner_temp/git-credentials-56e1270c-4321-4d7d-b578-7bbee9085f91.config
  77. Fetching the repository
  78. [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +fda3c2b1c2def2d9d59f9847c67fb31bc63626a7:refs/remotes/pull/24/merge
  79. From http://ermite:7341/bnema/ermite
  80. * [new ref] fda3c2b1c2def2d9d59f9847c67fb31bc63626a7 -> pull/24/merge
  81. Determining the checkout info
  82. [command]/usr/bin/git sparse-checkout disable
  83. [command]/usr/bin/git config --local --unset-all extensions.worktreeConfig
  84. Checking out the ref
  85. [command]/usr/bin/git checkout --progress --force refs/remotes/pull/24/merge
  86. Note: switching to 'refs/remotes/pull/24/merge'.
  87. You are in 'detached HEAD' state. You can look around, make experimental
  88. changes and commit them, and you can discard any commits you make in this
  89. state without impacting any branches by switching back to a branch.
  90. If you want to create a new branch to retain commits you create, you may
  91. do so (now or later) by using -c with the switch command. Example:
  92. git switch -c <new-branch-name>
  93. Or undo this operation with:
  94. git switch -
  95. Turn off this advice by setting config variable advice.detachedHead to false
  96. HEAD is now at fda3c2b Merge b869944009400099e6fe8932fecbdf470c52dcef into f61e6a68e9c866c042a8c5e4f64cae2b1290a363
  97. [command]/usr/bin/git log -1 --format=%H
  98. fda3c2b1c2def2d9d59f9847c67fb31bc63626a7
  99. Run actions/setup-go@v7
  100. with:
  101. go-version-file: go.mod
  102. cache: true
  103. check-latest: false
  104. env:
  105. GOWORK: off
  106. Setup go version spec 1.27.1
  107. Attempting to download 1.27.1...
  108. matching 1.27.1...
  109. Acquiring 1.27.1 from https://github.com/actions/go-versions/releases/download/1.27.1-33583469715/go-1.27.1-linux-x64.tar.gz
  110. Extracting Go...
  111. [command]/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/4114f767-c4da-4a51-80dc-7297873c0fec -f /home/runner/work/_temp/db822e22-0232-4337-828f-24231d8c42e7
  112. Successfully extracted go to /home/runner/work/_temp/4114f767-c4da-4a51-80dc-7297873c0fec
  113. Adding to the cache ...
  114. Successfully cached go to /opt/hostedtoolcache/go/1.27.1/x64
  115. Added go to the path
  116. Successfully set up Go version 1.27.1
  117. [command]/opt/hostedtoolcache/go/1.27.1/x64/bin/go env GOCACHE
  118. [command]/opt/hostedtoolcache/go/1.27.1/x64/bin/go env GOMODCACHE
  119. /home/runner/.cache/go-build
  120. /home/runner/go/pkg/mod
  121. Cache is not found
  122. go version go1.27.1 linux/amd64
  123. go env
  124. AR='ar'
  125. CC='gcc'
  126. CGO_CFLAGS='-O2 -g'
  127. CGO_CPPFLAGS=''
  128. CGO_CXXFLAGS='-O2 -g'
  129. CGO_ENABLED='1'
  130. CGO_FFLAGS='-O2 -g'
  131. CGO_LDFLAGS='-O2 -g'
  132. CXX='g++'
  133. GCCGO='gccgo'
  134. GO111MODULE=''
  135. GOAMD64='v1'
  136. GOARCH='amd64'
  137. GOAUTH='netrc'
  138. GOBIN='/home/runner/go/bin'
  139. GOCACHE='/home/runner/.cache/go-build'
  140. GOCACHEPROG=''
  141. GODEBUG=''
  142. GOENV='/home/runner/.config/go/env'
  143. GOEXE=''
  144. GOEXPERIMENT=''
  145. GOFIPS140='off'
  146. GOFLAGS=''
  147. GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2417831428=/tmp/go-build -gno-record-gcc-switches'
  148. GOHOSTARCH='amd64'
  149. GOHOSTOS='linux'
  150. GOINSECURE=''
  151. GOMOD='/home/runner/work/ermite/ermite/go.mod'
  152. GOMODCACHE='/home/runner/go/pkg/mod'
  153. GONOPROXY=''
  154. GONOSUMDB=''
  155. GOOS='linux'
  156. GOPACKAGESDRIVER=''
  157. GOPATH='/home/runner/go'
  158. GOPRIVATE=''
  159. GOPROXY='https://proxy.golang.org,direct'
  160. GOROOT='/opt/hostedtoolcache/go/1.27.1/x64'
  161. GOSUMDB='sum.golang.org'
  162. GOTELEMETRY='local'
  163. GOTELEMETRYDIR='/home/runner/.config/go/telemetry'
  164. GOTMPDIR=''
  165. GOTOOLCHAIN='local'
  166. GOTOOLDIR='/opt/hostedtoolcache/go/1.27.1/x64/pkg/tool/linux_amd64'
  167. GOVCS=''
  168. GOVERSION='go1.27.1'
  169. GOWORK='off'
  170. PKG_CONFIG='pkg-config'
  171. Run golangci/golangci-lint-action@v9
  172. with:
  173. version: v2.14.0
  174. install-mode: binary
  175. install-only: false
  176. github-token: ***
  177. verify: true
  178. only-new-issues: false
  179. skip-cache: false
  180. skip-save-cache: false
  181. cache-invalidation-interval: 7
  182. problem-matchers: false
  183. env:
  184. GOWORK: off
  185. GOTOOLCHAIN: local
  186. Restore cache
  187. Checking for go.mod: go.mod
  188. Cache Size: ~5 MB (5215174 B)
  189. [command]/usr/bin/tar -xf /home/runner/work/_temp/ed253528-ee60-477d-a89c-983b1f7d63ac/cache.tgz -P -C /home/runner/work/ermite/ermite -z
  190. Cache restored successfully
  191. Restored cache for golangci-lint from key 'golangci-lint.cache-Linux-2963-de5d483f7308b615097bba2af98208fcba532e2a' in 1619ms
  192. Install
  193. Finding needed golangci-lint version...
  194. Installation mode: binary
  195. Installing golangci-lint binary v2.14.0...
  196. Downloading binary https://github.com/golangci/golangci-lint/releases/download/v2.14.0/golangci-lint-2.14.0-linux-amd64.tar.gz ...
  197. [command]/usr/bin/tar xz --overwrite --warning=no-unknown-keyword --overwrite -C /home/runner -f /home/runner/work/_temp/e615d815-40f7-43a5-bfe1-07a5c60ecc31
  198. Installed golangci-lint into /home/runner/golangci-lint-2.14.0-linux-amd64/golangci-lint in 562ms
  199. run golangci-lint
  200. Running [/home/runner/golangci-lint-2.14.0-linux-amd64/golangci-lint config path] in [/home/runner/work/ermite/ermite] ...
  201. Running [/home/runner/golangci-lint-2.14.0-linux-amd64/golangci-lint config verify] in [/home/runner/work/ermite/ermite] ...
  202. Running [/home/runner/golangci-lint-2.14.0-linux-amd64/golangci-lint run] in [/home/runner/work/ermite/ermite] ...
  203. internal/adapters/blobdisk/blobdisk.go:186:17: Error return value of `os.Remove` is not checked (errcheck)
  204. defer os.Remove(f.Name())
  205. ^
  206. internal/adapters/blobdisk/blobdisk.go:259:10: Error return value of `f.Close` is not checked (errcheck)
  207. f.Close()
  208. ^
  209. internal/adapters/blobdisk/blobdisk.go:367:15: Error return value of `os.RemoveAll` is not checked (errcheck)
  210. os.RemoveAll(stage)
  211. ^
  212. internal/adapters/blobdisk/blobdisk.go:371:15: Error return value of `os.RemoveAll` is not checked (errcheck)
  213. os.RemoveAll(stage)
  214. ^
  215. internal/adapters/blobdisk/blobdisk.go:375:15: Error return value of `os.RemoveAll` is not checked (errcheck)
  216. os.RemoveAll(u.dir())
  217. ^
  218. internal/adapters/blobdisk/blobdisk.go:399:12: Error return value of `os.Remove` is not checked (errcheck)
  219. os.Remove(f.Name())
  220. ^
  221. internal/adapters/blobdisk/blobdisk.go:415:17: Error return value of `os.Remove` is not checked (errcheck)
  222. defer os.Remove(f.Name())
  223. ^
  224. internal/adapters/blobdisk/blobdisk.go:456:11: Error return value of `f.Close` is not checked (errcheck)
  225. f.Close()
  226. ^
  227. internal/adapters/blobs3/blobs3_test.go:78:10: Error return value of `w.Write` is not checked (errcheck)
  228. w.Write([]byte(`<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>b</Name><IsTruncated>false</IsTruncated></ListBucketResult>`))
  229. ^
  230. internal/adapters/blobtest/suite.go:80:11: Error return value of `rc.Close` is not checked (errcheck)
  231. rc.Close()
  232. ^
  233. internal/adapters/blobtest/suite.go:98:11: Error return value of `r.Close` is not checked (errcheck)
  234. r.Close()
  235. ^
  236. internal/adapters/blobtest/suite.go:150:10: Error return value of `r.Close` is not checked (errcheck)
  237. r.Close()
  238. ^
  239. internal/adapters/kvstore/releases_test.go:109:16: Error return value of `db.Close` is not checked (errcheck)
  240. defer db.Close(ctx)
  241. ^
  242. internal/adapters/kvstore/store_test.go:408:18: Error return value of `db.Close` is not checked (errcheck)
  243. defer db.Close(ctx)
  244. ^
  245. internal/adapters/rpc/release_test.go:259:22: Error return value of `stream.Close` is not checked (errcheck)
  246. defer stream.Close()
  247. ^
  248. internal/adapters/rpc/release_test.go:288:23: Error return value of `stream.Close` is not checked (errcheck)
  249. defer stream.Close()
  250. ^
  251. internal/adapters/rpc/release_test.go:398:20: Error return value of `stream.Close` is not checked (errcheck)
  252. defer stream.Close()
  253. ^
  254. internal/app/release_e2e_test.go:79:18: Error return value of `res.Body.Close` is not checked (errcheck)
  255. res.Body.Close()
  256. ^
  257. internal/app/release_e2e_test.go:87:18: Error return value of `res.Body.Close` is not checked (errcheck)
  258. res.Body.Close()
  259. ^
  260. internal/app/web_release_test.go:47:23: Error return value of `res.Body.Close` is not checked (errcheck)
  261. defer res.Body.Close()
  262. ^
  263. internal/usecase/releases_assets.go:410:18: Error return value of `body.Close` is not checked (errcheck)
  264. defer body.Close()
  265. ^
  266. internal/usecase/releases_github_test.go:310:24: Error return value of `resp.Body.Close` is not checked (errcheck)
  267. defer resp.Body.Close()
  268. ^
  269. internal/app/cli_release.go:592:22: QF1001: could apply De Morgan's law (staticcheck)
  270. if attempt == 1 || !(code == connect.CodeUnavailable || code == connect.CodeInternal || errors.Is(err, io.ErrUnexpectedEOF)) {
  271. ^
  272. internal/usecase/releases_assets.go:69:7: QF1001: could apply De Morgan's law (staticcheck)
  273. if !(old.State == domain.ReleaseAssetUploading && r.clock.Now().Sub(old.UpdatedAt) > 60*time.Second) && !(old.State == domain.ReleaseAssetUploaded && params.Replace) {
  274. ^
  275. internal/usecase/releases_assets.go:202:6: QF1001: could apply De Morgan's law (staticcheck)
  276. if !(c >= '0' && c <= '9' || c >= 'a' && c <= 'f') {
  277. ^
  278. internal/usecase/releases_sweep.go:32:3: QF1003: could use tagged switch on a.State (staticcheck)
  279. if a.State == domain.ReleaseAssetUploading {
  280. ^
  281. 26 issues:
  282. * errcheck: 22
  283. * staticcheck: 4
  284. issues found
  285. Ran golangci-lint in 67098ms
  286. Post job cleanup.
  287. [command]/usr/bin/tar --posix -cf cache.tgz --exclude cache.tgz -P -C /home/runner/work/ermite/ermite --files-from manifest.txt -z
  288. Cache Size: ~6 MB (5833664 B)
  289. Cache saved successfully
  290. Saved cache for golangci-lint from paths '/home/runner/.cache/golangci-lint' in 1171ms
  291. Post job cleanup.
  292. [command]/usr/bin/git version
  293. git version 2.53.0
  294. Temporarily overriding HOME='/home/runner/work/_temp/769c06f2-6bf2-4706-87d8-eb5696d2961d' before making global git config changes
  295. Adding repository directory to the temporary git global config as a safe directory
  296. [command]/usr/bin/git config --global --add safe.directory /home/runner/work/ermite/ermite
  297. Removing SSH command configuration
  298. [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
  299. [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
  300. Removing HTTP extra header
  301. [command]/usr/bin/git config --local --name-only --get-regexp http\.http\:\/\/ermite\:7341\/\.extraheader
  302. [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.http\:\/\/ermite\:7341\/\.extraheader' && git config --local --unset-all 'http.http://ermite:7341/.extraheader' || :"
  303. Removing includeIf entries pointing to credentials config files
  304. [command]/usr/bin/git config --local --name-only --get-regexp ^includeIf\.gitdir:
  305. includeif.gitdir:/home/runner/work/ermite/ermite/.git.path
  306. includeif.gitdir:/home/runner/work/ermite/ermite/.git/worktrees/*.path
  307. includeif.gitdir:/github/workspace/.git.path
  308. includeif.gitdir:/github/workspace/.git/worktrees/*.path
  309. [command]/usr/bin/git config --local --get-all includeif.gitdir:/home/runner/work/ermite/ermite/.git.path
  310. /home/runner/work/_temp/git-credentials-56e1270c-4321-4d7d-b578-7bbee9085f91.config
  311. [command]/usr/bin/git config --local --unset includeif.gitdir:/home/runner/work/ermite/ermite/.git.path /home/runner/work/_temp/git-credentials-56e1270c-4321-4d7d-b578-7bbee9085f91.config
  312. [command]/usr/bin/git config --local --get-all includeif.gitdir:/home/runner/work/ermite/ermite/.git/worktrees/*.path
  313. /home/runner/work/_temp/git-credentials-56e1270c-4321-4d7d-b578-7bbee9085f91.config
  314. [command]/usr/bin/git config --local --unset includeif.gitdir:/home/runner/work/ermite/ermite/.git/worktrees/*.path /home/runner/work/_temp/git-credentials-56e1270c-4321-4d7d-b578-7bbee9085f91.config
  315. [command]/usr/bin/git config --local --get-all includeif.gitdir:/github/workspace/.git.path
  316. /github/runner_temp/git-credentials-56e1270c-4321-4d7d-b578-7bbee9085f91.config
  317. [command]/usr/bin/git config --local --unset includeif.gitdir:/github/workspace/.git.path /github/runner_temp/git-credentials-56e1270c-4321-4d7d-b578-7bbee9085f91.config
  318. [command]/usr/bin/git config --local --get-all includeif.gitdir:/github/workspace/.git/worktrees/*.path
  319. /github/runner_temp/git-credentials-56e1270c-4321-4d7d-b578-7bbee9085f91.config
  320. [command]/usr/bin/git config --local --unset includeif.gitdir:/github/workspace/.git/worktrees/*.path /github/runner_temp/git-credentials-56e1270c-4321-4d7d-b578-7bbee9085f91.config
  321. [command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
  322. Removing credentials config '/home/runner/work/_temp/git-credentials-56e1270c-4321-4d7d-b578-7bbee9085f91.config'
  323. Cleaning up orphan processes

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 2

Tags 44

↑↓ moveenter openesc close