You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like /tmp mounted as a tmpfs is a problem. It stopped working when I switched my /tmp folder to tmpfs and it does not reproduce when I try to run wasm-opt somewhere else. So I guess steps are:
Mount some folder as tmpfs
Try to run wasm-pack -d <tmpfs_folder>
What happens is probably tmpfs behaves weird with .read_dir() and .rename() here: src/wasm_opt.rs#L34, resulting in newly moved file to be picked up by the next iteration of the .read_dir(). Maybe it should extract the full list of files to process first, then process all files in a separate loop?
馃實 Your environment
Include the relevant details of your environment.
wasm-pack version: 0.12.1
rustc version: 1.77.0-nightly 2023-12-30
The text was updated successfully, but these errors were encountered:
馃悰 Bug description
wasm-pack
stuck runningwasm-opt
for the same file over and over:馃 Expected Behavior
wasm-opt
running once.馃憻 Steps to reproduce
It looks like
/tmp
mounted as atmpfs
is a problem. It stopped working when I switched my/tmp
folder totmpfs
and it does not reproduce when I try to runwasm-opt
somewhere else. So I guess steps are:wasm-pack -d <tmpfs_folder>
What happens is probably
tmpfs
behaves weird with.read_dir()
and.rename()
here: src/wasm_opt.rs#L34, resulting in newly moved file to be picked up by the next iteration of the.read_dir()
. Maybe it should extract the full list of files to process first, then process all files in a separate loop?馃實 Your environment
Include the relevant details of your environment.
wasm-pack version: 0.12.1
rustc version: 1.77.0-nightly 2023-12-30
The text was updated successfully, but these errors were encountered: