Hi Jérémy, Thank you for your report!
On Sat, Apr 30, 2022 at 2:39 PM Jérémy Lal <kapo...@melix.org> wrote: > Source: golang-github-evanw-esbuild > Version: 0.14.25-1 > Severity: serious > Tags: ftbfs > Justification: fails to build from source (but built successfully in the past) > > your package FTBFS, however a trivial upstream update fixes it (took me a minute to rebuild it). I'd like to provide a bit more context: esbuild v0.14.25 started FTBFS when golang-1.18 became the default in Debian on about 2022-03-22. The actual FTBFS error looks something like this: ===== debian/rules execute_after_dh_auto_build-arch make[1]: Entering directory '/<<PKGBUILDDIR>>' ln -s _build/bin/esbuild . # Generate npm/esbuild/* node scripts/esbuild.js ./esbuild --neutral # Generate npm/esbuild-wasm/* GOPATH=/<<PKGBUILDDIR>>/_build GOCACHE=/<<PKGBUILDDIR>>/_build/go-build \ node scripts/esbuild.js ./esbuild --wasm /<<PKGBUILDDIR>>/scripts/esbuild.js:110 if (wasm_exec_js.indexOf(toReplace) === -1) throw new Error(`Failed to find ${JSON.stringify(toReplace)} in Go JS shim code`); ^ Error: Failed to find "global.fs = fs;" in Go JS shim code at replace (/<<PKGBUILDDIR>>/scripts/esbuild.js:110:55) at Object.exports.buildWasmLib (/<<PKGBUILDDIR>>/scripts/esbuild.js:113:3) at Object.<anonymous> (/<<PKGBUILDDIR>>/scripts/esbuild.js:366:52) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) at node:internal/main/run_main_module:17:47 make[1]: *** [debian/rules:25: execute_after_dh_auto_build-arch] Error 1 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:17: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 ===== This was apparently fixed in the upstream commit - https://github.com/evanw/esbuild/commit/517f77fa11da2287b4f63680cee9544be1f88c76 which was released upstream as v0.14.28 on 2022-03-25.