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
But this list is identical to the list when running your 5 years old image on docker hub.
The generated files /usr/local/bundle/bin/wayback_machine_downloader between the two version are quite different though:
docker hub image:
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'wayback_machine_downloader' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../../../build/Gemfile",
Pathname.new(__FILE__).realpath)
require "rubygems"
require "bundler/setup"
load Gem.bin_path("wayback_machine_downloader", "wayback_machine_downloader")
Mine:
#!/usr/bin/env ruby
#
# This file was generated by RubyGems.
#
# The application 'wayback_machine_downloader' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require 'rubygems'
version = ">= 0.a"
str = ARGV.first
if str
str = str.b[/\A_(.*)_\z/, 1]
if str and Gem::Version.correct?(str)
version = str
ARGV.shift
end
end
if Gem.respond_to?(:activate_bin_path)
load Gem.activate_bin_path('wayback_machine_downloader', 'wayback_machine_downloader', version)
else
gem "wayback_machine_downloader", version
load Gem.bin_path("wayback_machine_downloader", "wayback_machine_downloader", version)
end
What could be the cause of the problem?
The text was updated successfully, but these errors were encountered:
Forage
added a commit
to Forage/wayback-machine-downloader
that referenced
this issue
Oct 10, 2023
Sorry, the above fix is of course flawed. It will simply install the online available gem instead of using the local sources.
Instead, what does work is forcing version 2.3.6 of the ruby image to be used. 2.3.5 was used for the current docker image. 2.3.8 has the error, which is the base when using the current 2.3 tag. It's version 2.3.7 that introduces the problem.
At first I thought it was maybe the rubygem version 3.0.3 which caused the problem, but forcing it back to 2.6.14 with gem update --system 2.6.14 did not help.
I won't be providing a PR for this since it's just a work-around which does not address the underlying problem as to why it no longer works with a more 'recent' ruby image.
While the latest sources build the image just fine:
Running the resulting image gives the following error:
gem query --local
gives me the list but without wayback-machine-downloader:But this list is identical to the list when running your 5 years old image on docker hub.
The generated files
/usr/local/bundle/bin/wayback_machine_downloader
between the two version are quite different though:docker hub image:
Mine:
What could be the cause of the problem?
The text was updated successfully, but these errors were encountered: