-
Notifications
You must be signed in to change notification settings - Fork 251
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
feat: add spin build command to run local build command for components #352
Conversation
bfcf3e1
to
fc0419d
Compare
.context("Component build command must have at least one item.")?; | ||
|
||
Exec::cmd(first) | ||
.cwd( |
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.
Doesn't need to be this PR, but it would be nice to be able to override this with e.g. component.build.workdir
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.
Opened #406 to track this.
@@ -1,21 +1,11 @@ | |||
use crate::parse_buildinfo; | |||
use crate::{opts::*, parse_buildinfo}; |
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.
Is this supposed to be in this PR?
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.
nm I get it; not sure the *
is worth it here.
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.
There are a lot of opts in this file, I'd rather not import every single one..
fc0419d
to
5f60f03
Compare
I think I addressed most of the comments, @lann. |
5f60f03
to
add49a8
Compare
This commit adds a new top level Spin command that simplifies building more complex applications. Specifically, this command will execute the build commands set in each local component configuration: ```toml [component.build] command = "cargo build --target wasm32-wasi --release --manifest-path http-rust/Cargo.toml" ``` The build commands for all components in the local application manifest are currently run sequentially (running multiple resource-intensive compilation processes concurrently does not seem to be the most efficient choice currently). Optionally, after all compilation processes are finished, if the `--up` flag is passed, the application can be started without calling `spin up`. This means that the entire developer "inner loop" for working on a Spin application can be `spin build --up`. Signed-off-by: Radu Matei <radu.matei@fermyon.com> feat Signed-off-by: Radu Matei <radu.matei@fermyon.com> feat Signed-off-by: Radu Matei <radu.matei@fermyon.com>
add49a8
to
892a239
Compare
Ok, did another round of updates to this PR, most importantly, |
ref #384
This commit adds a new top level Spin command that simplifies building more
complex applications. Specifically, this command will execute the build commands
set in each local component configuration:
The build commands for all components in the local application manifest are
currently run sequentially (running multiple resource-intensive compilation processes
concurrently does not seem to be the most efficient choice currently).
Optionally, after all compilation processes are finished, if the
--up
flag ispassed, the application can be started without calling
spin up
.This means that the entire developer "inner loop" for working on a Spin application
can be
spin build --up
.Signed-off-by: Radu Matei radu.matei@fermyon.com