service-worker.js.map making the openSUSE builds non-reproducible
Dear opencloud maintainers,
I am maintaining the openSUSE package for the opencloud server.
The package works like a charm, but unfortunately it does not build reproducibly. There seems to be a file services/idp/assets/identifier/service-worker.js.map, created during the pnpm build step, that contains a tmp directory (which is named differently in each build). And this gets included into the final opencloud binary apparently.
{"version":3,"file":"service-worker.js","sources":["../../../../../../../../tmp/5f4f0da60c97bf67ee61e67bc264d98e/service-worker.js"],...
As I am not familiar with pnpm and its internals, is there a way to tell pnpm to not do that? As this path is not available outside the build environment, there is no use in putting it in. Is the file needed? Could I safely delete it? Can I tell pnpm to use a constant tmp directory?
Thanks in advance!
Kind Regards, Johannes
@dragotin @dragonchaser FYI
@johanneskastl there is a --store-dir flag to pnpm install maybe this helps?