Skip to content

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

Merged
kddnewton merged 1 commit intoruby:mainfrom
eregon:version-in-template
Aug 25, 2023
Merged

Use templating to avoid duplicating the YARP version in many places#1295
kddnewton merged 1 commit intoruby:mainfrom
eregon:version-in-template

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
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.

@eregon eregon force-pushed the version-in-template branch from 79fcb3d to 9c359fd Compare August 22, 2023 16:17
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