Skip to content

test(capi): the CMake test still asked for 0.1 - #137

Merged
jamesconwaydev merged 1 commit into
mainfrom
capi-cmake-0.2
Nov 21, 2026
Merged

jamesconwaydev merged 1 commit into
mainfrom
capi-cmake-0.2

Conversation

@jamesconwaydev

Copy link
Copy Markdown
Collaborator

Problem

After #133 set the version to 0.2.0, the capi job failed on main on all three systems:

Could not find a configuration file for package "parsec" that is compatible
with requested version "0.1".

crates/parsec-capi/tests/CMakeLists.txt asks for find_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 capi job runs the test against the 0.2.0 package on Linux, macOS and Windows.

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.

@foothillsdigital foothillsdigital left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Checked 040f211:

  • main is red as described. On ci.yml at c2d09da (#133's merge), all three capi jobs fail. On this branch all 38 checks pass, those three included.
  • It's the only versioned request. git grep finds no other find_package(parsec 0.1, >= 0.1 or similar in crates/parsec-capi, the bindings or the README. The README says find_package(parsec) with no version, and capi.c checks only PARSEC_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.

@jamesconwaydev
jamesconwaydev added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit f961386 Nov 21, 2026
39 checks passed
@jamesconwaydev
jamesconwaydev deleted the capi-cmake-0.2 branch November 21, 2026 02:47
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