fix: version reported by srt --version#135
Open
MarlzRana wants to merge 1 commit intoanthropic-experimental:mainfrom
Open
fix: version reported by srt --version#135MarlzRana wants to merge 1 commit intoanthropic-experimental:mainfrom
srt --version#135MarlzRana wants to merge 1 commit intoanthropic-experimental:mainfrom
Conversation
--version Flag--version Flag
--version Flag--version flag
--version flag--version flag
f409f48 to
2545529
Compare
--version flagsrt --version
2545529 to
1b8cf97
Compare
MarlzRana
commented
Feb 16, 2026
| .description( | ||
| 'Run commands in a sandbox with network and filesystem restrictions', | ||
| ) | ||
| .version(process.env.npm_package_version || '1.0.0') |
Author
There was a problem hiding this comment.
process.env.npm_package_version is null when you do not invoke it via npm (e.g srt echo "Hello world!").
|
@Mainainers, this is an annoying inconsistency with a simple fix. Please merge. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The version reported by
srt --versionis incorrect.This makes the brew formula look peculiar (see the test):
Let's fix that! 😄
Fixes issue: #119