Fix TOOLS_JAVA_VERSION export in Dockerfile#296
Conversation
Also remove the no-ops $PWD Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
|
@kzantow please help verify at your convenience. thank you. |
|
Thanks @bact -- I can confirm the It looks like the version was removed from the jar, which seems like a simple fix but I'm not sure if there's a way to confirm the result of the workflow |
If you mean the "spdx-tools-jar-with-dependencies.jar" in the usage, it is hard-coded here: To see if the jar is properly named with expected version number, you can try: docker run --rm --entrypoint sh tools-java-fix -c 'ls /usr/lib/java/spdx/*.jar' To see if the version number is properly substituted in the docker run --rm --entrypoint sh tools-java-fix -c 'cat /usr/bin/tools-java'These are checks that included in the smoke test, proposed in this PR: #298 -- should help prevent this issue in the future. |
So in our case,
TOOLS_JAVA_VERSIONis lost and breaks the@@VERSION@@substitution for thescripts/tools-java-wrapper.sh-- producingtools-java--jar-with-dependencies.jar(missing version, double dash), causing error.source=$PWDon the bind mount.$PWD is not a recognized variable in Dockerfile, always empty.
(No change in behavior, as default is the build context root. Just a cleanup to avoid confusion)
To fix #295