mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-06 06:12:16 +00:00
chore: fix generators in crypto package (#12008)
# Which Problems Are Solved `@zitadel/api:generate-go` failed due to duplicate generated files. https://github.com/zitadel/zitadel/pull/11820 removed the old generated file and added a generate command to the `internal/crypto/crypto.go` file. However, there was already a `internal/crypto/generate.go` with a different output file name (the old file). # How the Problems Are Solved Removed the `internal/crypto/generate.go` file and moved the second generate into `internal/crypto/code.go`. # Additional Changes Noticed that mockgen is an old version and updated it. Also then checked all other tools and updated them. # Additional Context - relates to #11820 - noted internally
This commit is contained in:
@@ -22,8 +22,9 @@ const _DeviceAuthState_name = "undefinedinitiatedapproveddeniedexpireddoneinvali
|
||||
var _DeviceAuthState_index = [...]uint8{0, 9, 18, 26, 32, 39, 43, 50}
|
||||
|
||||
func (i DeviceAuthState) String() string {
|
||||
if i >= DeviceAuthState(len(_DeviceAuthState_index)-1) {
|
||||
idx := int(i) - 0
|
||||
if i < 0 || idx >= len(_DeviceAuthState_index)-1 {
|
||||
return "DeviceAuthState(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _DeviceAuthState_name[_DeviceAuthState_index[i]:_DeviceAuthState_index[i+1]]
|
||||
return _DeviceAuthState_name[_DeviceAuthState_index[idx]:_DeviceAuthState_index[idx+1]]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user