Closed jansorg closed 7 months ago
Very nice, thanks!
Non-x86 archs being significantly bigger is also my experience, but I've never investigated why. The builder images being out of date is a really good point, they're built and pushed occasionally and should at least be updated before releases. I'm adding it to the release checklist for next time.
This reduces the size of the Linux x86_64 binary from 15 megabytes to 5.8 megabytes and fixes the build for Linux aarch64.
Building with
alpine:latest
creates a binary of 29 megabytes, but when building withalpine:3.16
it's just 5.8 megabytes. I'm not sure, though, what piece of GHC, GCC/LLVM, etc. is causing the increased size. The published build of ShellCheck 0.10.0 is 15 megabytes, instead of the expected 29 megabyes using the builder of this repo. Perhaps the container was still cached and based on an older version ofalpine
?Attempting to build for Linux aarch64 failed with this message. Ubuntu Kinetic is not provided with updates anmore. I'm not sure why the Linux binary for aarch64 is so much larger than for x86_64 (31 megabytes), but it's probably nothing I can fix. The Linux aarch64 binary of ShellCheck 0.9.0 is about 20.5 megabytes.