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
Cannot install gem on debian:unstable #176
Comments
This is a known bug in older version of bundler/rubygems. The minimum require version is rubygems >=3.3.22 and bundler >=2.3.22. Please upgrade rubygems, then delete and recreate Gemfile.lock. |
Not that I not believe you, but these requirements are met on my system and that URL does give a 403. $ ruby --version
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux-gnu]
$ gem --version
3.4.20
$ bundle --version
Bundler version 2.4.20
$ ls Gemfile.lock
"Gemfile.lock": No such file or directory (os error 2)
$ bundle install
Fetching gem metadata from https://rubygems.org/............
Resolving dependencies...
Fetching sass-embedded 1.69.5 (x86_64-linux)
Retrying download gem from https://rubygems.org/ due to error (2/4): Gem::RemoteFetcher::FetchError bad response Forbidden 403 (https://rubygems.org/gems/sass-embedded-1.69.5-x86_64-linux.gem)
Retrying download gem from https://rubygems.org/ due to error (3/4): Gem::RemoteFetcher::FetchError bad response Forbidden 403 (https://rubygems.org/gems/sass-embedded-1.69.5-x86_64-linux.gem)
Retrying download gem from https://rubygems.org/ due to error (4/4): Gem::RemoteFetcher::FetchError bad response Forbidden 403 (https://rubygems.org/gems/sass-embedded-1.69.5-x86_64-linux.gem)
Bundler::HTTPError: Could not download gem from https://rubygems.org/ due to underlying error <bad response Forbidden 403 (https://rubygems.org/gems/sass-embedded-1.69.5-x86_64-linux.gem)> |
Debian unstable? |
What is the output of the following command: ruby -e 'puts Gem.platforms' And what is the output of this: ruby -e 'puts Gem::Platform.new("x86_64-linux-gnu")'
# This command should print "x86_64-linux-gnu", if it prints "x86_64-linux", you have a broken rubygems. |
Yes! $ ruby -e 'puts Gem.platforms'
ruby
x86_64-linux
$ ruby -e 'puts Gem::Platform.new("x86_64-linux-gnu")'
x86_64-linux Ah, so it should actually get the |
Yes. Debian unstable's rubygems 3.4.20 is patched by debian maintainers to match 3.3.15's behavior and it is broken. There is nothing I can do. You should report this via https://www.debian.org/Bugs/Reporting. |
I see. This seems to be done to not break all existing built/packaged native extensions with rubygems 3.3 (that stripped the |
Still cannot install sass-embedded, failing also on my github action:
|
@felipecsl You issue looks like a different one. It seems that you have the 1.70.0 platform ruby locked, which is clearly available on rubygems: https://rubygems.org/gems/sass-embedded/versions/1.70.0 I cannot reproduce it, so it might be a temporary glitch on one of rubygems' CDN mirror. |
I have the same 403 forbidden error in my fedora container with
All i can see is that there is no such |
@suppadeliux It should never install |
@ntkme Thank you for the tips!
|
I'm running into the same problem with Delete my |
@shawnyeager Since ruby installs also the latest version of rubygems, have you tried to instead, update ruby, to the latest version? |
Likely means that the netlify Ubuntu container has an old version of rubygems. I'm not sure if you can upgrade that. Alternatively if you can upgrade to use a ruby 3.2 or 3.3 container, the default rubygems version from ruby |
@suppadeliux Changing |
where did you edit this |
found it. also works for 3.3.0; with this version was able to deploy on netlify |
…45) * Bump just-the-docs from 0.8.1 to 0.8.2 Bumps [just-the-docs](https://github.com/just-the-docs/just-the-docs) from 0.8.1 to 0.8.2. - [Release notes](https://github.com/just-the-docs/just-the-docs/releases) - [Changelog](https://github.com/just-the-docs/just-the-docs/blob/main/CHANGELOG.md) - [Commits](https://github.com/just-the-docs/just-the-docs/commits) --- updated-dependencies: - dependency-name: just-the-docs dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Run `bundle update` Not sure what's going on with `sass-embedded` here... * Regenerate `Gemfile.lock` on a "clean" linux box This was an absolute pain to figure out * Prune platform list * Regen `Gemfile.lock` with updated RubyGems; modifies Netlify env var to use 3.3.0 See: sass-contrib/sass-embedded-host-ruby#176 sass-contrib/sass-embedded-host-ruby#187 * Attempt at manually trimming platform constraints --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Matt Wang <mxw@cs.washington.edu>
When I try to use a project that tries to install the gem via bundle, installation fails:
This is probably not an issue with this project itself, but I hope the issue can be raised somewhere somehow. Or maybe a re-upload helps?
The text was updated successfully, but these errors were encountered: