-
Notifications
You must be signed in to change notification settings - Fork 445
Workaround build task issue in Ruby core CI
#1326
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
Conversation
The issue is described in ruby/rubygems#8477 The issue fails the workflow whenever RDoc's version is bumped as there will then be a mismatch between the target file name and the version that's actually built. For example: ``` rdoc 6.13.0 built to pkg/rdoc-6.12.0.gem. ``` This commit works around the issue by manually building the gem and installing it locally so the latest installed version will match the version contained in the gemspec file.
Deploying rdoc with
|
| Latest commit: |
5a0710a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8fcdde6d.rdoc-6cd.pages.dev |
| Branch Preview URL: | https://workaround-rubygems-issue-on.rdoc-6cd.pages.dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
| gem build rdoc.gemspec | ||
| gem install rdoc-*.gem |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need bundle exec ... here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don’t think so…? I don’t usually run gem with bundle as it usually doesn’t need any of the project’s dependencies. Is it a recommended practice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, sorry. You're right.
Our .gemspec doesn't use external libraries. So we don't need bundle exec here.
| gem build rdoc.gemspec | ||
| gem install rdoc-*.gem |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, sorry. You're right.
Our .gemspec doesn't use external libraries. So we don't need bundle exec here.
Co-authored-by: Sutou Kouhei <[email protected]>
The issue is described in ruby/rubygems#8477
The issue fails the workflow whenever RDoc's version is bumped as there will then be a mismatch between the target file name and the version that's actually built.
For example:
This commit works around the issue by manually building the gem and installing it locally so the latest installed version will match the version contained in the gemspec file.