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

Netflify action fails #1234

Open
lacostej opened this issue Jan 18, 2024 · 3 comments · May be fixed by #1237 or #1248
Open

Netflify action fails #1234

lacostej opened this issue Jan 18, 2024 · 3 comments · May be fixed by #1237 or #1248

Comments

@lacostej
Copy link
Collaborator

lacostej commented Jan 18, 2024

See #1229

E.g. https://app.netlify.com/sites/fastlane-docs-preview/deploys/65a93d9ab404b20007c9bd00

4:03:11 PM: Finished restoring cached Ruby version
4:03:12 PM: Using Ruby version 3.1.1
4:03:12 PM: Using Bundler version 2.3.21 from Gemfile.lock
4:03:13 PM: Failed during stage "Install dependencies": dependency_installation script returned non-zero exit code: 1
4:03:13 PM: Successfully installed bundler-2.3.21
4:03:13 PM: 1 gem installed
4:03:13 PM: Started restoring cached ruby gems
4:03:13 PM: Finished restoring cached ruby gems
4:03:13 PM: Installing gem bundle
4:03:13 PM: /opt/buildhome/.rvm/gems/ruby-3.1.1/bin/bundle: 6: exec: /opt/buildhome/.rvm/gems/ruby-3.1.1/bin/ruby: not found
4:03:13 PM: Error during gem install
4:03:13 PM: Failing build: Failed to install dependencies

@joshdholtz

could we move the config to https://docs.netlify.com/configure-builds/file-based-configuration/ ?

Examples https://github.com/apollographql/apollo-client/blob/bde66d9020d948b440d9668114471b421b43b846/netlify.toml#L4

@janbrasna
Copy link
Contributor

janbrasna commented Feb 24, 2024

Netlify seems happy, it's CircleCI that still can't resolve even after #1232 #1233 — but is happy on master, it's the deps from 2.219.0 that cause the resolve errors (details in #1237…)

I'm afraid that until fastlane/fastlane#21685 & fastlane/fastlane#21791 we're stuck with what we have:/

@janbrasna
Copy link
Contributor

janbrasna commented Feb 24, 2024

Sorry @lacostej now I get what's going on. (For some reason I still think it's an issue on Netlify side regarding caches and non-default bundler, but since can't re-run w/o caches from UI won't be able to confirm this…)

So it's either working Netlify, or working CircleCI depending on Bundler version. But not both;D

I'll try to investigate a bit further, and try downgrading some more, let's see…

My tip is somewhere around this:

Your RubyGems version (3.0.9) has a bug that prevents required_ruby_version from working for Bundler. Any scripts that use gem install bundler will break as soon as Bundler drops support for your Ruby version. Please upgrade RubyGems to avoid future breakage and silence this warning by running gem update --system 3.2.3

@janbrasna
Copy link
Contributor

janbrasna commented Feb 24, 2024

After getting CircleCI working I made Netlify to build on the same 2.6.6 2.7.8 by downgrading:

@janbrasna janbrasna linked a pull request Jun 9, 2024 that will close this issue
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