Closed dorianmarie closed 8 months ago
I have an issue with rubygems not cleaning up one file
https://github.com/rubygems/rubygems/issues/7387
I haven't figured out a consistent way to reproduce it
When the file is there, running bundle or gem will trigger the warning.
bundle
gem
A file is generated somehow:
require_relative '../gems/yard-0.9.34/lib/rubygems_plugin.rb'
or
require_relative '../gems/yard-0.9.28/lib/rubygems_plugin.rb'
> cat /Users/dorianmariefr/.asdf/installs/ruby/*/lib/ruby/gems/*/plugins/yard_plugin.rb require_relative '../gems/yard-0.9.28/lib/rubygems_plugin.rb' require_relative '../gems/yard-0.9.28/lib/rubygems_plugin.rb' require_relative '../gems/yard-0.9.28/lib/rubygems_plugin.rb'
Error loading RubyGems plugin "/Users/dorianmariefr/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/plugins/yard_plugin.rb": cannot load such file -- /Users/dorianmariefr/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/yard-0.9.34/lib/rubygems_plugin.rb (LoadError)
Nothing
OS: Darwin computer.dorianmarie.fr 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 arm64
Darwin computer.dorianmarie.fr 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 arm64
Ruby version (ruby -v): ruby 3.3.0 (2023-12-25 revision 5124f9ac75) +YJIT [arm64-darwin23]
ruby -v
YARD version (yard -v): At least 0.9.28 and 0.9.34
yard -v
Relevant software dependency/versions: gem -v 3.5.4
gem -v
3.5.4
I see it on Fedora package also
https://packages.fedoraproject.org/pkgs/rubygem-yard/rubygem-yard/fedora-rawhide.html
So do you have any idea where this file is coming from and why it's not being removed?
Looks like it's fixed in the latest release of rubygems/bundler
I have an issue with rubygems not cleaning up one file
https://github.com/rubygems/rubygems/issues/7387
Steps to reproduce
I haven't figured out a consistent way to reproduce it
When the file is there, running
bundle
orgem
will trigger the warning.A file is generated somehow:
or
Actual Output
Expected Output
Nothing
Environment details:
OS:
Darwin computer.dorianmarie.fr 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 arm64
Ruby version (
ruby -v
): ruby 3.3.0 (2023-12-25 revision 5124f9ac75) +YJIT [arm64-darwin23]YARD version (
yard -v
): At least 0.9.28 and 0.9.34Relevant software dependency/versions:
gem -v
3.5.4
I see it on Fedora package also
https://packages.fedoraproject.org/pkgs/rubygem-yard/rubygem-yard/fedora-rawhide.html
So do you have any idea where this file is coming from and why it's not being removed?