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

buildRustPackage: inherit preUnpack #26206

Closed

Conversation

FlorentBecker
Copy link
Contributor

Motivation for this change

When a preUnpack phase is provided for a rust package, it's generally needed by fetch-cargo-deps too in order to reach the Cargo.toml file in the unpacked archive. This changes makes fetchcargo inherit the preUnpack from the package it's being called for. I'm not sure if postUnpack is needed or useful. Opinions?

@mention-bot
Copy link

@FlorentBecker, thanks for your PR! By analyzing the history of the files in this pull request, we identified @dvc94ch, @abbradar and @Mic92 to be potential reviewers.

@8573
Copy link
Contributor

8573 commented May 30, 2017

I think postUnpack might be useful for injecting a Cargo.lock file
(required by fetch-cargo-deps) for packages that exclude it from
their source repositories.

@Mic92
Copy link
Member

Mic92 commented May 30, 2017

Does preUnpack provide convenient access to the source code? We have also cargoDepsHook and cargoUpdateHook to patch Cargo.toml. There might be still other use cases for preUnpack, I am not aware of though.

@Mic92
Copy link
Member

Mic92 commented Nov 28, 2018

There is also cargoPatches. I don't think we should make it more complicated.

@Mic92 Mic92 closed this Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants