-
Notifications
You must be signed in to change notification settings - Fork 40
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
[omicron-package] add a way to show what Cargo commands will be run #7268
[omicron-package] add a way to show what Cargo commands will be run #7268
Conversation
Created using spr 1.3.6-beta.1
package/src/bin/omicron-package.rs
Outdated
return Ok(()); | ||
} | ||
let release_command = cargo_plan.release.build_command("build", true); | ||
let debug_command = cargo_plan.debug.build_command("build", true); |
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.
The second argument to build_command
is a boolean called release
- should it be false?
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.
Oh ugh... yeah. I'm going to make this an enum.
package/src/lib.rs
Outdated
@@ -110,6 +111,7 @@ pub enum BuildCommand { | |||
#[clap(long)] | |||
intermediate: bool, | |||
}, | |||
/// List the build commands that will be run |
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 comment in the right spot? I don't think the Package
command has changed 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.
No, whoops, not sure how it ended up there.
Created using spr 1.3.6-beta.1
Add a way to see what commands will be run, without actually running them.
As part of this, refactor
CargoPlan
and change its meaning slightly -- it nowindicates the set of debug and release packages that would be built.
In the future, we'll be able to use these structures to add lints around which
features get built.