Skip to content

Upgrade to go1.21 #4601

Upgrade to go1.21

Upgrade to go1.21 #4601

Re-run triggered February 27, 2024 02:36
Status Failure
Total duration 3m 22s
Artifacts

ci.yml

on: pull_request
Matrix: lint
test-linux
0s
test-linux
Matrix: test-windows
Matrix: integration-tests
Fit to window
Zoom out
Zoom in

Annotations

14 errors and 4 warnings
lint (windows, test)
golangci-lint exit with code 5
lint (linux, test)
golangci-lint exit with code 5
protos
Process completed with exit code 1.
verify-vendor
./go.mod is not up to date. Please run `go mod tidy && go mod vendor`
verify-vendor
Process completed with exit code 1.
lint (linux): ext4/dmverity/dmverity_test.go#L23
SA1019: rand.Read has been deprecated since Go 1.20 because it shouldn't be used: For almost all use cases, crypto/rand.Read is more appropriate. (staticcheck)
lint (linux)
issues found
Go Generate
Generated files are not up to date. Please run `go generate .\...`.
Go Generate
Process completed with exit code 1.
lint (windows): internal/tools/networkagent/main.go#L42
SA1019: rand.Read has been deprecated since Go 1.20 because it shouldn't be used: For almost all use cases, crypto/rand.Read is more appropriate. (staticcheck)
lint (windows): ext4/dmverity/dmverity_test.go#L23
SA1019: rand.Read has been deprecated since Go 1.20 because it shouldn't be used: For almost all use cases, crypto/rand.Read is more appropriate. (staticcheck)
lint (windows): internal/cmd/io_npipe.go#L25
SA1019: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. (staticcheck)
lint (windows): internal/winapi/utils.go#L17
SA1019: reflect.SliceHeader has been deprecated since Go 1.21 and an alternative has been available since Go 1.17: Use unsafe.Slice or unsafe.SliceData instead. (staticcheck)
lint (windows)
issues found
lint (windows, test)
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 (linux, test)
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 (linux)
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 (windows)
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/.