-
-
Notifications
You must be signed in to change notification settings - Fork 42
Implementing multiple destinations for mcopy donwloads #641
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
Hi @itzg, I know some java. but things might be a bit hacky. I ran the tests to ensure everything is still working and I added some new ones |
Sorry, I meant to preemptively point out that I would like to keep the |
I reintroduced I have to admit, that I don't know how these manifests work. Since the unit tests are passing, I assume everything is working. Could you please verify that it does? I also added another unit test for that. |
Thanks. Yeah, I'll take a closer look at the manifest part. Basically they're a standard json structure I'm doing with a file listing and other data of interest for each feature, like modpack versions. |
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.
Thanks for the update
I'm actually thinking the entry prefixes are additive to the |
The prefixes are additive to the
Any overwrite down the line should work like that: |
Yes, this sounds more correct. |
Thanks. Looks like we're good to go now? |
I believe so. Thanks! I'll give it one more look next time I'm at my computer and get it merged. |
Release in https://github.com/itzg/mc-image-helper/releases/tag/1.49.0, so now can be updated at and image side script changes can be made. More info here |
Something like this is needed for itzg/docker-minecraft-server#3658.
This PR aims to add the ability to specify mcopy destinations per resource.
For example
and
The prefixes are additive to the --to flag.
--to is now always used as the base path/workdir for mcopy.
If there is a absolute path given, like in the overrideDestOrder test, the base path gets overwritten
If there is a relative path, it will be based of the --to path
Any overwrite down the line should work like that:
--to -> File listing -> actual file
The--to
flag is now optional. But it should error if there is no destination for any given resource.--to
gets overwritten by any destination given by a resource.--to
gets overwritten by any destination given by file listingsfile listing destinations get overwritten by any destinations given by a resource
All of this does not work with manifests. If a manifest is specified by--manifest-id
or--scope
, a--to
path must be used and there is an (handled) error if it gets overwritten.