mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
v10.98's log shows the trim doing exactly what it was meant to and then being thrown away: --- .meteor-spk/bundle: 856M total (first pack, fails) bundle-trim: removed 5236 files, 355 MiB prune-unreachable-npm: removed 28 package(s), 49.9 MiB --- .meteor-spk/bundle: 424M total (424M + 336M deps = 760M, under 1 GiB) Building Meteor app... <- pack rebuilds it App exceeds uncompressed size limit of 1 GiB `meteor-spk pack` runs the Meteor build first, so the retry regenerated the bundle and packed the untrimmed one. I HAD THIS WRONG, and the comment in this file said so confidently: v10.95's "pack REUSES the bundle" was inferred from a 852M -> 833M reading taken right after the prune - the same point in the sequence as the 424M above - and never checked against what the SECOND pack did. The trim never survived a pack. Sandstorm's own `spk pack` does only the packing: it reads sandstorm-pkgdef.capnp, whose sourceMap searchPath is exactly the two trees the trim has just finished with, and signs with ~/.sandstorm-keyring. The retry uses that when the binary is there - the job installs Sandstorm, so it is - and falls back to meteor-spk with a ::warning:: saying the fallback undoes the trim, rather than failing silently in a way that looks like the trim not working. Unverified here: this sandbox has no spk binary, so the invocation is written from the pkgdef's own contract rather than run. The next release either packs or says which of the two paths it took. Thanks to xet7 !