opencloud icon indicating copy to clipboard operation
opencloud copied to clipboard

service-worker.js.map making the openSUSE builds non-reproducible

Open johanneskastl opened this issue 1 month ago • 2 comments

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

johanneskastl avatar Nov 03 '25 18:11 johanneskastl

@dragotin @dragonchaser FYI

micbar avatar Nov 10 '25 08:11 micbar

@johanneskastl there is a --store-dir flag to pnpm install maybe this helps?

dragonchaser avatar Nov 17 '25 08:11 dragonchaser