fix: add CGO build tags to consistency tests, remove unused isHex function

This commit is contained in:
Jeremie Fraeys 2026-03-08 13:10:00 -04:00
parent 7eee31d721
commit 13ffb81cab
No known key found for this signature in database
3 changed files with 6 additions and 10 deletions

View file

@ -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
}

View file

@ -1,3 +1,6 @@
//go:build cgo
// +build cgo
// Command update computes expected hashes for fixtures using the reference Go implementation
package main

View file

@ -1,3 +1,6 @@
//go:build cgo
// +build cgo
package consistency
import (