-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🔨 Populate the guest cli args #393
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, I like that this makes viceroy serve
closer to viceroy run
, which uses the stem of the .wasm
filename as the program name.
let mut store = create_store(&self, session, profiler, |_| {}) | ||
.map_err(ExecutionError::Context)?; | ||
let mut store = create_store(&self, session, profiler, |ctx| { | ||
ctx.arg("compute-app"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you also want to add this for the ComponentCtx::create_store
case as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added this for components and enabled testing for it, but the adapter will need some changes to get the test passing. I'll put that on my TODO list for component parity, but don't think the adapter changes should block this PR.
33c87ad
to
7a8e4f3
Compare
7a8e4f3
to
b39997b
Compare
Populate the guest cli args with the single value "compute-app". This should simplify adoption for languages that assume the args list is non-empty. Fixes fastly#376
Populate the guest cli args with the single value
"compute-app"
. This should simplify adoption for languages that assume the args list is non-empty.Fixes #376