nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1--- a/entc/gen/graph.go 2025-08-26 12:42:17.548313631 +0100
2+++ b/entc/gen/graph.go 2025-08-26 12:43:32.398186157 +0100
3@@ -1008,22 +1008,10 @@
4
5 // ModuleInfo returns the entgo.io/ent version.
6 func (Config) ModuleInfo() (m debug.Module) {
7- const pkg = "entgo.io/ent"
8- info, ok := debug.ReadBuildInfo()
9- if !ok {
10- return
11- }
12- // Was running as a CLI (ent/cmd/ent).
13- if info.Main.Path == pkg {
14- return info.Main
15- }
16- // Or, as a main package (ent/entc).
17- for _, dep := range info.Deps {
18- if dep.Path == pkg {
19- return *dep
20- }
21+ return debug.Module{
22+ Version: "@version@",
23+ Sum: "@sum@",
24 }
25- return
26 }
27
28 // FeatureEnabled reports if the given feature name is enabled.