mirror of
https://github.com/zitadel/zitadel.git
synced 2026-10-25 23:50:11 -05: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
(cherry picked from commit fbb6a406c8)
This commit is contained in:
22 files changed
+472
-679
No files matched your search
@@ -23,6 +23,8 @@ type GeneratorConfig struct {
|
||||
IncludeSymbols bool
|
||||
}
|
||||
|
||||
//go:generate mockgen -source code.go -destination ./code_mock.go -package crypto
|
||||
|
||||
type Generator interface {
|
||||
Length() uint
|
||||
Expiry() time.Duration
|
||||
|
||||
Reference in new issue
Block a user