Skip to content
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

Merged
merged 3 commits into from
Jan 31, 2025

Conversation

kanaksinghal
Copy link
Contributor

No description provided.

@chinmayb
Copy link
Contributor

You may also need to do on top of
https://github.com/infobloxopen/protoc-gen-gorm/releases/tag/v0.20.2

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
Copy link
Contributor

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:

_ "github.com/lib/pq"

I don't see anything in this file that would depend on pq being registered.

Copy link
Contributor Author

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
Comment on lines 109 to 111
cd types && go mod tidy
cd example && go mod tidy
go mod tidy
Copy link
Contributor

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

Suggested change
cd types && go mod tidy
cd example && go mod tidy
go mod tidy
find . -name go.mod -execdir go mod tidy \;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, thanks.

@kd7lxl kd7lxl requested a review from Calebjh January 23, 2025 16:47
@kanaksinghal kanaksinghal changed the title prevent dependency hell by splitting go mods DDIDNS-1198 prevent dependency hell by splitting go mods Jan 30, 2025
@kanaksinghal
Copy link
Contributor Author

You may also need to do on top of https://github.com/infobloxopen/protoc-gen-gorm/releases/tag/v0.20.2

Thanks @chinmayb for bringing this up. I'll raise a Patch PR after this one merges.

@chinmayb
Copy link
Contributor

@kanaksinghal we can add a github action to check if go mod runs fine during PR

@chinmayb chinmayb merged commit a23e548 into infobloxopen:main Jan 31, 2025
2 checks passed
@kanaksinghal kanaksinghal deleted the go-work branch January 31, 2025 06:18
@kanaksinghal kanaksinghal restored the go-work branch January 31, 2025 06:18
@kanaksinghal kanaksinghal deleted the go-work branch January 31, 2025 06:18
kanaksinghal added a commit to kanaksinghal/protoc-gen-gorm that referenced this pull request Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants