Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

easyjson complains when generating code to a different package. #45

Closed
nicolasparada opened this issue Jan 5, 2022 · 0 comments
Closed

Comments

@nicolasparada
Copy link

nicolasparada commented Jan 5, 2022

Getting easyjson-bootstrap.go:14:3: package db/http is not in GOROOT (/usr/local/go/src/db/http) when generating the code to a different package.

Of course I'm using gomod.

ex, _ := elk.NewExtension(
	elk.GenerateSpec("openapi.json"),
	elk.GenerateHandlers(),
)

err = entc.Generate("./schema", &gen.Config{
+	Target:  "db",
+	Package: "db",
	IDType:  &field.TypeInfo{Type: field.TypeString},
	Features: []gen.Feature{
		gen.FeaturePrivacy,
		gen.FeatureEntQL,
	},
}, entc.Extensions(ex))

It might be related to mailru/easyjson#293

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants