Check for unrecognized *-sys
dependencies
#1688
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a regression test for the improvement in 3506afb (#1684) that fixed the unintended
libsqlite3-sys
dependency ofmax-pure
reported in #1681. This also tries to guard against the introduction of other such crates asmax-pure
dependencies.Specifically, this builds on #1682 by adding another step to
pure-rust-build
-- this one short, and allowed to fail the job (i.e. notcontinue-on-error
) -- that verifies there are no dependencies named like*-sys
, other thanlinux-raw-sys
, which is known about.I've verified in my fork that the new step fails when applied prior to 3506afb (#1684), and passes afterwards.
Edit: I had meant to do things in such a way as to verify that here, too, but I forgot about how checks are actually run as if on a merge commit that would integrate a PR rather than at the tip of the PR (actions/checkout#504), even though that behavior is something I had recently reviewed for something else. I've edited out the misleading details that were inaccurate with respect to upstream checks.
I've also taken this opportunity to improve a shell variable I had somewhat misnamed, in another
pure-rust-build
step.