fastly/Viceroy

The `fastly compute serve` command errors out when using versions > 0.8.9

michaelginalick opened this issue · 2 comments

Version

Fastly CLI version v10.0.0 (daf4824e)
Built with go version go1.20.4 linux/amd64
Viceroy version: viceroy 0.5.0

What happened

Updated our computed edge service to use fastly 0.9.2. This service is utilizing the rust sdk. Ran the command

fastly compute serve

This is the error log I am receiving

✓ Verifying fastly.toml
✓ Identifying package name
✓ Identifying toolchain
✓ Running [scripts.build]
✓ Creating package archive

SUCCESS: Built package (pkg/users-api-proxy.tar.gz)

✓ Running local server

INFO: Listening on http://127.0.0.1:7676

INFO: Command output:
--------------------------------------------------------------------------------
2023-05-17T15:03:36.343726Z ERROR unknown import: `fastly_http_resp::http_keepalive_mode_set` has not been defined
--------------------------------------------------------------------------------

Here is the Cargo.toml for reference

[package]
name = "name"
version = "0.1.0"
authors = []
edition = "2021"
# Remove this line if you want to be able to publish this crate as open source on crates.io.
# Otherwise, `publish = false` prevents an accidental `cargo publish` from revealing private source.
publish = false

[profile.release]
debug = 1

[dependencies]
fastly = "^0.9.2"
log = "^0.4.17"
log-fastly = "^0.8.7"
jwt-simple = "0.10"
serde = "1.0.160"
regex = "1"

[dev-dependencies]
wasm-bindgen-test = "0.3.0"

Hi @michaelginalick

I believe this might be an issue for the https://github.com/fastly/viceroy project as the viceroy binary is what's passed your compiled Wasm binary when running compute serve.

There's also a PR related to this open at the moment:
#266

So I'll get this issue migrated.