Skip to content
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

support cargo run on all pax-cli created projects and pax-example #64

Merged
merged 7 commits into from
Oct 20, 2023

Conversation

warfaj
Copy link
Member

@warfaj warfaj commented Oct 20, 2023

This makes default cargo run work.
includes 0.10.7 release which has a fix for assets folder that was breaking pax-cli create projects

@warfaj warfaj requested a review from zackbrown October 20, 2023 23:07
Copy link
Member

@zackbrown zackbrown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so cool! Just tried this on a fresh pax-cli new and all was good. Ran into a couple of small issues in monorepo/pax-example, but they were environment-specific. I documented both in inbox. LGTM!

let args: Vec<String> = env::args().skip(1).collect();

let pax_args = if args.is_empty() {
vec!["run", "--target=web"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the CLI separately handles defaults for target, i.e. when a target isn't specified. This introduces a "second source of truth" for default target, which is a latent headache for our future selves. Not worth stopping merge.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I didn't realize. Will clean that up and push another small PR.

@zackbrown zackbrown merged commit 1eadbd8 into master Oct 20, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants