Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use templating to avoid duplicating the YARP version in many places #1295

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

eregon
Copy link
Member

@eregon eregon commented Aug 21, 2023

There is only two places left which duplicate the version:

Gemfile.lock:4: yarp (0.8.0)
Seems unavoidable.

rust/yarp-sys/tests/utils_tests.rs:15: assert_eq!(&cstring.to_string_lossy(), "0.8.0");
Not sure how to get the version there.

@eregon eregon requested a review from kddnewton August 21, 2023 14:42
@eregon eregon force-pushed the version-in-template branch 2 times, most recently from 03d71bd to ee8365c Compare August 21, 2023 14:50
@eregon eregon force-pushed the version-in-template branch 2 times, most recently from 4542f78 to 79fcb3d Compare August 21, 2023 15:23
@@ -219,6 +219,7 @@ jobs:
run: |
bundle install
rm -rf lib ext # ensure we don't use the local files
git checkout lib/yarp/version.rb # we need version.rb to load the gemspec
Copy link
Member Author

Choose a reason for hiding this comment

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

Either this or we need to move the version outside of lib ext due to the line above.

@kddnewton kddnewton merged commit a6f0909 into ruby:main Aug 25, 2023
45 checks passed
@eregon eregon mentioned this pull request Feb 14, 2024
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.

3 participants