Skip to content

Add go workflow to lint src/bpm/ #2

Add go workflow to lint src/bpm/

Add go workflow to lint src/bpm/ #2

Triggered via pull request February 29, 2024 00:06
Status Failure
Total duration 46s
Artifacts

go.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
lint: src/bpm/acceptance/fixtures/test-server/handlers/masked_paths.go#L54
Error return value of `cmd.Process.Kill` is not checked (errcheck)
lint: src/bpm/commands/logs.go#L109
Error return value of `tailCmd.Process.Signal` is not checked (errcheck)
lint: src/bpm/commands/trace.go#L97
Error return value of `straceCmd.Process.Signal` is not checked (errcheck)
lint: src/bpm/commands/version.go#L39
Error return value of `cmd.Usage` is not checked (errcheck)
lint: src/bpm/flock/flock_test.go#L59
Error return value of `lock.Unlock` is not checked (errcheck)
lint: src/bpm/flock/flock_test.go#L79
Error return value of `lock.Unlock` is not checked (errcheck)
lint: src/bpm/runc/adapter/adapter.go#L144
Error return value of `held.Unlock` is not checked (errcheck)
lint: src/bpm/acceptance/fixtures/test-server/handlers/processes.go#L39
S1038: should use fmt.Fprintf instead of fmt.Fprintln(fmt.Sprintf(...)) (but don't forget the newline) (gosimple)
lint: src/bpm/acceptance/fixtures/test-server/handlers/curl.go#L20
SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
lint: src/bpm/acceptance/fixtures/test-server/handlers/env.go#L20
SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4, 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/bpm-release/bpm-release. Supported file pattern: go.sum