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

Build Failure with Ruby 3.x due to google-protobuf Gem Error in GitHub Actions #1429

Closed
1 task done
winxuan opened this issue Dec 26, 2023 · 12 comments · Fixed by #1431
Closed
1 task done

Build Failure with Ruby 3.x due to google-protobuf Gem Error in GitHub Actions #1429

winxuan opened this issue Dec 26, 2023 · 12 comments · Fixed by #1431
Labels
3rd-party deps 3rd party dependencies issues

Comments

@winxuan
Copy link

winxuan commented Dec 26, 2023

Checklist

How did you create the site?

Generated from chirpy-starter

Describe the bug

When using the pages-deploy.yml GitHub Actions workflow with the default ruby-version: 3, the build process fails during bundle install due to an error related to the installation of the google-protobuf gem.

Steps To Reproduce

I just submitted an article, probably because Ruby 3.3.0 was released

Expected Behavior

The GitHub Actions build should complete successfully without errors during the bundle install process.

Environment

GitHub Actions

Anything else?

The build succeeds when explicitly setting ruby-version: 3.2.2 in the workflow file. This version change seems to resolve the issue with the google-protobuf gem installation.
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
bundler-cache: true

@puppylpg
Copy link

same error 😢 ruby 3.3.0 released yesterday

@winxuan
Copy link
Author

winxuan commented Dec 26, 2023

same error 😢 ruby 3.3.0 released yesterday

I modified
.github/workflows/pages-deploy.yml
Probably around line 42 to line 47

      - name: Setup Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.2.2
          bundler-cache: true

change ruby-version: 3 --> ruby-version: 3.2.2

Specify to the 3.2.2 version before ruby was released

it works fine

@puppylpg
Copy link

same error 😢 ruby 3.3.0 released yesterday

I modified .github/workflows/pages-deploy.yml Probably around line 42 to line 47

      - name: Setup Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.2.2
          bundler-cache: true

change ruby-version: 3 --> ruby-version: 3.2.2

Specify to the 3.2.2 version before ruby was released

it works fine

Thanks, I did as you said and it works again. Will use this workaround before official solutions.

@CSpanias
Copy link

same error 😢 ruby 3.3.0 released yesterday

I modified .github/workflows/pages-deploy.yml Probably around line 42 to line 47

      - name: Setup Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.2.2
          bundler-cache: true

change ruby-version: 3 --> ruby-version: 3.2.2

Specify to the 3.2.2 version before ruby was released

it works fine

Thanks for that, I was trying to find a solution for quite a while now. This works fine for now!

@sungjindev
Copy link

I also had a same issue. Thank you for a solution. :)

@omerwwazap
Copy link

Thank you for a quick solution. I was going to look into it myself, but now don't I have to 👍

@bL34cHig0
Copy link

@puppylpg thanks for fix. I've been battling this issue since yesterday 😭

@czenzel
Copy link

czenzel commented Dec 26, 2023

Thanks 👍

ottomattas added a commit to edustonia/edustonia.github.io that referenced this issue Dec 26, 2023
asmith26 added a commit to asmith26/asmith26.github.io that referenced this issue Dec 26, 2023
bryanmcnulty added a commit to bryanmcnulty/bryanmcnulty.github.io that referenced this issue Dec 27, 2023
@lng205
Copy link

lng205 commented Dec 27, 2023

Updating the ruby-version works. Thanks.

@cotes2020
Copy link
Owner

You can indeed temporarily specify the version of Ruby to be 3.2.x until a new version of protobuf is released.

See also: protocolbuffers/protobuf#15198

@cotes2020 cotes2020 added the 3rd-party deps 3rd party dependencies issues label Dec 27, 2023
shihtiy-tw added a commit to shihtiy-tw/shihtiy-tw.github.io that referenced this issue Dec 30, 2023
ZZy979 added a commit to ZZy979/zzy979.github.io that referenced this issue Jan 3, 2024
radanskoric added a commit to radanskoric/radanskoric.github.io that referenced this issue Jan 9, 2024
@bdavidxyz
Copy link

Bug still here nowadays...

@Shichuan-Hao
Copy link

thinks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd-party deps 3rd party dependencies issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.