-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fails to install gem if it has prerelease gems in its dependencies. #43
Comments
shkrt
changed the title
Does not install dependencies. Is this by design?
Fails to install gem if it has prerelease gems in its dependencies.
Oct 15, 2017
Can you think of an easy way to fix this command line wise? |
Will think of solving it, but I've yet to figure out the case with nested prerelease dependencies, because with
but the following
keeps failing |
I'm not sure if rubygems has a way to do dependencies while building a
local gem unfortunately...
…On Tue, Oct 17, 2017 at 2:51 AM, Ruslan Gafurov ***@***.***> wrote:
Will think of solving it, but I've yet to figure out the case with nested
prerelease dependencies, because with Gem::DependencyInstaller.new(prerelease:
true).install dep_name we can install 'rails/rails' repository
step-by-step:
$ gem specific_install 'https://github.com/rails/rails.git' -d actionview
but the following
$ gem specific_install 'rails/rails'
keeps failing
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAw0NQoqSM_Mix5CNpnxCcR1GQL8OYCks5stGp6gaJpZM4P5pwV>
.
|
OK attempted to merge it, give it a try sometime :)
…On Sat, Feb 4, 2023 at 4:29 AM basicfeatures ***@***.***> wrote:
Any news on this?
Trying to gem specific_install --user-install
https://github.com/rails/rails for version 7.1.0-alpha but:
% gem specific_install --user-install https://github.com/rails/rails.git -d actionpack railties actionview actioncable actionmailbox actionmailer actiontext activejob activemodel activerecord activestorage activesupport
git version 2.37.3
git installing from https://github.com/rails/rails.git
Cloning into '/tmp/d20230204-27124-t48i9k'...
remote: Enumerating objects: 820996, done.
remote: Counting objects: 100% (94/94), done.
remote: Compressing objects: 100% (81/81), done.
remote: Total 820996 (delta 36), reused 22 (delta 10), pack-reused 820902
Receiving objects: 100% (820996/820996), 246.70 MiB | 10.68 MiB/s, done.
Resolving deltas: 100% (611618/611618), done.
Updating files: 100% (4516/4516), done.
Updated 0 paths from the index
fatal: Cannot do hard reset with paths.
ERROR: While executing gem ... (RuntimeError)
'$ git reset --hard actionview' exited with an error
/home/dev/.local/share/gem/ruby/3.1/gems/specific_install-0.3.8/lib/rubygems/commands/specific_install_command.rb:75:in `git'
/home/dev/.local/share/gem/ruby/3.1/gems/specific_install-0.3.8/lib/rubygems/commands/specific_install_command.rb:249:in `reset_to_commit'
/home/dev/.local/share/gem/ruby/3.1/gems/specific_install-0.3.8/lib/rubygems/commands/specific_install_command.rb:157:in `block in install_from_git'
/home/dev/.local/share/gem/ruby/3.1/gems/specific_install-0.3.8/lib/rubygems/commands/specific_install_command.rb:155:in `chdir'
/home/dev/.local/share/gem/ruby/3.1/gems/specific_install-0.3.8/lib/rubygems/commands/specific_install_command.rb:155:in `install_from_git'
/home/dev/.local/share/gem/ruby/3.1/gems/specific_install-0.3.8/lib/rubygems/commands/specific_install_command.rb:135:in `install_git'
/home/dev/.local/share/gem/ruby/3.1/gems/specific_install-0.3.8/lib/rubygems/commands/specific_install_command.rb:90:in `determine_source_and_install'
/home/dev/.local/share/gem/ruby/3.1/gems/specific_install-0.3.8/lib/rubygems/commands/specific_install_command.rb:67:in `block in execute'
/usr/local/lib/ruby/3.1/tmpdir.rb:96:in `mktmpdir'
/home/dev/.local/share/gem/ruby/3.1/gems/specific_install-0.3.8/lib/rubygems/commands/specific_install_command.rb:59:in `execute'
/usr/local/lib/ruby/3.1/rubygems/command.rb:323:in `invoke_with_build_args'
/usr/local/lib/ruby/3.1/rubygems/command_manager.rb:185:in `process_args'
/usr/local/lib/ruby/3.1/rubygems/command_manager.rb:149:in `run'
/usr/local/lib/ruby/3.1/rubygems/gem_runner.rb:51:in `run'
/usr/local/bin/gem:21:in `<main>'
—
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAADBUFGLTJTZXD6UXDLVVTWVY4RBANCNFSM4D7GTQKQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example:
or
or
results in:
and if we start to install dependencies one-by-one, we also got stuck:
This is caused by the presence of
prerelease
gems in gem's dependencies. If we initializeGem::DependencyInstaller
withprerelease:true
, then at leastgem specific_install 'rails/rails' -d actionview
seems to work fine. So, I think it would be convenient to add some command line flag, that will setprerelease
option totrue
, if provided.The text was updated successfully, but these errors were encountered: