fix: add CGO build tags to consistency tests, remove unused isHex function
This commit is contained in:
parent
7eee31d721
commit
13ffb81cab
3 changed files with 6 additions and 10 deletions
|
|
@ -373,13 +373,3 @@ func GenerateNewAPIKey(admin bool, roles []string, permissions map[string]bool)
|
|||
|
||||
return plaintext, entry, nil
|
||||
}
|
||||
|
||||
// isHex checks if a string contains only hex characters
|
||||
func isHex(s string) bool {
|
||||
for _, c := range s {
|
||||
if !((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F')) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return len(s) > 0
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
//go:build cgo
|
||||
// +build cgo
|
||||
|
||||
// Command update computes expected hashes for fixtures using the reference Go implementation
|
||||
package main
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
//go:build cgo
|
||||
// +build cgo
|
||||
|
||||
package consistency
|
||||
|
||||
import (
|
||||
|
|
|
|||
Loading…
Reference in a new issue