-
Notifications
You must be signed in to change notification settings - Fork 741
Closed
Labels
bugSomething isn't workingSomething isn't workingstaleuntriagedThis issues has not yet been looked at by the MaintainersThis issues has not yet been looked at by the Maintainers
Description
Describe the bug
Running make generate
on a clean flyteadmin repo produces different results between go versions 1.18 and 1.19. This causes the Check Go Generate checker to fail and prevents using the latest version of go for development.
Looks like this is related to enumer
and alvaroloes/enumer#68.
Expected behavior
Running make generate
on a clean flyteadmin repo with the latest version of go produces the same output as Check Go Generate.
Additional context to reproduce
- Install latest version of go (1.19)
- From a clean flyteadmin repo, run
make generate
- Run
git diff
diff --git a/auth/config/authorizationservertype_enumer.go b/auth/config/authorizationservertype_enumer.go
index a5c7dc2..f6e89a6 100644
--- a/auth/config/authorizationservertype_enumer.go
+++ b/auth/config/authorizationservertype_enumer.go
@@ -1,6 +1,5 @@
// Code generated by "enumer --type=AuthorizationServerType --trimprefix=AuthorizationServerType -json"; DO NOT EDIT.
-//
package config
import (
diff --git a/auth/config/samesite_enumer.go b/auth/config/samesite_enumer.go
index af9bfdf..e42e58f 100644
--- a/auth/config/samesite_enumer.go
+++ b/auth/config/samesite_enumer.go
@@ -1,6 +1,5 @@
// Code generated by "enumer --type=SameSite --trimprefix=SameSite -json"; DO NOT EDIT.
-//
package config
import (
diff --git a/pkg/runtime/interfaces/inlineeventdatapolicy_enumer.go b/pkg/runtime/interfaces/inlineeventdatapolicy_enumer.go
index 63ff94e..7c3895b 100644
--- a/pkg/runtime/interfaces/inlineeventdatapolicy_enumer.go
+++ b/pkg/runtime/interfaces/inlineeventdatapolicy_enumer.go
@@ -1,6 +1,5 @@
// Code generated by "enumer -type=InlineEventDataPolicy -trimprefix=InlineEventDataPolicy"; DO NOT EDIT.
-//
package interfaces
import (
Screenshots
No response
Are you sure this issue hasn't been raised already?
- Yes
Have you read the Code of Conduct?
- Yes
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingstaleuntriagedThis issues has not yet been looked at by the MaintainersThis issues has not yet been looked at by the Maintainers