bytecodealliance / bytecodealliance/ComponentizeJS

Reproducible builds

Abierto
#321 0 comentarios 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
Rust
Estrellas
391
Forks
53
Merge medio
3 d 5 h
PR fusionados (30 d)
1

Descripción

I have used ComponentizeJS in 3 different projects

I'm seeing with every project that the wasm file output is not reproducible from one build to the next

For example: https://github.com/rhodey/lock.host-wasm-js

I have `npm run bundle` and `npm run build`

I run `sha256sum dist/bundle.js` and determine the same js bundle is being produced

I run `sha256sum dist/bundle.wasm` and determine the wasm file is different with every run of `componentize-js`

It is not hard to imagine that more than 1 thing would need to change to get reproducible builds

A first thought is I think from what I have read that ComponentizeJS is doing something like snapshot of the JS Runtime memory in order to get faster boots. And so that is suspicious as an area of non determinism.

I will much appreciate any help with achieving reproducible builds and if it can be achieved quicker by disabling some features and losing some speed it would be acceptable for my purposes

Thanks!!

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.