fastlane / docs

All the fastlane docs
https://docs.fastlane.tools
316 stars 521 forks source link

Netflify action fails #1234

Open lacostej opened 8 months ago

lacostej commented 8 months ago

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 commented 6 months ago

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 https://github.com/fastlane/fastlane/pull/21685 & https://github.com/fastlane/fastlane/pull/21791 we're stuck with what we have:/

janbrasna commented 6 months ago

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 commented 6 months ago

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