Frun1na opened a new issue, #5084: URL: https://github.com/apache/rocketmq-dashboard/issues/5084
### Before creating - [x] I have searched the existing issues and found no duplicate. - [x] I have checked the latest `rocketmq-studio` branch where this problem still exists. ### Bug report **Which page or component** Web distribution license gate: `npm run build` → `license:check` (`web/scripts/licenses.mjs`). **What happened** Every `npm run build` fails at the gate with: ``` license gate: build artifact verification failed: assets/index-*.js ``` Two deterministic causes: 1. `distributionLicenses()` hashes the output files in its own `generateBundle`, but `vite:build-import-analysis` injects the `__vite__mapDeps` preload map into the entry chunk in its own (later) `generateBundle`. The written entry chunk therefore never matches the manifest checksums. 2. `legalFiles()` walks each package directory without excluding the build output directory, so `checkDistribution`'s re-collection sees the just-written `dist/legal/licenses/**` and `dist/NOTICE` as new license sources of the app package — the "dependency versions/license texts changed" comparison can then never pass either. The existing `licenses.test.mjs` packaging test did not catch this because its fixture has no dynamic import, so no preload map was injected. **Expected behaviour** `npm run build` should end with `web license check passed: ...`. **Environment** - RocketMQ Studio: upstream `rocketmq-studio` tip `a562601d` - Node 20, vite as pinned in `package-lock.json` **Fix PR** - #5083 -- 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]
