Skip to content

WIP: injecting builder implementation from CargoBuild #68

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

Closed
wants to merge 1 commit into from

Conversation

AnderEnder
Copy link
Contributor

  • inject CargoBuild builder into CommandCargoExt
  • implement CommandCargoBuildExt to finish the builder

Copy link
Contributor

@epage epage left a comment

Choose a reason for hiding this comment

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

Some concerns I have with going this direction

  • See my other comment about going 1.0
  • I feel weird putting a factory on one type (Command) for other types (Command or PathBuf)
  • Previously, I've taken the stance of simple, quick and dirty use cases are built in and advanced use cases are when someone should go to escargot. This blurs that line. For heavy testing, someone probably needs to be caching the binary which this doesn't support but this does support all of the other "heavy lifting" API features.

Maybe it could help if you clarified what is your motivation for building all of this in rather than reaching to escargot for these cases?

@@ -18,7 +18,7 @@ name = "bin_fixture"
predicates = { version = "1.0", default-features = false, features = ["difference"] }
predicates-core = "1.0"
predicates-tree = "1.0"
escargot = "0.3"
escargot = "0.4"
Copy link
Contributor

Choose a reason for hiding this comment

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

I've been working towards assert_cmd being 1.0. The current quiet period is me awaiting feedback. Escargot is further from 1.0. It is a lot closer now after my recent PRs but I still want to get some more practical usage out of it first (like with stager / cargo-tarball).

Even once escargot goes 1.0, I expected to not have much resistance to creating a 2.0, etc because I was not expecting it to be in APIs of other crates. Putting it in another crate's API makes me want to make sure the API is even more solid and could delay 1.0.

@epage
Copy link
Contributor

epage commented Jan 29, 2019

Closing in favor of #69

@epage epage closed this Jan 29, 2019
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