-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Exclude id from NetworkImpl.NetworkImplBuilder (testcontainers#8125) #2807
Exclude id from NetworkImpl.NetworkImplBuilder (testcontainers#8125) #2807
Conversation
We had some issues with the quay.io docker registry, which caused the build to fail. Will update the branch from master to include #2805. |
Thanks @rnorth, I saw quay was having problems again. |
Looks like we have a check failure in the |
@rnorth we definitely do, because the constructor was public :) Let's make it backward compatible and deprecate first |
Assuming you want something like this?
|
@quincy no, the other one ("all args constructor"), with the |
Ah, right, because |
That doesn't appear to have fixed the issue. It's still complaining about the removed setter. |
Okay, I've pushed a new commit which delomboks the existing builder, and deprecates the If you guys know a better way to deal with this through lombok directly, please clue me in. I did not find anything in their documentation which looked promising. |
@quincy I wonder if adding |
@bsideup, yes, marking the field deprecated makes it deprecated in the builder. I believe you are suggesting we could mark the Let me know if that sounds good, or if you have something else in mind, and I can get that change pushed. |
@quincy yes, this definitely sounds good 👍 |
The field is deprecated in order to mark the NetworkBuildImpl#id method deprecated so that the method can later be removed. We'll undeprecate the field at that time.
dc343ea
to
0c4dcfb
Compare
@quincy thanks for the ping. I guess we should also override |
@bsideup, the getter is already overridden.
I am not really familiar with lombok so I am not sure how to solve that. Any suggestions? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this. |
I got quite a bit more busy so I kind of lost track of this, but I'm still interested in finishing this PR. I'm not sure what the best way forward is though, are there any suggestions about how to deal with the getter being marked deprecated? |
I think the PR is having the desired effect: I'm going to approve but not merge; @bsideup if you think this is missing something still please say. |
This seemed like an easy issue to get started contributing. I'm a big fan of the project and have been evangelizing it at my company.