-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[GR-37154] Fix handling of resources with trailing slashes #4327
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
|
Update: this is now fixed. Update2: testing this branch with latest Quarkus seems to resolve the Quarkus issues that appeared after #4281 (see https://github.com/graalvm/mandrel/actions/runs/1848087712) I am keeping this as draft till I get some tests in place to ensure this doesn't break again in the future. |
It appears that |
|
This is now ready for review. In order for the new tests to work diff --git a/mx_jardistribution.py b/mx_jardistribution.py
index 42e6c3f..d60f504 100755
--- a/mx_jardistribution.py
+++ b/mx_jardistribution.py
@@ -998,6 +998,8 @@ class _ArchiveStager(object):
def add_classes(archivePrefix, includeServices):
for root, _, files in os.walk(outputDir):
reldir = root[len(outputDir) + 1:]
+ dirEntry = reldir.replace(os.sep, '/') + '/'
+ self.bin_archive.entries[dirEntry] = dirEntry
for f in files:
relpath = join(reldir, f)
self.add_file(dep, outputDir, relpath, archivePrefix, arcnameCheck=overlay_check, includeServices=includeServices)I don't know if this change would be welcome on |
substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/Resources.java
Outdated
Show resolved
Hide resolved
After spending way too much time to find something appropriate I now think the best would be to add this to mx. But not like suggested in #4327 (comment) Instead I would make the mentioned code conditional of a special filename (e.g. |
|
i think that's fine |
|
@zakkak please prepare the mx PR that we need for this PR and add me and @gilles-duboscq as reviewers. |
|
Thanks for the input @olpaw !
Done. This PR is now blocked by graalvm/mx#256 |
|
@zakkak your mx PR got merged. Now you need to update this PR to make substratevm depend on the version of mx that contains your change. I.e. adjust
|
|
@olpaw |
- Adds .mxkeep file to create the necessary jar entry - Bumps requires mx version to work with .mxkeep
Fix #4326