lizhimins opened a new pull request, #6350: URL: https://github.com/apache/rocketmq-dashboard/pull/6350
#6349 made `legal.py` read two new repo paths — `scripts/legal-determinations.json` and `legal/licenses/` — but `server/Dockerfile` still copies only the script itself into `/opt/studio-legal`. `check-jar` runs inside the image, where `legal.py` resolves its base to the parent of `scripts/`, so it found neither and re-derived the materials from an empty determination set. The result does not match what the maven gate embedded, and the image build dies with: ``` license gate: JAR is missing legal materials or they do not match the actual dependencies: META-INF/LICENSE ``` Two COPY lines, at the same relative paths the script expects. Verified without building an image, against a directory laid out exactly like `/opt/studio-legal`: | layout | result | |:--|:--| | script + determinations + collected texts | `JAR license check passed: 278 actual components (143 Apache-2.0 covered, 20 from collected text, 2 Category B)`, exit 0 | | determinations and texts removed | the exact error above, exit 1 | Found by re-running the full deploy with both gates back on (`LEGAL_GATE=1`, no `-Dmaven.antrun.skip`), which is the configuration a release build uses. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
