Switch remote deploy to vendored source builds
Move remote deployment to a vendored source bundle built on the target host via Docker so redeploys no longer require local cross-compilation or host Go installation. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
26
vendor/github.com/samber/lo/internal/rand/ordered_go118.go
generated
vendored
Normal file
26
vendor/github.com/samber/lo/internal/rand/ordered_go118.go
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
//go:build !go1.22
|
||||
|
||||
package rand
|
||||
|
||||
import "math/rand"
|
||||
|
||||
func Shuffle(n int, swap func(i, j int)) {
|
||||
rand.Shuffle(n, swap)
|
||||
}
|
||||
|
||||
func IntN(n int) int {
|
||||
// bearer:disable go_gosec_crypto_weak_random
|
||||
return rand.Intn(n)
|
||||
}
|
||||
|
||||
func Int64() int64 {
|
||||
// bearer:disable go_gosec_crypto_weak_random
|
||||
n := rand.Int63()
|
||||
|
||||
// bearer:disable go_gosec_crypto_weak_random
|
||||
if rand.Intn(2) == 0 {
|
||||
return -n
|
||||
}
|
||||
|
||||
return n
|
||||
}
|
||||
17
vendor/github.com/samber/lo/internal/rand/ordered_go122.go
generated
vendored
Normal file
17
vendor/github.com/samber/lo/internal/rand/ordered_go122.go
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//go:build go1.22
|
||||
|
||||
package rand
|
||||
|
||||
import "math/rand/v2"
|
||||
|
||||
func Shuffle(n int, swap func(i, j int)) {
|
||||
rand.Shuffle(n, swap)
|
||||
}
|
||||
|
||||
func IntN(n int) int {
|
||||
return rand.IntN(n)
|
||||
}
|
||||
|
||||
func Int64() int64 {
|
||||
return rand.Int64()
|
||||
}
|
||||
Reference in New Issue
Block a user