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

sass-embedded gives an error with GitHub Actions #171

Open
BabaSanfour opened this issue Dec 15, 2024 · 6 comments
Open

sass-embedded gives an error with GitHub Actions #171

BabaSanfour opened this issue Dec 15, 2024 · 6 comments

Comments

@BabaSanfour
Copy link

Hello!

when trying to use GitHub Actions to host the latest version of the theme I get this error:

Your bundle is locked to sass-embedded (1.77.0-aarch64-mingw-ucrt) from rubygems
repository https://rubygems.org/ or installed locally, but that version can no
longer be found in that source. That means the author of sass-embedded
(1.77.0-aarch64-mingw-ucrt) has removed it. You'll need to update your bundle to
a version other than sass-embedded (1.77.0-aarch64-mingw-ucrt) that hasn't been
removed in order to install.
Error: The process '/opt/hostedtoolcache/Ruby/3.1.4/x64/bin/bundle' failed with exit code 7

Is there any idea on how it can be solved ?
I tried upgrading sass-embedded but nothing, also tried to add gem "jekyll-sass-converter", "~> 2.0" but it created way more errors as many functions are deprecated. Adding gem "github-pages", group: :jekyll_plugins gives a dependency conflict.

@BabaSanfour
Copy link
Author

fixed by:
updating ruby to 3.3.6
adding gem 'sass-embedded', '~> 1.83' to Gemfile
changing version of rake to 13 : spec.add_development_dependency "rake", "~> 13.0" in bulma-clean-theme.gemspec

@chrisrhymes
Copy link
Owner

Hello @BabaSanfour. From the error message, I'm wondering if you need to add the relevant platform that GitHub Actions is using to your Gemfile.lock?

This issue looks similar: rubygems/rubygems#4269 (comment)

I will look at updating the rake dependency to the latest version.

@BabaSanfour
Copy link
Author

Hey @chrisrhymes, sorry I did not mention that in the fix, I do add it but the issues persist and updating dependencies fixes them.

@chrisrhymes
Copy link
Owner

Please can you try release v1.2.0 and see if this resolves your issue? Thanks.

@BabaSanfour
Copy link
Author

I updated to v1.2.0 and I get this error:

Run ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42
  with:
    ruby-version: 3.1
    bundler-cache: true
    cache-version: 0
Error: The current runner (ubuntu-24.04-x64) was detected as self-hosted because the platform does not match a GitHub-hosted runner image (or that image is deprecated and no longer supported).
In such a case, you should install Ruby in the $RUNNER_TOOL_CACHE yourself, for example using https://github.com/rbenv/ruby-build
You can take inspiration from this workflow for more details: https://github.com/ruby/ruby-builder/blob/master/.github/workflows/build.yml
$ ruby-build 3.1.4 /opt/hostedtoolcache/Ruby/3.1.4/x64
Once that completes successfully, mark it as complete with:
$ touch /opt/hostedtoolcache/Ruby/3.1.4/x64.complete
It is your responsibility to ensure installing Ruby like that is not done in parallel.

@BabaSanfour
Copy link
Author

My bad, issue is fixed by updating the gem file and ubuntu version! all is working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants