Repository navigation
test(capi): the CMake test still asked for 0.1 - #137
Merged
Merged
Conversation
find_package(parsec 0.1) accepts only 0.1.x, as the config-version file means it to before 1.0, so the C test refused the 0.2.0 package and the capi job failed on main.
jamesconwaydev
enabled auto-merge
November 21, 2026 02:32
foothillsdigital
approved these changes
Nov 21, 2026
foothillsdigital
left a comment
Collaborator
There was a problem hiding this comment.
Checked 040f211:
mainis red as described. Onci.ymlat c2d09da (#133's merge), all threecapijobs fail. On this branch all 38 checks pass, those three included.- It's the only versioned request.
git grepfinds no otherfind_package(parsec 0.1,>= 0.1or similar incrates/parsec-capi, the bindings or the README. The README saysfind_package(parsec)with no version, andcapi.cchecks onlyPARSEC_VERSION_MAJOR == 0.
A thought for later, not this PR: this line will need the same edit at every minor release before 1.0. The test could read the minor from PARSEC_VERSION_MINOR in the header, or take the version from Cargo.toml through a -D define from c.rs, so a release can't turn capi red again.
Approving.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
After #133 set the version to 0.2.0, the
capijob failed onmainon all three systems:crates/parsec-capi/tests/CMakeLists.txtasks forfind_package(parsec 0.1). Before 1.0, the config-version file accepts only the same minor version, as it should, so a 0.2.0 package is refused.Change
The test asks for 0.2. The wiki's C API page gets the same edit after this merges.
Tests
This PR's
capijob runs the test against the 0.2.0 package on Linux, macOS and Windows.