-
-
Notifications
You must be signed in to change notification settings - Fork 697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project doesn't compile/run #751
Comments
I'm also having this problem, and I'm also trying to report a bug related to many2many. |
Any update on how to deal with the |
I also have this issue |
So the issue here as I understand it is that |
Could you please share what is the replace directive? I want to report an issue too. |
Am just writing up a PR now but I've checked out the gen repo and am using:
which resolves the |
Have raised an issue to fix what I think is the root cause |
I commented out the following in
then run it fails much later:
but this passes:
|
i've solved this problem with these steps:
git clone [email protected]:go-gorm/gen.git
before: import (
"xxxxxx"
"gorm.io/gen/examples"
"gorm.io/gen/examples/xxxx"
) after: import (
"xxxxxx"
"examples"
"examples/xxxx"
)
cd PATH/TO/YOUR/{github.com/go-gorm/gen/examples}
go mod download
# add this line
require gorm.io/gen/examples v0.3.25
# add this line
replace gorm.io/gen/examples v0.3.25 => PATH/TO/YOUR/{github.com/go-gorm/gen/examples}
|
GORM Playground Link
Tried also to run
go clean -modcache
andgo clean -cache
, but the problem continues.Description
Just trying to fork this repository to report a bug related to many2many.
The text was updated successfully, but these errors were encountered: