You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The configure_trusted_publisher command fails when running it via gem exec. I found the issue with this gem, but I assume that it's something that will need to be fixed in rubygems or bundler (or both). So I'll make an issue there too (rubygems/rubygems#7671).
It appears to fail while trying to run bundle exec rake release --dry-run. The errors indicate that the repository URL "is not yet checked out" and the "path $GEM_HOME/gem_exec/bundler/gems/test-unit-ruby-core-7b20ceb51631 does not exist". It's true that that specific path doesn't exist, the gem does exist at the normal path bundler path.
You should be able verify it with net-imap or just about any of the default or bundled ruby gems, because they all have the same test-unit-ruby-core in their respective Gemfiles.
Command output
gem exec configure_trusted_publisher rubygem
bundle exec rake release is not configured for net-imap in .:
bundler: failed to load command: rake ($GEM_BINDIR/rake)
$GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/source/git.rb:222:in `rescue in load_spec_files':
https://github.com/ruby/test-unit-ruby-core is not yet checked out. Run `bundle install` first. (Bundler::GitError)
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/source/git.rb:218:in `load_spec_files'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/source/path.rb:108:in `local_specs'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/source/git.rb:185:in `specs'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/lazy_specification.rb:97:in `materialize_for_installation'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/spec_set.rb:281:in `map!'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/spec_set.rb:281:in `specs_for_dependency'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/spec_set.rb:34:in `block in for'
from <internal:kernel>:187:in `loop'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/spec_set.rb:22:in `for'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/spec_set.rb:121:in `materialize'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/definition.rb:584:in `materialize'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/definition.rb:207:in `specs'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/definition.rb:273:in `specs_for'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/runtime.rb:18:in `setup'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler.rb:163:in `setup'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/setup.rb:29:in `block in <top (required)>'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/ui/shell.rb:159:in `with_level'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/ui/shell.rb:111:in `silence'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/setup.rb:29:in `<top (required)>'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/cli/exec.rb:56:in `require_relative'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/cli/exec.rb:56:in `kernel_load'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/cli/exec.rb:23:in `run'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/cli.rb:455:in `exec'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor.rb:527:in `dispatch'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/cli.rb:35:in `dispatch'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/cli.rb:29:in `start'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/exe/bundle:28:in `block in <top (required)>'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/exe/bundle:20:in `<top (required)>'
from $GEM_BINDIR/bundle:25:in `load'
from $GEM_BINDIR/bundle:25:in `<main>'
$GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/source/path.rb:210:in `load_spec_files':
The path `$GEM_HOME/gem_exec/bundler/gems/test-unit-ruby-core-7b20ceb51631` does not exist. (Bundler::PathError)
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/source/git.rb:219:in `load_spec_files'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/source/path.rb:108:in `local_specs'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/source/git.rb:185:in `specs'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/lazy_specification.rb:97:in `materialize_for_installation'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/spec_set.rb:281:in `map!'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/spec_set.rb:281:in `specs_for_dependency'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/spec_set.rb:34:in `block in for'
from <internal:kernel>:187:in `loop'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/spec_set.rb:22:in `for'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/spec_set.rb:121:in `materialize'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/definition.rb:584:in `materialize'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/definition.rb:207:in `specs'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/definition.rb:273:in `specs_for'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/runtime.rb:18:in `setup'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler.rb:163:in `setup'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/setup.rb:29:in `block in <top (required)>'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/ui/shell.rb:159:in `with_level'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/ui/shell.rb:111:in `silence'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/setup.rb:29:in `<top (required)>'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/cli/exec.rb:56:in `require_relative'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/cli/exec.rb:56:in `kernel_load'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/cli/exec.rb:23:in `run'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/cli.rb:455:in `exec'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor.rb:527:in `dispatch'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/cli.rb:35:in `dispatch'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/cli.rb:29:in `start'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/exe/bundle:28:in `block in <top (required)>'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
from $GEM_HOME/gem_exec/gems/bundler-2.5.10/exe/bundle:20:in `<top (required)>'
from $GEM_BINDIR/bundle:25:in `load'
from $GEM_BINDIR/bundle:25:in `<main>'
(I lightly edited the stacktraces for clarity, mostly just substituting path prefixes with $GEM_HOME and $GEM_BINDIR)
bundle info test-unit-ruby-core
* test-unit-ruby-core (1.0.5 7b20ceb)
Summary: Additional test assertions for Ruby standard libraries.
Homepage: https://github.com/ruby/test-unit-ruby-core
Source Code: https://github.com/ruby/test-unit-ruby-core
Path: /home/nick/src/.local/share/rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/bundler/gems/test-unit-ruby-core-7b20ceb51631
The text was updated successfully, but these errors were encountered:
The
configure_trusted_publisher
command fails when running it viagem exec
. I found the issue with this gem, but I assume that it's something that will need to be fixed in rubygems or bundler (or both). So I'll make an issue there too (rubygems/rubygems#7671).It appears to fail while trying to run
bundle exec rake release --dry-run
. The errors indicate that the repository URL "is not yet checked out" and the "path $GEM_HOME/gem_exec/bundler/gems/test-unit-ruby-core-7b20ceb51631 does not exist". It's true that that specific path doesn't exist, the gem does exist at the normal path bundler path.You should be able verify it with
net-imap
or just about any of the default or bundled ruby gems, because they all have the sametest-unit-ruby-core
in their respective Gemfiles.Command output
gem exec configure_trusted_publisher rubygem
(I lightly edited the stacktraces for clarity, mostly just substituting path prefixes with
$GEM_HOME
and$GEM_BINDIR
)bundle info test-unit-ruby-core
The text was updated successfully, but these errors were encountered: