Skip to content

Fix lint error

Fix lint error #715

Triggered via pull request March 6, 2024 10:07
Status Failure
Total duration 25s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
lint
issues found
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/gvisor-tap-vsock/gvisor-tap-vsock. Supported file pattern: go.sum
lint: test/port_forwarding_test.go#L26
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
lint: test/port_forwarding_test.go#L112
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
lint: test/port_forwarding_test.go#L156
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
lint: test/basic_test.go#L98
unused-parameter: parameter 'network' seems to be unused, consider removing or renaming it as _ (revive)
lint: test/basic_test.go#L123
unused-parameter: parameter 'network' seems to be unused, consider removing or renaming it as _ (revive)
lint: test/basic_test.go#L159
unused-parameter: parameter 'network' seems to be unused, consider removing or renaming it as _ (revive)
lint: pkg/services/forwarder/ports.go#L120
unused-parameter: parameter 'addr' seems to be unused, consider removing or renaming it as _ (revive)
lint: pkg/services/forwarder/ports.go#L235
unused-parameter: parameter 'addr' seems to be unused, consider removing or renaming it as _ (revive)