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

negative argument ArgumentError when running in CI #20906

Closed
4 tasks done
IAmJulianAcosta opened this issue Dec 1, 2022 · 3 comments
Closed
4 tasks done

negative argument ArgumentError when running in CI #20906

IAmJulianAcosta opened this issue Dec 1, 2022 · 3 comments

Comments

@IAmJulianAcosta
Copy link

IAmJulianAcosta commented Dec 1, 2022

New Issue Checklist

Issue Description

I'm having this issue running in a container in my build pipeline in Azure Devops. However it works fine on my local machine.

Command executed

fastlane production_build

Complete output when running fastlane, including the stack trace and command used
/bin/bash /__w/_temp/7507e9f2-190b-4602-9013-d8bee8e2c0a9.sh
+-----------------------------------------+---------+--------------------------+
|                                 Used plugins                                 |
+-----------------------------------------+---------+--------------------------+
| Plugin                                  | Version | Action                   |
+-----------------------------------------+---------+--------------------------+
| fastlane-plugin-flutter_version         | 1.1.15  | flutter_version          |
| fastlane-plugin-flutter_version_manager | 1.0.0   | flutter_version_manager  |
| fastlane-plugin-file_manager            | 0.2.0   | copy_files, remove_files |
+-----------------------------------------+---------+--------------------------+

bundler: failed to load command: fastlane (/usr/local/bundle/bin/fastlane)
/usr/local/bundle/gems/fastlane-2.211.0/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb:95:in `*': \e[31m[!] negative argument\e[0m (ArgumentError)
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb:95:in `header'
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane/lib/fastlane/actions/actions_helper.rb:68:in `execute_action'
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
	from Fastfile:16:in `parsing_binding'
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane/lib/fastlane/fast_file.rb:61:in `eval'
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane/lib/fastlane/fast_file.rb:61:in `block in parse'
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane/lib/fastlane/fast_file.rb:50:in `chdir'
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane/lib/fastlane/fast_file.rb:50:in `parse'
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane/lib/fastlane/fast_file.rb:40:in `initialize'
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane/lib/fastlane/lane_manager.rb:15:in `new'
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane/lib/fastlane/lane_manager.rb:15:in `cruise_lane'
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
	from /usr/local/bundle/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
	from /usr/local/bundle/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
	from /usr/local/bundle/gems/fastlane-2.211.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
	from /usr/local/bundle/gems/fastlane-2.211.0/bin/fastlane:23:in `<top (required)>'
	from /usr/local/bundle/bin/fastlane:25:in `load'
	from /usr/local/bundle/bin/fastlane:25:in `<top (required)>'
	from /usr/local/lib/ruby/3.1.0/bundler/cli/exec.rb:58:in `load'
	from /usr/local/lib/ruby/3.1.0/bundler/cli/exec.rb:58:in `kernel_load'
	from /usr/local/lib/ruby/3.1.0/bundler/cli/exec.rb:23:in `run'
	from /usr/local/lib/ruby/3.1.0/bundler/cli.rb:486:in `exec'
	from /usr/local/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
	from /usr/local/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	from /usr/local/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
	from /usr/local/lib/ruby/3.1.0/bundler/cli.rb:31:in `dispatch'
	from /usr/local/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
	from /usr/local/lib/ruby/3.1.0/bundler/cli.rb:25:in `start'
	from /usr/local/lib/ruby/gems/3.1.0/gems/bundler-2.3.26/libexec/bundle:48:in `block in <top (required)>'
	from /usr/local/lib/ruby/3.1.0/bundler/friendly_errors.rb:120:in `with_friendly_errors'
	from /usr/local/lib/ruby/gems/3.1.0/gems/bundler-2.3.26/libexec/bundle:36:in `<top (required)>'
	from /usr/local/bin/bundle:25:in `load'
	from /usr/local/bin/bundle:25:in `<main>'

Looking for related GitHub issues on fastlane/fastlane...

➡️  [fastlane_core] prevent negative argument error for message formatting
    https://github.com/fastlane/fastlane/pull/20857 [closed] 3 💬
    2 days ago

➡️  automatic_release flag does not work
    https://github.com/fastlane/fastlane/issues/19797 [open] 13 💬
    4 weeks ago

➡️  [scan] False negative on repeated tests
    https://github.com/fastlane/fastlane/issues/19729 [closed] 5 💬
    05 Jul 2022

and 19 more at: https://github.com/fastlane/fastlane/search?q=negative%20argument&type=Issues&utf8=✓

Environment

2022-12-01T14:02:17.4503086Z [command]/bin/bash /__w/_temp/80aebd15-d718-47f9-96f4-9655ee452f5b.sh
2022-12-01T14:02:18.6493763Z [14:02:18]: �[33mfastlane detected a Gemfile in the current directory�[0m
2022-12-01T14:02:18.6494933Z [14:02:18]: �[33mHowever, it seems like you didn't use `bundle exec`�[0m
2022-12-01T14:02:18.6495800Z [14:02:18]: �[33mTo launch fastlane faster, please use�[0m
2022-12-01T14:02:18.6496300Z [14:02:18]: 
2022-12-01T14:02:18.6496961Z [14:02:18]: �[36m$ bundle exec fastlane env�[0m
2022-12-01T14:02:18.6497409Z [14:02:18]: 
2022-12-01T14:02:18.6498400Z [14:02:18]: �[33mGet started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile�[0m
2022-12-01T14:02:19.6043187Z [14:02:19]: Sending anonymous analytics information
2022-12-01T14:02:19.6043890Z [14:02:19]: Learn more at https://docs.fastlane.tools/#metrics
2022-12-01T14:02:19.6044497Z [14:02:19]: No personal or sensitive data is sent.
2022-12-01T14:02:19.6045146Z [14:02:19]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
2022-12-01T14:02:19.6146794Z [14:02:19]: �[33mGenerating fastlane environment output, this might take a few seconds...�[0m
2022-12-01T14:02:19.9427412Z [14:02:19]: �[33mInstalling Ruby gem 'fastlane-plugin-flutter_version_manager'...�[0m
2022-12-01T14:02:20.7401272Z [14:02:20]: �[32mSuccessfully installed 'fastlane-plugin-flutter_version_manager'�[0m
2022-12-01T14:02:21.1948308Z <details><summary>🚫 fastlane environment 🚫</summary>
2022-12-01T14:02:21.1948807Z 
2022-12-01T14:02:21.1949334Z ### Stack
2022-12-01T14:02:21.1949556Z 
2022-12-01T14:02:21.1950149Z | Key                         | Value                                                           |
2022-12-01T14:02:21.1951482Z | --------------------------- | --------------------------------------------------------------- |
2022-12-01T14:02:21.1952467Z | OS                          | debian_based stretch/sid                                        |
2022-12-01T14:02:21.1953229Z | Ruby                        | 3.1.3                                                           |
2022-12-01T14:02:21.1953957Z | Bundler?                    | false                                                           |
2022-12-01T14:02:21.1954828Z | Git                         | git version 2.20.1                                              |
2022-12-01T14:02:21.1955686Z | Installation Source         | /usr/local/bundle/bin/fastlane                                  |
2022-12-01T14:02:21.1956675Z | Host                        | Ubuntu 16.04.5 LTS debian_based stretch/sid (5.15.0-1023-azure) |
2022-12-01T14:02:21.1957198Z | Ruby Lib Dir                | /usr/local/lib                                                  |
2022-12-01T14:02:21.1957679Z | OpenSSL Version             | OpenSSL 1.0.2g  1 Mar 2016                                      |
2022-12-01T14:02:21.1958151Z | Is contained                | false                                                           |
2022-12-01T14:02:21.1958578Z | Is homebrew                 | false                                                           |
2022-12-01T14:02:21.1959009Z | Is installed via Fabric.app | false                                                           |
2022-12-01T14:02:21.1959734Z 
2022-12-01T14:02:21.1959841Z 
2022-12-01T14:02:21.1960139Z ### System Locale
2022-12-01T14:02:21.1960279Z 
2022-12-01T14:02:21.1960578Z | Variable | Value       |   |
2022-12-01T14:02:21.1961203Z | -------- | ----------- | - |
2022-12-01T14:02:21.1961664Z | LANG     | C.UTF-8     | ✅ |
2022-12-01T14:02:21.1962130Z | LC_ALL   | en_US.UTF-8 | ✅ |
2022-12-01T14:02:21.1962622Z | LANGUAGE | en_US:en    | 🚫 |
2022-12-01T14:02:21.2023202Z 
2022-12-01T14:02:21.2025910Z 
2022-12-01T14:02:21.2026200Z ### fastlane gems
2022-12-01T14:02:21.2026339Z 
2022-12-01T14:02:21.2026812Z | Gem      | Version | Update-Status |
2022-12-01T14:02:21.2027341Z | -------- | ------- | ------------- |
2022-12-01T14:02:21.2027906Z | fastlane | 2.211.0 | ✅ Up-To-Date  |
2022-12-01T14:02:21.2028098Z 
2022-12-01T14:02:21.2028217Z 
2022-12-01T14:02:21.2028529Z ### Loaded fastlane plugins:
2022-12-01T14:02:21.2028690Z 
2022-12-01T14:02:21.2029219Z | Plugin                                  | Version | Update-Status |
2022-12-01T14:02:21.2029871Z | --------------------------------------- | ------- | ------------- |
2022-12-01T14:02:21.2030577Z | fastlane-plugin-flutter_version         | 1.1.15  | ✅ Up-To-Date  |
2022-12-01T14:02:21.2031289Z | fastlane-plugin-flutter_version_manager | 1.0.0   | ✅ Up-To-Date  |
2022-12-01T14:02:21.2031990Z | fastlane-plugin-file_manager            | 0.2.0   | ✅ Up-To-Date  |
2022-12-01T14:02:21.2032216Z 
2022-12-01T14:02:21.2032319Z 
2022-12-01T14:02:21.2032668Z <details><summary><b>Loaded gems</b></summary>
2022-12-01T14:02:21.2032857Z 
2022-12-01T14:02:21.2033165Z | Gem                                     | Version      |
2022-12-01T14:02:21.2033762Z | --------------------------------------- | ------------ |
2022-12-01T14:02:21.2034220Z | error_highlight                         | 0.3.0        |
2022-12-01T14:02:21.2034621Z | did_you_mean                            | 1.6.1        |
2022-12-01T14:02:21.2034987Z | atomos                                  | 0.1.3        |
2022-12-01T14:02:21.2035356Z | rexml                                   | 3.2.5        |
2022-12-01T14:02:21.2035739Z | CFPropertyList                          | 3.0.5        |
2022-12-01T14:02:21.2036118Z | claide                                  | 1.1.0        |
2022-12-01T14:02:21.2036489Z | colored2                                | 3.1.2        |
2022-12-01T14:02:21.2036851Z | nanaimo                                 | 0.3.0        |
2022-12-01T14:02:21.2037223Z | xcodeproj                               | 1.22.0       |
2022-12-01T14:02:21.2037595Z | rouge                                   | 2.0.7        |
2022-12-01T14:02:21.2037959Z | xcpretty                                | 0.3.0        |
2022-12-01T14:02:21.2038527Z | terminal-notifier                       | 2.0.0        |
2022-12-01T14:02:21.2039110Z | unicode-display_width                   | 1.8.0        |
2022-12-01T14:02:21.2039698Z | terminal-table                          | 1.8.0        |
2022-12-01T14:02:21.2040083Z | plist                                   | 3.6.0        |
2022-12-01T14:02:21.2040456Z | public_suffix                           | 5.0.0        |
2022-12-01T14:02:21.2040836Z | addressable                             | 2.8.1        |
2022-12-01T14:02:21.2041385Z | multipart-post                          | 2.0.0        |
2022-12-01T14:02:21.2041774Z | word_wrap                               | 1.0.0        |
2022-12-01T14:02:21.2042149Z | optparse                                | 0.1.1        |
2022-12-01T14:02:21.2042697Z | tty-screen                              | 0.8.1        |
2022-12-01T14:02:21.2043256Z | tty-cursor                              | 0.7.1        |
2022-12-01T14:02:21.2043802Z | tty-spinner                             | 0.9.3        |
2022-12-01T14:02:21.2044191Z | artifactory                             | 3.0.15       |
2022-12-01T14:02:21.2044722Z | babosa                                  | 1.0.4        |
2022-12-01T14:02:21.2045088Z | colored                                 | 1.2          |
2022-12-01T14:02:21.2045576Z | highline                                | 2.0.3        |
2022-12-01T14:02:21.2045951Z | commander                               | 4.6.0        |
2022-12-01T14:02:21.2046323Z | excon                                   | 0.94.0       |
2022-12-01T14:02:21.2046917Z | faraday-em_http                         | 1.0.0        |
2022-12-01T14:02:21.2047502Z | faraday-em_synchrony                    | 1.0.0        |
2022-12-01T14:02:21.2048070Z | faraday-excon                           | 1.1.0        |
2022-12-01T14:02:21.2048647Z | faraday-httpclient                      | 1.0.1        |
2022-12-01T14:02:21.2049623Z | faraday-multipart                       | 1.0.4        |
2022-12-01T14:02:21.2050242Z | faraday-net_http                        | 1.0.1        |
2022-12-01T14:02:21.2050853Z | faraday-net_http_persistent             | 1.2.0        |
2022-12-01T14:02:21.2051439Z | faraday-patron                          | 1.0.0        |
2022-12-01T14:02:21.2052010Z | faraday-rack                            | 1.0.0        |
2022-12-01T14:02:21.2052577Z | faraday-retry                           | 1.0.3        |
2022-12-01T14:02:21.2052976Z | ruby2_keywords                          | 0.0.5        |
2022-12-01T14:02:21.2053364Z | faraday                                 | 1.10.2       |
2022-12-01T14:02:21.2053726Z | unf_ext                                 | 0.0.8.2      |
2022-12-01T14:02:21.2054089Z | unf                                     | 0.1.4        |
2022-12-01T14:02:21.2054469Z | domain_name                             | 0.5.20190701 |
2022-12-01T14:02:21.2055045Z | http-cookie                             | 1.0.5        |
2022-12-01T14:02:21.2055619Z | faraday-cookie_jar                      | 0.0.7        |
2022-12-01T14:02:21.2056018Z | faraday_middleware                      | 1.2.0        |
2022-12-01T14:02:21.2056417Z | fastimage                               | 2.2.6        |
2022-12-01T14:02:21.2056799Z | gh_inspector                            | 1.1.3        |
2022-12-01T14:02:21.2057187Z | mini_magick                             | 4.11.0       |
2022-12-01T14:02:21.2057566Z | naturally                               | 2.2.1        |
2022-12-01T14:02:21.2057924Z | rubyzip                                 | 2.3.2        |
2022-12-01T14:02:21.2058294Z | security                                | 0.1.3        |
2022-12-01T14:02:21.2058873Z | xcpretty-travis-formatter               | 1.0.1        |
2022-12-01T14:02:21.2059279Z | dotenv                                  | 2.8.1        |
2022-12-01T14:02:21.2059645Z | bundler                                 | 2.3.26       |
2022-12-01T14:02:21.2060001Z | simctl                                  | 1.6.8        |
2022-12-01T14:02:21.2060365Z | jwt                                     | 2.5.0        |
2022-12-01T14:02:21.2060724Z | uber                                    | 0.1.0        |
2022-12-01T14:02:21.2061100Z | declarative                             | 0.0.20       |
2022-12-01T14:02:21.2062574Z | trailblazer-option                      | 0.1.2        |
2022-12-01T14:02:21.2063012Z | representable                           | 3.2.0        |
2022-12-01T14:02:21.2063396Z | retriable                               | 3.1.2        |
2022-12-01T14:02:21.2063775Z | mini_mime                               | 1.1.2        |
2022-12-01T14:02:21.2064150Z | memoist                                 | 0.16.2       |
2022-12-01T14:02:21.2064514Z | multi_json                              | 1.15.0       |
2022-12-01T14:02:21.2064881Z | os                                      | 1.1.4        |
2022-12-01T14:02:21.2065244Z | signet                                  | 0.17.0       |
2022-12-01T14:02:21.2065620Z | googleauth                              | 1.3.0        |
2022-12-01T14:02:21.2065999Z | httpclient                              | 2.8.3        |
2022-12-01T14:02:21.2066539Z | webrick                                 | 1.7.0        |
2022-12-01T14:02:21.2067255Z | google-apis-core                        | 0.9.1        |
2022-12-01T14:02:21.2067863Z | google-apis-playcustomapp_v1            | 0.12.0       |
2022-12-01T14:02:21.2068497Z | google-apis-androidpublisher_v3         | 0.31.0       |
2022-12-01T14:02:21.2069105Z | google-cloud-env                        | 1.6.0        |
2022-12-01T14:02:21.2069677Z | google-cloud-errors                     | 1.3.0        |
2022-12-01T14:02:21.2070265Z | google-cloud-core                       | 1.6.0        |
2022-12-01T14:02:21.2070872Z | google-apis-iamcredentials_v1           | 0.16.0       |
2022-12-01T14:02:21.2071487Z | google-apis-storage_v1                  | 0.19.0       |
2022-12-01T14:02:21.2071888Z | rake                                    | 13.0.6       |
2022-12-01T14:02:21.2072422Z | digest-crc                              | 0.6.4        |
2022-12-01T14:02:21.2073000Z | google-cloud-storage                    | 1.44.0       |
2022-12-01T14:02:21.2073416Z | emoji_regex                             | 3.2.3        |
2022-12-01T14:02:21.2073797Z | jmespath                                | 1.6.2        |
2022-12-01T14:02:21.2074360Z | aws-partitions                          | 1.669.0      |
2022-12-01T14:02:21.2074926Z | aws-eventstream                         | 1.2.0        |
2022-12-01T14:02:21.2075493Z | aws-sigv4                               | 1.5.2        |
2022-12-01T14:02:21.2076058Z | aws-sdk-core                            | 3.168.2      |
2022-12-01T14:02:21.2076628Z | aws-sdk-kms                             | 1.60.0       |
2022-12-01T14:02:21.2077194Z | aws-sdk-s3                              | 1.117.2      |
2022-12-01T14:02:21.2077556Z | set                                     | 1.0.2        |
2022-12-01T14:02:21.2077915Z | json                                    | 2.6.2        |
2022-12-01T14:02:21.2078286Z | forwardable                             | 1.3.2        |
2022-12-01T14:02:21.2078663Z | logger                                  | 1.5.0        |
2022-12-01T14:02:21.2079028Z | pathname                                | 0.2.0        |
2022-12-01T14:02:21.2079406Z | shellwords                              | 0.1.0        |
2022-12-01T14:02:21.2079775Z | cgi                                     | 0.3.5        |
2022-12-01T14:02:21.2080133Z | date                                    | 3.2.2        |
2022-12-01T14:02:21.2080494Z | timeout                                 | 0.2.0        |
2022-12-01T14:02:21.2080852Z | stringio                                | 3.0.1        |
2022-12-01T14:02:21.2081231Z | securerandom                            | 0.2.0        |
2022-12-01T14:02:21.2081602Z | uri                                     | 0.11.0       |
2022-12-01T14:02:21.2081965Z | openssl                                 | 3.0.1        |
2022-12-01T14:02:21.2082332Z | digest                                  | 3.1.0        |
2022-12-01T14:02:21.2082874Z | io-nonblock                             | 0.1.0        |
2022-12-01T14:02:21.2083256Z | ipaddr                                  | 1.2.4        |
2022-12-01T14:02:21.2083802Z | io-wait                                 | 0.2.1        |
2022-12-01T14:02:21.2084178Z | zlib                                    | 2.1.1        |
2022-12-01T14:02:21.2084541Z | resolv                                  | 0.2.1        |
2022-12-01T14:02:21.2084887Z | time                                    | 0.2.0        |
2022-12-01T14:02:21.2085675Z | open-uri                                | 0.2.0        |
2022-12-01T14:02:21.2086065Z | mutex_m                                 | 0.1.1        |
2022-12-01T14:02:21.2086620Z | net-http                                | 0.3.0        |
2022-12-01T14:02:21.2087176Z | net-protocol                            | 0.1.2        |
2022-12-01T14:02:21.2087544Z | ostruct                                 | 0.5.2        |
2022-12-01T14:02:21.2087910Z | english                                 | 0.7.1        |
2022-12-01T14:02:21.2088274Z | erb                                     | 2.2.3        |
2022-12-01T14:02:21.2088867Z | strscan                                 | 3.0.1        |
2022-12-01T14:02:21.2089238Z | abbrev                                  | 0.1.0        |
2022-12-01T14:02:21.2089793Z | io-console                              | 0.5.11       |
2022-12-01T14:02:21.2090176Z | tempfile                                | 0.1.2        |
2022-12-01T14:02:21.2090546Z | delegate                                | 0.2.0        |
2022-12-01T14:02:21.2090920Z | fileutils                               | 1.6.0        |
2022-12-01T14:02:21.2091284Z | tmpdir                                  | 0.1.2        |
2022-12-01T14:02:21.2091631Z | etc                                     | 1.3.0        |
2022-12-01T14:02:21.2091990Z | base64                                  | 0.1.1        |
2022-12-01T14:02:21.2092360Z | singleton                               | 0.1.1        |
2022-12-01T14:02:21.2092726Z | open3                                   | 0.1.1        |
2022-12-01T14:02:21.2093073Z | nkf                                     | 0.1.1        |
2022-12-01T14:02:21.2093441Z | prettyprint                             | 0.1.1        |
2022-12-01T14:02:21.2093809Z | pp                                      | 0.3.0        |
2022-12-01T14:02:21.2094160Z | find                                    | 0.1.1        |
2022-12-01T14:02:21.2094517Z | yaml                                    | 0.2.0        |
2022-12-01T14:02:21.2094863Z | psych                                   | 4.0.4        |
2022-12-01T14:02:21.2095457Z | fastlane-plugin-flutter_version         | 1.1.15       |
2022-12-01T14:02:21.2096105Z | fastlane-plugin-flutter_version_manager | 1.0.0        |
2022-12-01T14:02:21.2096534Z | rchardet                                | 1.8.0        |
2022-12-01T14:02:21.2096898Z | git                                     | 1.12.0       |
2022-12-01T14:02:21.2097461Z | fastlane-plugin-file_manager            | 0.2.0        |
2022-12-01T14:02:21.2097831Z </details>
2022-12-01T14:02:21.2097973Z 
2022-12-01T14:02:21.2098082Z 
2022-12-01T14:02:21.2098571Z *generated on:* **2022-12-01**
2022-12-01T14:02:21.2098917Z </details>
2022-12-01T14:02:21.2099756Z [14:02:21]: �[33mTake notice that this output may contain sensitive information, or simply information that you don't want to make public.�[0m
2022-12-01T14:02:21.2100747Z [14:02:21]: �[32mOpen https://github.com/fastlane/fastlane/issues/new to submit a new issue ✅�[0m
@fastlane-bot
Copy link

It seems like you have not included the output of fastlane env
To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env 👍

@IAmJulianAcosta IAmJulianAcosta changed the title negative argument ArgumentError) negative argument ArgumentError when running in CI Dec 1, 2022
@IAmJulianAcosta
Copy link
Author

I investigated a bit more :

    def header(message)
      format = format_string
      if message.length + 8 < TTY::Screen.width - format.length
        message = "--- #{message} ---"
        i = message.length
      else
        i = TTY::Screen.width - format.length
      end
      puts TTY::Screen.width
      puts format.length
      puts i
      success("-" * i)
      success(message)
      success("-" * i)
    end

In CI environment this prints:
1
12
-11

-11 causing the error.
Looks like TTY::Screen.width is returning 1

@IAmJulianAcosta
Copy link
Author

Looks like a duplicate of #20123, closing

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

No branches or pull requests

2 participants