Verify pure-rust-build
has limited tools/headers, use stable-slim
#1665
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.
As suggested in #1664 (review), this checks that packages that are intended to be absent, for the
pure-rust-build
test's results to be trusted, really are absent. As detailed in 71ba940, it also checks if commands such asg++
are available in the$PATH
, in case they are provided in an unexpected way.With that check in place, we can more easily change what Docker image we use for this job. Of the changes that are useful, I think the safest is to change from
bookworm
tobookworm-slim
. The "slim" images vary in what they omit, but they shouldn't add anything extra, and in any case, the check should catch anything unexpected. See c84c17e. This passed.A somewhat greater risk, but I think reasonable given the presence of the new steps that checks what's installed, is to use the
stable
label instead ofbookworm
, so that when a new stable release comes out, it is automatically used. I did this, withstable-slim
. See 2a791c8. This also passed. This is the current state on the feature branch, as I open this PR. However, that commit can be dropped or reverted if specific-release labels are prefered.