Skip to content
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

Wrappers help text spews without clear reason #4380

Open
saizai opened this issue May 10, 2018 · 7 comments
Open

Wrappers help text spews without clear reason #4380

saizai opened this issue May 10, 2018 · 7 comments

Comments

@saizai
Copy link
Contributor

saizai commented May 10, 2018

rvm 1.29.3

Suggestions for fix:

  1. Prophylactic: Make everything that outputs its help text for anything but an actual help text invocation first output the stack trace and full call (e.g. command line w/ args) that led to it
  2. Trace what caused this and fix it.
$ rvm list
=* rbx-3.101 [ x86_64 ]
   ruby-2.5.1 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

$ rvm all do gem update --system
Ruby enVironment Manager 1.29.3 (master) (c) 2009-2017 Michal Papis, Piotr Kuczynski, Wayne E. Seguin

# Wrapper

Show/regenerate wrappers.

NOTE: This command delegates to 'gem wrapper' => <https://github.com/rvm/gem-wrappers>

## Usage

Show paths and generated wrappers:

    rvm wrapper show


Show path to generated wrapper:

    rvm wrapper show executable_name

Where `executable_name` is something like `ruby` or `rake`.


It is also possible to generate a wrapper for external scripts that require ruby:

    rvm wrapper /full/path/to/script

Where `/full/path/to/script` is full path to existing script


Wrappers are generated automatically, but it is possible to rerun the process:

    rvm wrapper regenerate


Documentation:

    rvm wrapper [help]

For additional documentation please visit https://rvm.io

Latest version already installed. Done.
Ruby enVironment Manager 1.29.3 (master) (c) 2009-2017 Michal Papis, Piotr Kuczynski, Wayne E. Seguin

# Wrapper

Show/regenerate wrappers.

NOTE: This command delegates to 'gem wrapper' => <https://github.com/rvm/gem-wrappers>

## Usage

Show paths and generated wrappers:

    rvm wrapper show


Show path to generated wrapper:

    rvm wrapper show executable_name

Where `executable_name` is something like `ruby` or `rake`.


It is also possible to generate a wrapper for external scripts that require ruby:

    rvm wrapper /full/path/to/script

Where `/full/path/to/script` is full path to existing script


Wrappers are generated automatically, but it is possible to rerun the process:

    rvm wrapper regenerate


Documentation:

    rvm wrapper [help]

For additional documentation please visit https://rvm.io

Updating rubygems-update
Successfully installed rubygems-update-2.7.6
Installing RubyGems 2.7.6
Bundler 1.16.1 installed
RubyGems 2.7.5 installed
Regenerating binstubs

=== 2.7.6 / 2018-02-16

Security fixes:

* Prevent path traversal when writing to a symlinked basedir outside of the root.
  Discovered by nmalkin, fixed by Jonathan Claudius and Samuel Giddins.
* Fix possible Unsafe Object Deserialization Vulnerability in gem owner.
  Fixed by Jonathan Claudius.
* Strictly interpret octal fields in tar headers.
  Discoved by plover, fixed by Samuel Giddins.
* Raise a security error when there are duplicate files in a package.
  Discovered by plover, fixed by Samuel Giddins.
* Enforce URL validation on spec homepage attribute.
  Discovered by Yasin Soliman, fixed by Jonathan Claudius.
* Mitigate XSS vulnerability in homepage attribute when displayed via `gem server`.
  Discovered by Yasin Soliman, fixed by Jonathan Claudius.
* Prevent Path Traversal issue during gem installation.
  Discovered by nmalkin.

=== 2.7.4
[etc. snip]

------------------------------------------------------------------------------

RubyGems installed the following executables:
	/Users/saizai/.rvm/rubies/rbx-3.101/bin/gem
	/Users/saizai/.rvm/rubies/rbx-3.101/bin/bundle

RubyGems system software updated
@clintmod
Copy link

I'm seeing this when I call rvm use --create and if set -e is turned on bash my script aborts.

@intrip
Copy link

intrip commented Dec 5, 2018

temporary solved by downgrading to 1.28.0 with: $ rvm get 1.28.0

@intrip
Copy link

intrip commented Mar 19, 2019

The issue on my env was in https://github.com/rvm/rvm/blob/master/hooks/after_use_textmate#L27.
It basically tried to create a wrapper for textmate (which Is not installed on my mac) everytime I changed folder.

Removing the +x permission on the file fixed the issue.

@yegayazilim
Copy link

I had the same issue. I just removed after_use_textmate hook and the problem is gone. Thank you @intrip

@bladepop
Copy link

thanks, sudo chmod -x after_use_textmate solved the issue

@jusondac
Copy link

jusondac commented Dec 17, 2023

where after_use_textmate is?

@joshhu
Copy link

joshhu commented Dec 25, 2023

where after_use_textmate is?

~/.rvm/hooks

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

No branches or pull requests

7 participants