-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Maintain deterministic order in withCopyFileToContainer and allow file reuse #2861
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
Conversation
23dbdcb
to
7a17b72
Compare
core/src/main/java/org/testcontainers/containers/GenericContainer.java
Outdated
Show resolved
Hide resolved
We're seeing a failure in the API-backwards compatibility tests: unfortunately this PR creates a breaking change in the API (removal of the Lombok-generated accessors for Would it be possible to reinstate these accessors, marked Once deprecated, we should remove after people have had a chance to migrate. @bsideup, @kiview please shout if you have any other ideas about how to approach this. |
@rnorth sure but let's be specific what exactly do you want them to do. |
Sorry for the delay in getting back to this. I'd assume that we'd be fine to have the ArrayList
Both accessors would be marked @deprecated. Does this make sense? |
@rnorth thanks for looking into this!
I can implement that However, calling code may rely on the fact that the map provided For example, today one can write:
-- and have effects of If we change I leave it up to you to decide whether breaking the API in a compile-error manner
You mean a copy (like |
Ah yes, you're quite right. In that case, we're running out of options that are not (really) excessive overkill. The next release (1.15.0) is going to include a swathe of deprecations, and we're allowing some small breaking changes into the API. I think we should go ahead and add this to the list. |
`withCopyFileToContainer` can be invoked multiple times, including with one `containerPath` being prefix of another `containerPath`. This change makes the end result deterministic. This also allows copying a single source file (e.g. `/dev/null`) to multiple destinations.
7a17b72
to
014dc96
Compare
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. |
|
withCopyFileToContainer
can be invoked multiple times, including withone
containerPath
being prefix of anothercontainerPath
.This change makes the end result deterministic.
This also allows copying a single source file (e.g.
/dev/null
) tomultiple destinations.
Fixes #2956