Files
nixpkgs/pkgs/by-name/en/ent-go/ent_version.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

29 lines
696 B
Diff

--- a/entc/gen/graph.go 2025-08-26 12:42:17.548313631 +0100
+++ b/entc/gen/graph.go 2025-08-26 12:43:32.398186157 +0100
@@ -1008,22 +1008,10 @@
// ModuleInfo returns the entgo.io/ent version.
func (Config) ModuleInfo() (m debug.Module) {
- const pkg = "entgo.io/ent"
- info, ok := debug.ReadBuildInfo()
- if !ok {
- return
- }
- // Was running as a CLI (ent/cmd/ent).
- if info.Main.Path == pkg {
- return info.Main
- }
- // Or, as a main package (ent/entc).
- for _, dep := range info.Deps {
- if dep.Path == pkg {
- return *dep
- }
+ return debug.Module{
+ Version: "@version@",
+ Sum: "@sum@",
}
- return
}
// FeatureEnabled reports if the given feature name is enabled.