Hi.
- MacOS v13.4 (Ventura).
- Ruby version
3.2.2
.
When I run bundle info --path minima
the output contains some warnings:
The dependency tzinfo (>= 1, < 3) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32 java`.
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32 java`.
The dependency wdm (~> 0.1.1) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
The dependency http_parser.rb (~> 0.6.0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
/Library/Ruby/Gems/2.6.0/gems/minima-2.5.1
So then running:
open $(bundle info --path minima)
Returns the following error:
open: unrecognized option `--add-platform'
(which you can see is a string from one of the warnings above.)
NOTE
I needed to migrate from native MacOS ruby to homebrew (Otherwise You don't have write permissions...
)
Successfully run bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32
, with a warning:
Ignoring sassc-2.4.0 because its extensions are not built. Try: gem pristine sassc --version 2.4.0
Trying to handle bundle lock --add-platform java
returns this:
You have requested:
http_parser.rb ~> 0.6.0
The bundle currently has http_parser.rb locked at 0.8.0.
Try running `bundle update http_parser.rb`
If you are updating multiple gems in your Gemfile at once,
try passing them all to `bundle update`
I have run bundle update
on all
as well as specifying http_parser.rb
and have tried both,
gem install http_parser.rb --version 0.6.0
and
gem install http_parser.rb --version 0.8.0
Both succeed, but same error on bundle lock --add-platform java
.
I am not sure if this is going to have practical application for me, aside from having to manually specify the path of the Jekyll theme directory.
Based in this issue thread, I updated the Gemfile
changing 0.6.0
to 0.8.0
:
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
# do not have a Java counterpart.
gem "http_parser.rb", "~> 0.8.0", :platforms => [:jruby]
And now all the warnings have ceased.
Input welcome