Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

all: use slices mirror package #798

all: use slices mirror package

all: use slices mirror package #798

Triggered via pull request August 15, 2023 17:48
Status Failure
Total duration 1m 6s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

static-analysis.yml

on: pull_request
Matrix: staticcheck
Fit to window
Zoom out
Zoom in

Annotations

32 errors
staticcheck (windows, amd64): mirror/x/exp/slices/sort_benchmark_test.go#L18
rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: Programs that call Seed and then expect a specific sequence of results from the global random source (using functions such as Int) can be broken when a dependency changes how much it consumes from the global random source. To avoid such breakages, programs that need a specific result sequence should use NewRand(NewSource(seed)) to obtain a random generator that other packages cannot access. (SA1019)
staticcheck (windows, amd64): mirror/x/exp/slices/sort_benchmark_test.go#L101
rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: Programs that call Seed and then expect a specific sequence of results from the global random source (using functions such as Int) can be broken when a dependency changes how much it consumes from the global random source. To avoid such breakages, programs that need a specific result sequence should use NewRand(NewSource(seed)) to obtain a random generator that other packages cannot access. (SA1019)
staticcheck (windows, amd64): mirror/x/exp/slices/sort_benchmark_test.go#L161
rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: Programs that call Seed and then expect a specific sequence of results from the global random source (using functions such as Int) can be broken when a dependency changes how much it consumes from the global random source. To avoid such breakages, programs that need a specific result sequence should use NewRand(NewSource(seed)) to obtain a random generator that other packages cannot access. (SA1019)
staticcheck (windows, amd64): mirror/x/exp/slices/zsortfunc.go#L309
this value of c is never used (SA4006)
staticcheck (windows, amd64): mirror/x/exp/slices/zsortfunc.go#L310
this value of a is never used (SA4006)
staticcheck (windows, amd64): mirror/x/exp/slices/zsortordered.go#L311
this value of c is never used (SA4006)
staticcheck (darwin, amd64)
The job was canceled because "windows_amd64" failed.
staticcheck (darwin, amd64): mirror/x/exp/slices/sort_benchmark_test.go#L18
rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: Programs that call Seed and then expect a specific sequence of results from the global random source (using functions such as Int) can be broken when a dependency changes how much it consumes from the global random source. To avoid such breakages, programs that need a specific result sequence should use NewRand(NewSource(seed)) to obtain a random generator that other packages cannot access. (SA1019)
staticcheck (darwin, amd64): mirror/x/exp/slices/sort_benchmark_test.go#L101
rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: Programs that call Seed and then expect a specific sequence of results from the global random source (using functions such as Int) can be broken when a dependency changes how much it consumes from the global random source. To avoid such breakages, programs that need a specific result sequence should use NewRand(NewSource(seed)) to obtain a random generator that other packages cannot access. (SA1019)
staticcheck (darwin, amd64): mirror/x/exp/slices/sort_benchmark_test.go#L161
rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: Programs that call Seed and then expect a specific sequence of results from the global random source (using functions such as Int) can be broken when a dependency changes how much it consumes from the global random source. To avoid such breakages, programs that need a specific result sequence should use NewRand(NewSource(seed)) to obtain a random generator that other packages cannot access. (SA1019)
staticcheck (darwin, amd64): mirror/x/exp/slices/zsortfunc.go#L309
this value of c is never used (SA4006)
staticcheck (darwin, amd64): mirror/x/exp/slices/zsortfunc.go#L310
this value of a is never used (SA4006)
staticcheck (darwin, amd64): mirror/x/exp/slices/zsortordered.go#L311
this value of c is never used (SA4006)
staticcheck (linux, amd64)
The job was canceled because "windows_amd64" failed.
staticcheck (linux, amd64): mirror/x/exp/slices/sort_benchmark_test.go#L18
rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: Programs that call Seed and then expect a specific sequence of results from the global random source (using functions such as Int) can be broken when a dependency changes how much it consumes from the global random source. To avoid such breakages, programs that need a specific result sequence should use NewRand(NewSource(seed)) to obtain a random generator that other packages cannot access. (SA1019)
staticcheck (linux, amd64): mirror/x/exp/slices/sort_benchmark_test.go#L101
rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: Programs that call Seed and then expect a specific sequence of results from the global random source (using functions such as Int) can be broken when a dependency changes how much it consumes from the global random source. To avoid such breakages, programs that need a specific result sequence should use NewRand(NewSource(seed)) to obtain a random generator that other packages cannot access. (SA1019)
staticcheck (linux, amd64): mirror/x/exp/slices/sort_benchmark_test.go#L161
rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: Programs that call Seed and then expect a specific sequence of results from the global random source (using functions such as Int) can be broken when a dependency changes how much it consumes from the global random source. To avoid such breakages, programs that need a specific result sequence should use NewRand(NewSource(seed)) to obtain a random generator that other packages cannot access. (SA1019)
staticcheck (linux, amd64): mirror/x/exp/slices/zsortfunc.go#L309
this value of c is never used (SA4006)
staticcheck (linux, amd64): mirror/x/exp/slices/zsortfunc.go#L310
this value of a is never used (SA4006)
staticcheck (linux, amd64): mirror/x/exp/slices/zsortordered.go#L311
this value of c is never used (SA4006)