Skip to content
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

Expressir 1.3.0 installation issue #143

Closed
Intelligent2013 opened this issue Dec 28, 2023 · 5 comments
Closed

Expressir 1.3.0 installation issue #143

Intelligent2013 opened this issue Dec 28, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@Intelligent2013
Copy link

Intelligent2013 commented Dec 28, 2023

The issue occurs in the installation of expressir-1.3.0.

This issue blocks the task metanorma/metanorma-standoc#844.

From https://github.com/metanorma/mn-native-pdf/actions/runs/7340488721/job/19986570979:

...
Fetching expressir 1.3.0 (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/expressir-1.3.0-x86_64-linux.gem)
Installing nokogiri 1.15.5 (x86_64-linux)

Retrying download gem from https://rubygems.org/ due to error (3/4): Gem::RemoteFetcher::FetchError bad response Forbidden 403 (https://rubygems.org/gems/expressir-1.3.0-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/expressir-1.3.0-x86_64-linux.gem)
...

I.e. ruby tries to install the gem https://rubygems.org/gems/expressir-1.3.0-x86_64-linux.gem, but the real URL is
https://rubygems.org/gems/expressir-1.3.0-x86_64-linux-gnu.gem (with -gnu suffix).
The previous version 1.2.11 doesn't have the suffix -gnu https://rubygems.org/downloads/expressir-1.2.11-x86_64-linux.gem

The suffix -gnu was added in:

platform: [ linux-gnu, windows, darwin ]

How to update https://github.com/metanorma/mn-native-pdf/blob/master/.github/workflows/ubuntu.yml? Or is there the issue in expressir?

@Intelligent2013 Intelligent2013 added the bug Something isn't working label Dec 28, 2023
@ronaldtse
Copy link
Contributor

This is a bug in rubygems that it cannot handle the platform code. The solution is to upgrade rubygems, can you check Metanorma/ci repo for the latest changes?

@maxirmx
Copy link
Contributor

maxirmx commented Dec 28, 2023

@Intelligent2013 for Ruby 2.7.8
rubygems 3.4.22 is required
2.7 is not supported (by bundler/rubygems team) though it is possible to make it work

If you expreience is locally I would strongly recommend to use Ruby 3.1
As for ci scripts I believe @CAMOBAP has updated them

@maxirmx
Copy link
Contributor

maxirmx commented Dec 28, 2023

UPD
Workflows like mn-native-pdf that do not use metanorma test matrix need to be updated to 3.1 as well

@CAMOBAP
Copy link
Contributor

CAMOBAP commented Dec 28, 2023

As for ci scripts I believe @CAMOBAP has updated them

I hope so
But in case if you observed the issue on some other repos don't hesitate to ping me

Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Dec 30, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Dec 30, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Dec 30, 2023
@Intelligent2013
Copy link
Author

I've updated ruby 2.7 to 3.1 in mn-native-pdf. It solved the issue.
Thank you @maxirmx !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants