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
Fastly CLI version v10.14.1 (b392688)
Built with go version go1.22.7 linux/amd64 (2024-10-01)
Viceroy version: viceroy 0.12.0
What happened
We want to run our rust binaries in non-release mode locally, when e.g. performing integration or manual tests against them, due to debug mode builds being significantly faster.
I have tried changing the build script to simply omit the --release flag.
However, I get the error failed to copy wasm binary: cannot read source file: /home/runner/work/edge-api/edge-api/target/wasm32-wasi/release/edge-api.wasm, which makes sense, as that is no longer the correct path, instead it is located under /target/wasm32-wasi/debug/edge-api.wasm
Internally it looks like the internalPostBuildCallback has a fixed idea of where the binary is located.
Currently we're performing a workaround by copying the binary with this monstrosity of a build script.
I tried using a post_build script as well, but the internalPostBuildCallback seems to run before that.
I believe this is related to #1317 as that is also caused by the internalPostBuildCallback having a fixed idea of where the binary is located.
A good solution would be to rely on the build script to actually produce the binary at the correct location, or allow me to specify where the binary to be copied resides.
The text was updated successfully, but these errors were encountered:
Thanks for the excellent issue, as always :-) Your analysis of the problem seems to be completely correct, we've got code making assumptions that it should not make.
Version
Fastly CLI version v10.14.1 (b392688)
Built with go version go1.22.7 linux/amd64 (2024-10-01)
Viceroy version: viceroy 0.12.0
What happened
We want to run our rust binaries in non-release mode locally, when e.g. performing integration or manual tests against them, due to debug mode builds being significantly faster.
I have tried changing the build script to simply omit the
--release
flag.However, I get the error
failed to copy wasm binary: cannot read source file: /home/runner/work/edge-api/edge-api/target/wasm32-wasi/release/edge-api.wasm
, which makes sense, as that is no longer the correct path, instead it is located under/target/wasm32-wasi/debug/edge-api.wasm
Internally it looks like the
internalPostBuildCallback
has a fixed idea of where the binary is located.Currently we're performing a workaround by copying the binary with this monstrosity of a build script.
I tried using a
post_build
script as well, but theinternalPostBuildCallback
seems to run before that.I believe this is related to #1317 as that is also caused by the
internalPostBuildCallback
having a fixed idea of where the binary is located.A good solution would be to rely on the
build
script to actually produce the binary at the correct location, or allow me to specify where the binary to be copied resides.The text was updated successfully, but these errors were encountered: