-
Notifications
You must be signed in to change notification settings - Fork 165
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
DDIDNS-1198 prevent dependency hell by splitting go mods #283
Conversation
You may also need to do on top of |
types/go.mod
Outdated
require ( | ||
github.com/golang/protobuf v1.5.4 | ||
github.com/google/go-cmp v0.6.0 | ||
github.com/lib/pq v1.10.9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this might not actually be needed:
protoc-gen-gorm/types/inet_test.go
Line 8 in 7402b54
_ "github.com/lib/pq" |
I don't see anything in this file that would depend on pq being registered.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right, I removed and re-ran tests seems fine.
Makefile
Outdated
cd types && go mod tidy | ||
cd example && go mod tidy | ||
go mod tidy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can future proof this with
cd types && go mod tidy | |
cd example && go mod tidy | |
go mod tidy | |
find . -name go.mod -execdir go mod tidy \; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, thanks.
by splitting go mods
Thanks @chinmayb for bringing this up. I'll raise a Patch PR after this one merges. |
@kanaksinghal we can add a github action to check if go mod runs fine during PR |
by splitting go mods
No description provided.