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

Missed "system" gems when upgrading (Mac) #389

Open
pdelre opened this issue Oct 18, 2021 · 0 comments
Open

Missed "system" gems when upgrading (Mac) #389

pdelre opened this issue Oct 18, 2021 · 0 comments
Labels
🙏 help wanted I can't do this alone and need contributors 📦 manager: gem gem 🖥 platform: macOS macOS

Comments

@pdelre
Copy link

pdelre commented Oct 18, 2021

Quick disclaimer: I'm not a ruby dev, so I might be missing some key context.

When running mpm outdated and system level gems are listed out of date, a subsequent running of mpm upgrade does not update those gems. This appears to be due to mpm update using --user-install, while there does not seem to be the same option for the outdated command.

Gem environment

$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 3.2.22
  - RUBY VERSION: 3.0.2 (2021-07-07 patchlevel 107) [x86_64-darwin20]
  - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/3.0.0
  - USER INSTALLATION DIRECTORY: /Users/pdelre/.local/share/gem/ruby/3.0.0
  - RUBY EXECUTABLE: /usr/local/opt/ruby/bin/ruby
  - GIT EXECUTABLE: /usr/local/bin/git
  - EXECUTABLE DIRECTORY: /usr/local/lib/ruby/gems/3.0.0/bin
  - SPEC CACHE DIRECTORY: /Users/pdelre/.local/share/gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /usr/local/Cellar/ruby/3.0.2_1/etc
  - RUBYGEMS PLATFORMS:
     - ruby
     - x86_64-darwin-20
  - GEM PATHS:
     - /usr/local/lib/ruby/gems/3.0.0
     - /Users/pdelre/.local/share/gem/ruby/3.0.0
     - /usr/local/Cellar/ruby/3.0.2_1/lib/ruby/gems/3.0.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/

outdated

$ mpm -m gem -v DEBUG outdated
debug: Load configuration at /Users/pdelre/.mpm/config.toml
debug: Configuration not found at /Users/pdelre/.mpm/config.toml
debug: Ignore configuration file.
debug: Loaded configuration: {}
debug: Verbosity set to DEBUG.
debug: gem CLI found at /usr/local/opt/ruby/bin/gem
debug: ► /usr/local/opt/ruby/bin/gem --version
debug:   3.2.22
debug: Extracted version: 3.2.22
debug: ► /usr/local/opt/ruby/bin/gem outdated --quiet
debug:   test-unit (3.4.8 < 3.5.0)
┌──────────────┬───────────┬─────────┬───────────────────┬────────────────┐
│ Package name │ ID        │ Manager │ Installed version │ Latest version │
├──────────────┼───────────┼─────────┼───────────────────┼────────────────┤
│ test-unit    │ test-unit │ gem     │ 3.4.8             │ 3.5.0          │
└──────────────┴───────────┴─────────┴───────────────────┴────────────────┘
1 package total (gem: 1).

upgrade

$ mpm -m gem -v DEBUG upgrade
debug: Load configuration at /Users/pdelre/.mpm/config.toml
debug: Configuration not found at /Users/pdelre/.mpm/config.toml
debug: Ignore configuration file.
debug: Loaded configuration: {}
debug: Verbosity set to DEBUG.
debug: gem CLI found at /usr/local/opt/ruby/bin/gem
debug: ► /usr/local/opt/ruby/bin/gem --version
debug:   3.2.22
debug: Extracted version: 3.2.22
Updating all outdated packages from gem...
debug: ► /usr/local/opt/ruby/bin/gem update --user-install --quiet
debug:   Updating installed gems
debug:   Nothing to update
Updating installed gems
Nothing to update
@kdeldycke kdeldycke added the 🙏 help wanted I can't do this alone and need contributors label Apr 25, 2022
@kdeldycke kdeldycke removed 🖥 platform: Linux Linux, Windows Subsystem for Linux v2 🖥 platform: Windows Windows labels Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙏 help wanted I can't do this alone and need contributors 📦 manager: gem gem 🖥 platform: macOS macOS
Projects
None yet
Development

No branches or pull requests

2 participants