Skip to content

Conversation

@febo
Copy link
Contributor

@febo febo commented Nov 7, 2025

Problem

#417 inverted the proc-macro test so semver-checks would run on library crates, but it broke the test for proc-macro crates.

Solution

Modify the test to look for a "proc-macro" attribute under the "[lib]" section. It also fixes a typo that made the test to (incorrectly) run on any crate:

  • inputs.package-path -> inputs.package_path

The problem with the current behaviour can be seen here: https://github.com/anza-xyz/solana-sdk/actions/runs/19166485673/job/54788310868

A successful run on a proc-macro crate: https://github.com/febo/solana-sdk/actions/runs/19168994216/job/54796492385

A successful run on a lib crate: https://github.com/febo/solana-sdk/actions/runs/19169075552/job/54796765269

@febo febo force-pushed the fix-proc-macro-test branch from 6518924 to dbe82e6 Compare November 7, 2025 12:30
@febo febo marked this pull request as ready for review November 7, 2025 13:00
@febo febo requested a review from joncinque November 7, 2025 13:00
Copy link
Collaborator

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Nice, thanks for fixing!

@febo febo merged commit 1f3e000 into anza-xyz:master Nov 7, 2025
24 checks passed
@febo febo deleted the fix-proc-macro-test branch November 7, 2025 14:01
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