-
-
Notifications
You must be signed in to change notification settings - Fork 204
feat(doctor): support asdf-managed Ruby in the CocoaPods check #6086
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
Open
NathanWalker
wants to merge
1
commit into
main
Choose a base branch
from
fix/doctor-asdf-ruby-version
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+178
−2
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: NativeScript/nativescript-cli
Length of output: 167
🏁 Script executed:
Repository: NativeScript/nativescript-cli
Length of output: 1070
🏁 Script executed:
Repository: NativeScript/nativescript-cli
Length of output: 2644
🏁 Script executed:
Repository: NativeScript/nativescript-cli
Length of output: 5896
🌐 Web query:
asdf current <plugin> output format asdf current ruby system💡 Result:
The asdf current command displays the version of a tool (or all tools) that asdf is currently configured to use based on the.tool-versions file resolution process [1][2]. In recent versions of asdf (0.16.0 and later), the output format for asdf current has been updated to four columns [3]: 1. Plugin Name: The name of the tool plugin (e.g., ruby) [1][3]. 2. Version: The version currently set [1][3]. 3. Source: The origin of the version setting (e.g., the path to the.tool-versions file where it was defined) [3]. 4. Status: A boolean or descriptive indicator stating whether the specified version is installed [3]. If the version is not installed, the output typically includes a suggested command to install it [3][4]. Regarding the specific output example asdf current ruby system: When you see system as the version, it indicates that you have configured asdf to use the version of the tool installed on your system (outside of asdf management) rather than an asdf-managed version [5][6]. This is often used for tools like Python or Ruby where a system-provided version may be required [5][6]. The entry system appears in the Version column because it is a valid keyword that tells asdf to pass execution to the system binary [5]. If the output says system and adds a message like Not installed, it typically means asdf is looking for a system binary that may not be present or is not correctly identified as the system fallback in the current context [4]. Top results: [1] https://asdf-vm.com/manage/versions.html [3] https://asdf-vm.com/guide/upgrading-to-v0-16.html [5] https://github.com/asdf-vm/asdf/blob/master/docs/manage/configuration.md [4] asdf-vm/asdf#1696 [6] https://github.com/asdf-vm/asdf/blob/master/docs/guide/getting-started.md
Citations:
Preserve asdf Ruby selectors instead of requiring semver.
asdf current rubycan use selectors likeruby system;SysInfo.VERSION_REGEXPdoes not match that output, so this branch skips writing.tool-versionsinstead of preserving the selector. Parse theasdf current rubyversion token with a validator instead of\d{1,}(\.\d{1,})..., and add tests forruby systemplus provider-qualified versions such as JRuby/TruffleRuby.📍 Affects 2 files
packages/doctor/src/sys-info.ts#L437-L450(this comment)packages/doctor/test/sys-info.ts#L1002-L1031🤖 Prompt for AI Agents