René's URL Explorer Experiment


Title: `ruby_library` not using specified SDK version · Issue #148 · bazelruby/rules_ruby · GitHub

Open Graph Title: `ruby_library` not using specified SDK version · Issue #148 · bazelruby/rules_ruby

X Title: `ruby_library` not using specified SDK version · Issue #148 · bazelruby/rules_ruby

Description: We are testing out the flow where the desired version of ruby is not installed on the host. I expect for rules_ruby to be able to install and use v2.7.6. (Note this first requires bumping the ruby-build version, which I created a PR here...

Open Graph Description: We are testing out the flow where the desired version of ruby is not installed on the host. I expect for rules_ruby to be able to install and use v2.7.6. (Note this first requires bumping the ruby-...

X Description: We are testing out the flow where the desired version of ruby is not installed on the host. I expect for rules_ruby to be able to install and use v2.7.6. (Note this first requires bumping the ruby-...

Opengraph URL: https://github.com/bazelruby/rules_ruby/issues/148

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ruby_library` not using specified SDK version","articleBody":"We are testing out the flow where the desired version of ruby is not installed on the host.\r\n\r\nI expect for rules_ruby to be able to install and use v2.7.6. (Note this first requires bumping the `ruby-build` version, which I created a [PR](https://github.com/bazelruby/rules_ruby/pull/147) here).\r\n\r\nWith the version specified in WORKSPACE:\r\n```\r\nload(\"@bazelruby_rules_ruby//ruby:deps.bzl\", \"rules_ruby_select_sdk\")\r\nrules_ruby_select_sdk(version = \"2.7.6\")\r\n```\r\n\r\nI can confirm that ruby interpreter that's installed to the `@org_ruby_lang_ruby_toolchain` external repository is the right version:\r\n```\r\n➜  org_ruby_lang_ruby_toolchain build/bin/ruby -v\r\nruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [arm64-darwin21]\r\n```\r\n\r\nHowever, running any `ruby_library` target i get this error on my macos:\r\n\r\n`/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in 'require': incompatible library version...`\r\n\r\nI think this requires updating the way [the binary wrapper](https://github.com/bazelruby/rules_ruby/blob/master/ruby/private/binary_wrapper.tpl) is implemented, which defaults to the first ruby found in PATH today rather than the version that's specified in the SDK:\r\n\r\n```\r\n#!/usr/bin/env ruby\r\n\r\n...\r\n\r\ndef find_ruby_binary\r\n  File.join(\r\n    RbConfig::CONFIG['bindir'],\r\n    RbConfig::CONFIG['ruby_install_name'],\r\n  )\r\nend\r\n```\r\n\r\nIn fact, it looks like there was an intention to substitute `{interpreter}` [here](https://github.com/bazelruby/rules_ruby/blob/cc2f5ce961f7fa34557264dd05c7597e634f31e1/ruby/private/binary.bzl#L68) but the wrapper script template itself does not have a `{interpreter}` placeholder anywhere, which looks like a bug.","author":{"url":"https://github.com/jgao54","@type":"Person","name":"jgao54"},"datePublished":"2023-06-27T01:51:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/148/rules_ruby/issues/148"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1bf0c9e3-cb09-c341-a86b-8bbdf8aea140
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8B7C:F5443:5E0C3F7:800B838:6973405F
html-safe-nonce956d4d460cc4c4ece33feb6bdfb1aed18c2f7ee8ecf8f3634450b7138a15679f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjdDOkY1NDQzOjVFMEMzRjc6ODAwQjgzODo2OTczNDA1RiIsInZpc2l0b3JfaWQiOiI1Njk1Nzg2MTExMzEzNTkyNDE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfd601e5c7411126eca52d491118532ee825a120cf647c5d405356f0441f2e345
hovercard-subject-tagissue:1775948351
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bazelruby/rules_ruby/148/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7ca56fb7070d85cffacb6a726317eb7fdb1db9a5930eaa935c3bdc4fc70cafb7/bazelruby/rules_ruby/issues/148
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7ca56fb7070d85cffacb6a726317eb7fdb1db9a5930eaa935c3bdc4fc70cafb7/bazelruby/rules_ruby/issues/148
og:image:altWe are testing out the flow where the desired version of ruby is not installed on the host. I expect for rules_ruby to be able to install and use v2.7.6. (Note this first requires bumping the ruby-...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejgao54
hostnamegithub.com
expected-hostnamegithub.com
None574266c5e0389fb19fcea86ddb6d5b0008f148ada57d7a37ec4c90a19caee8f6
turbo-cache-controlno-preview
go-importgithub.com/bazelruby/rules_ruby git https://github.com/bazelruby/rules_ruby.git
octolytics-dimension-user_id57414752
octolytics-dimension-user_loginbazelruby
octolytics-dimension-repository_id220572018
octolytics-dimension-repository_nwobazelruby/rules_ruby
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id220572018
octolytics-dimension-repository_network_root_nwobazelruby/rules_ruby
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3c64ddf9c1ec6ebf99c7b6faf0c61676d36f64c0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/bazelruby/rules_ruby/issues/148#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbazelruby%2Frules_ruby%2Fissues%2F148
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbazelruby%2Frules_ruby%2Fissues%2F148
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=bazelruby%2Frules_ruby
Reloadhttps://patch-diff.githubusercontent.com/bazelruby/rules_ruby/issues/148
Reloadhttps://patch-diff.githubusercontent.com/bazelruby/rules_ruby/issues/148
Reloadhttps://patch-diff.githubusercontent.com/bazelruby/rules_ruby/issues/148
bazelruby https://patch-diff.githubusercontent.com/bazelruby
rules_rubyhttps://patch-diff.githubusercontent.com/bazelruby/rules_ruby
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fbazelruby%2Frules_ruby
Fork 32 https://patch-diff.githubusercontent.com/login?return_to=%2Fbazelruby%2Frules_ruby
Star 99 https://patch-diff.githubusercontent.com/login?return_to=%2Fbazelruby%2Frules_ruby
Code https://patch-diff.githubusercontent.com/bazelruby/rules_ruby
Issues 18 https://patch-diff.githubusercontent.com/bazelruby/rules_ruby/issues
Pull requests 5 https://patch-diff.githubusercontent.com/bazelruby/rules_ruby/pulls
Discussions https://patch-diff.githubusercontent.com/bazelruby/rules_ruby/discussions
Actions https://patch-diff.githubusercontent.com/bazelruby/rules_ruby/actions
Projects 0 https://patch-diff.githubusercontent.com/bazelruby/rules_ruby/projects
Wiki https://patch-diff.githubusercontent.com/bazelruby/rules_ruby/wiki
Security 0 https://patch-diff.githubusercontent.com/bazelruby/rules_ruby/security
Insights https://patch-diff.githubusercontent.com/bazelruby/rules_ruby/pulse
Code https://patch-diff.githubusercontent.com/bazelruby/rules_ruby
Issues https://patch-diff.githubusercontent.com/bazelruby/rules_ruby/issues
Pull requests https://patch-diff.githubusercontent.com/bazelruby/rules_ruby/pulls
Discussions https://patch-diff.githubusercontent.com/bazelruby/rules_ruby/discussions
Actions https://patch-diff.githubusercontent.com/bazelruby/rules_ruby/actions
Projects https://patch-diff.githubusercontent.com/bazelruby/rules_ruby/projects
Wiki https://patch-diff.githubusercontent.com/bazelruby/rules_ruby/wiki
Security https://patch-diff.githubusercontent.com/bazelruby/rules_ruby/security
Insights https://patch-diff.githubusercontent.com/bazelruby/rules_ruby/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/bazelruby/rules_ruby/issues/148
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/bazelruby/rules_ruby/issues/148
ruby_library not using specified SDK versionhttps://patch-diff.githubusercontent.com/bazelruby/rules_ruby/issues/148#top
https://github.com/jgao54
https://github.com/jgao54
jgao54https://github.com/jgao54
on Jun 27, 2023https://github.com/bazelruby/rules_ruby/issues/148#issue-1775948351
PRhttps://github.com/bazelruby/rules_ruby/pull/147
the binary wrapperhttps://github.com/bazelruby/rules_ruby/blob/master/ruby/private/binary_wrapper.tpl
herehttps://github.com/bazelruby/rules_ruby/blob/cc2f5ce961f7fa34557264dd05c7597e634f31e1/ruby/private/binary.bzl#L68
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.