Git Product home page Git Product logo

Comments (11)

ebeigarts avatar ebeigarts commented on April 30, 2024 7

I'm using currently using RUBYOPT='-rostruct' env variable as a workaround in GitHub Actions:

- run: bundle exec fastlane ...
  env:
    RUBYOPT: '-rostruct' # TODO: Remove when https://github.com/fastlane/fastlane/pull/21950 gets released

from fastlane.

florent37 avatar florent37 commented on April 30, 2024 2

seems to work after upgrading versions in the github file :

  • ruby-version: 3.3

and installed manually the bundler with an higher version

gem install bundler -v 2.4.22
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.3
          bundler-cache: false

      - name: Setup fastlane
        id: set_up_fastlane
        run: |
          gem install bundler -v 2.4.22
          bundle config path vendor/bundle
          bundle install --jobs 4 --retry 3

from fastlane.

muffe avatar muffe commented on April 30, 2024 1

I'm using 2.206.2 and it crashed with the same error.
So doesn't seem to be related to 2.220.0

Still a valid issue of course.

from fastlane.

florent37 avatar florent37 commented on April 30, 2024

We're facing the same issue on another project

we tried to force the version of fastlane to an old one using

gem 'fastlane', '2.219.0'

and also to include ostruct in the gemfile but without any success

gem 'ostruct'

the environment :

  • OS seems to be ubuntu-20.04
  • bundler:1.17.2
  • ruby: 2.7.0

from fastlane.

username0x0a avatar username0x0a commented on April 30, 2024

In our use case, freezing Gemfile version to 2.219.0 did the trick for a clean bundle update, so I'd suspect the latest update to actually cause the issue. 🤔 Seen on some Linux deployment with Ruby 2.6.6, I'd guess the situation would be the same on macOS with system Ruby 2.6.

from fastlane.

waelalameen avatar waelalameen commented on April 30, 2024

seems to work after upgrading versions in the github file :

  • ruby-version: 3.3

and installed manually the bundler with an higher version

gem install bundler -v 2.4.22
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.3
          bundler-cache: false

      - name: Setup fastlane
        id: set_up_fastlane
        run: |
          gem install bundler -v 2.4.22
          bundle config path vendor/bundle
          bundle install --jobs 4 --retry 3

Thank you so much, worked like a charm.

from fastlane.

Marvin-S avatar Marvin-S commented on April 30, 2024

We also had this issue since yesterday when running tests or builds for android.
Using the combination of fastlane 2.220.0 with bundler 2.4.22 and ruby 2.7 we had this problem. Just downgrading to fastlane 2.219.0 didn't worked.
With the combination of fastlane 2.220.0 or 2.219.0 with bundler 2.4.22 and ruby 3.3 it works again.
Thanks @florent37 for the hint!

from fastlane.

Kaspik avatar Kaspik commented on April 30, 2024

Related? #21942

The -rostruct workaround didn't help.

from fastlane.

brianhsux avatar brianhsux commented on April 30, 2024

I use a workaround with the below code.
It's cicd on gitlab.

variables:
    # TODO: Remove when https://github.com/fastlane/fastlane/pull/21950 gets released
    RUBYOPT: "-rostruct"

from fastlane.

arnotixe avatar arnotixe commented on April 30, 2024

I have fastlane on a local machine, not gitlab, but the same override works. My versions:

  • ruby -v ruby 2.7.0p0
  • fastlane 2.220.0 (? from Gemfile.lock)
  • bundle -v version 2.3.14

and also got the above NameError. Adding RUBYOPT override inline with my bundle exec works:

…
# TODO: Try removing RUBYOPT override after https://github.com/fastlane/fastlane/pull/21950 gets released
RUBYOPT="-rostruct" bundle exec fastlane beta

from fastlane.

username0x0a avatar username0x0a commented on April 30, 2024

As mentioned above, it affects older 2.219.0 as well, we've just found this happening on a Docker image with Linux + Ruby 2.6/2.7. RUBYOPT="-rostruct" hotfix worked. Hopefully the MR mentioned will get merged soon, followed by a hotfix release. 🙏

from fastlane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.