{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/11112","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/11112/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/11112/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/11112/events","html_url":"https://github.com/fastlane/fastlane/issues/11112","id":279405065,"number":11112,"title":"import_from_git not working with plugins","user":{"login":"NiklasWebnuts","id":29117640,"avatar_url":"https://avatars2.githubusercontent.com/u/29117640?v=4","gravatar_id":"","url":"https://api.github.com/users/NiklasWebnuts","html_url":"https://github.com/NiklasWebnuts","followers_url":"https://api.github.com/users/NiklasWebnuts/followers","following_url":"https://api.github.com/users/NiklasWebnuts/following{/other_user}","gists_url":"https://api.github.com/users/NiklasWebnuts/gists{/gist_id}","starred_url":"https://api.github.com/users/NiklasWebnuts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NiklasWebnuts/subscriptions","organizations_url":"https://api.github.com/users/NiklasWebnuts/orgs","repos_url":"https://api.github.com/users/NiklasWebnuts/repos","events_url":"https://api.github.com/users/NiklasWebnuts/events{/privacy}","received_events_url":"https://api.github.com/users/NiklasWebnuts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-12-05T14:56:52Z","updated_at":"2018-03-15T17:32:52Z","closed_at":null,"author_association":"NONE","body":"🔑\r\n\r\n<!-- Thanks for helping _fastlane_! Before you submit your issue, please make sure to check the following boxes by putting an x in the [ ] (do: [x], don't: [x ], [ x], [✔️]) -->\r\n\r\n### New Issue Checklist\r\n\r\n- [x] Updated fastlane to the latest version\r\n- [x] I read the [Contribution Guidelines](https://github.com/fastlane/fastlane/blob/master/CONTRIBUTING.md)\r\n- [x] I read [docs.fastlane.tools](https://docs.fastlane.tools)\r\n- [x] I searched for [existing GitHub issues](https://github.com/fastlane/fastlane/issues)\r\n\r\n### Issue Description\r\n\r\nWhen running import_from_git to load a Fastfile from another repository, none of the dependencies (e.g. fastlane plugins) are installed. For me, this is extremely unintuitive and ruins the otherwise lovely abstraction that import_from_git provides.\r\n\r\nI have the following setup:\r\n- **Repository A** - containing information that uses lanes from **Repository B**\r\n- **Repository B** - Containing lanes using the plugin [upgrade_super_old_xcode_project](https://github.com/ionic-zone/fastlane-plugin-upgrade_super_old_xcode_project)\r\n\r\nFastfile in **Repository A**: \r\n\r\n```\r\nfastlane_version \"2.64.0\"\r\n\r\ndefault_platform :ios\r\n\r\nimport_from_git(url: 'git@github.com:myorg/fastlane-actions.git')\r\n\r\nbefore_all do\r\n  # Name of the project. Used to find the Xcode project\r\n  ENV[\"PROJECT_NAME\"] = \"Sales Tool\"\r\n\r\n  # Project directories (used for various Fastlane actions)\r\n  ENV[\"PROJECT_DIRECTORY\"] = \"cordova/platforms/ios/#{ENV['PROJECT_NAME']}.xcodeproj\"\r\n  ENV[\"EMBER_PROJECT_DIRECTORY\"] = \"../sales-app\"\r\n  ENV[\"CORDOVA_PROJECT_DIRECTORY\"] = \"../cordova\"\r\nend\r\n\r\nlane :test do\r\n  ensure_correct_xcode_project(\r\n    path: ENV[\"PROJECT_DIRECTORY\"]\r\n  )\r\nend\r\n```\r\n\r\nFastfile in **Repository B**:\r\n\r\n```\r\nfastlane_version \"2.68.0\"\r\n\r\nlane :ensure_correct_xcode_project do |options|\r\n  # Ensure that the user has specified the xcode project location\r\n  unless options.key?(:path)\r\n    UI.user_error!(\"'path' option not provided.\")\r\n  end\r\n\r\n  # Upgrade the Xcode files to be compatible with fastlane\r\n  # Older versions (generated by Cordova) are missing some files, which are required by fastlane\r\n  upgrade_super_old_xcode_project(\r\n    path: options[:path],\r\n    team_id: CredentialsManager::AppfileConfig.try_fetch_value(:team_id)\r\n  )\r\nend\r\n```\r\n\r\nPluginfile in **Repository B**:\r\n\r\n```\r\ngem 'fastlane-plugin-upgrade_super_old_xcode_project'\r\n```\r\n\r\nThe required plugin is installed correctly in **Repository B** and the lane `ensure_correct_xcode_project` is working when used without/outside `import_from_git`.\r\n\r\nAre there any workarounds for this issue that does not include installing the plugin in **Repository A**?\r\n\r\n##### Complete output when running fastlane, including the stack trace and command used\r\n<!-- You can use: `--capture_output` as the last commandline argument to get that collected for you -->\r\n\r\n### Captured Output\r\n\r\n### Captured Output\r\n\r\nCommand Used: `test`\r\n<details><summary>Output/Log</summary>\r\n\r\n```\r\n\r\nDEBUG [2017-12-05 15:45:13.71]: Checking if there are any plugins that should be loaded...\r\nDEBUG [2017-12-05 15:45:13.71]: Loading 'fastlane-plugin-ftp' plugin\r\nINFO [2017-12-05 15:45:13.77]: gem 'fastlane-plugin-ftp' is already installed\r\n+---------------------+---------+--------+\r\n|              Used plugins              |\r\n+---------------------+---------+--------+\r\n| Plugin              | Version | Action |\r\n+---------------------+---------+--------+\r\n| fastlane-plugin-ftp | 0.1.3   | ftp    |\r\n+---------------------+---------+--------+\r\n\r\nSuccessfully loaded Appfile at path '/Users/niklas/Documents/git/project/fastlane/Appfile'\r\n- app_identifier: 'com.project.salestool'\r\n- apple_id: 'myid@example.com'\r\n- team_id: 'someteam'\r\n-------\r\nINFO [2017-12-05 15:45:14.02]: -------------------------------------------------\r\nINFO [2017-12-05 15:45:14.02]: --- Step: Verifying required fastlane version ---\r\nINFO [2017-12-05 15:45:14.02]: -------------------------------------------------\r\nINFO [2017-12-05 15:45:14.02]: Your fastlane version 2.68.1 matches the minimum requirement of 2.64.0  ✅\r\nINFO [2017-12-05 15:45:14.06]: ------------------------------\r\nINFO [2017-12-05 15:45:14.06]: --- Step: default_platform ---\r\nINFO [2017-12-05 15:45:14.06]: ------------------------------\r\nINFO [2017-12-05 15:45:14.07]: -----------------------------\r\nINFO [2017-12-05 15:45:14.07]: --- Step: import_from_git ---\r\nINFO [2017-12-05 15:45:14.07]: -----------------------------\r\nINFO [2017-12-05 15:45:14.10]: Cloning remote git repo...\r\nINFO [2017-12-05 15:45:14.10]: $ GIT_TERMINAL_PROMPT=0 git clone 'git@github.com:myorg/fastlane-actions.git' '/var/folders/jd/nl_3vr_n3_n0w7njmkkgvkbh0000gn/T/fl_clone20171205-18862-1rj07th/fastlane-actions.git' --depth 1 -n\r\nINFO [2017-12-05 15:45:14.12]: ▸ Cloning into '/var/folders/jd/nl_3vr_n3_n0w7njmkkgvkbh0000gn/T/fl_clone20171205-18862-1rj07th/fastlane-actions.git'...\r\nINFO [2017-12-05 15:45:15.81]: $ cd '/var/folders/jd/nl_3vr_n3_n0w7njmkkgvkbh0000gn/T/fl_clone20171205-18862-1rj07th/fastlane-actions.git' && git checkout HEAD 'fastlane/Fastfile'\r\nINFO [2017-12-05 15:45:15.83]: $ cd '/var/folders/jd/nl_3vr_n3_n0w7njmkkgvkbh0000gn/T/fl_clone20171205-18862-1rj07th/fastlane-actions.git' && git checkout HEAD 'fastlane/actions'\r\nINFO [2017-12-05 15:45:15.84]: ▸ error: pathspec 'fastlane/actions' did not match any file(s) known to git.\r\nINFO [2017-12-05 15:45:15.95]: gem 'commonjs' is already installed\r\nINFO [2017-12-05 15:45:16.05]: gem 'therubyracer' is already installed\r\nINFO [2017-12-05 15:45:16.11]: -------------------------------------------------\r\nINFO [2017-12-05 15:45:16.11]: --- Step: Verifying required fastlane version ---\r\nINFO [2017-12-05 15:45:16.11]: -------------------------------------------------\r\nINFO [2017-12-05 15:45:16.11]: Your fastlane version 2.68.1 matches the minimum requirement of 2.68.0  ✅\r\nINFO [2017-12-05 15:45:16.12]: Driving the lane 'test' 🚀\r\nINFO [2017-12-05 15:45:16.13]: ---------------------------------------------------------\r\nINFO [2017-12-05 15:45:16.13]: --- Step: Switch to ensure_correct_xcode_project lane ---\r\nINFO [2017-12-05 15:45:16.13]: ---------------------------------------------------------\r\nINFO [2017-12-05 15:45:16.13]: Cruising over to lane 'ensure_correct_xcode_project' 🚖\r\nDEBUG [2017-12-05 15:45:16.13]: /Users/niklas/.rvm/gems/ruby-2.4.2@global/gems/fastlane-2.68.1/fastlane/lib/fastlane/runner.rb:155:in `trigger_action_by_name'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2@global/gems/fastlane-2.68.1/fastlane/lib/fastlane/fast_file.rb:146:in `method_missing'\r\n../../../../../../var/folders/jd/nl_3vr_n3_n0w7njmkkgvkbh0000gn/T/fl_clone20171205-18862-1rj07th/fastlane-actions.git/fastlane/Fastfile:73:in `block in parsing_binding'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2@global/gems/fastlane-2.68.1/fastlane/lib/fastlane/lane.rb:33:in `call'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2@global/gems/fastlane-2.68.1/fastlane/lib/fastlane/runner.rb:201:in `try_switch_to_lane'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2@global/gems/fastlane-2.68.1/fastlane/lib/fastlane/runner.rb:156:in `trigger_action_by_name'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2@global/gems/fastlane-2.68.1/fastlane/lib/fastlane/fast_file.rb:146:in `method_missing'\r\nFastfile:18:in `block in parsing_binding'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2@global/gems/fastlane-2.68.1/fastlane/lib/fastlane/lane.rb:33:in `call'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2@global/gems/fastlane-2.68.1/fastlane/lib/fastlane/runner.rb:49:in `block in execute'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2@global/gems/fastlane-2.68.1/fastlane/lib/fastlane/runner.rb:45:in `chdir'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2@global/gems/fastlane-2.68.1/fastlane/lib/fastlane/runner.rb:45:in `execute'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2@global/gems/fastlane-2.68.1/fastlane/lib/fastlane/lane_manager.rb:54:in `cruise_lane'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2@global/gems/fastlane-2.68.1/fastlane/lib/fastlane/command_line_handler.rb:30:in `handle'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2@global/gems/fastlane-2.68.1/fastlane/lib/fastlane/commands_generator.rb:104:in `block (2 levels) in run'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2/gems/commander-fastlane-4.4.5/lib/commander/command.rb:178:in `call'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2/gems/commander-fastlane-4.4.5/lib/commander/command.rb:153:in `run'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2/gems/commander-fastlane-4.4.5/lib/commander/runner.rb:476:in `run_active_command'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2@global/gems/fastlane-2.68.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:66:in `run!'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2/gems/commander-fastlane-4.4.5/lib/commander/delegates.rb:15:in `run!'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2@global/gems/fastlane-2.68.1/fastlane/lib/fastlane/commands_generator.rb:304:in `run'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2@global/gems/fastlane-2.68.1/fastlane/lib/fastlane/commands_generator.rb:42:in `start'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2@global/gems/fastlane-2.68.1/fastlane/lib/fastlane/cli_tools_distributor.rb:75:in `take_off'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2@global/gems/fastlane-2.68.1/bin/fastlane:20:in `<top (required)>'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2/bin/fastlane:23:in `load'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2/bin/fastlane:23:in `<main>'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2/bin/ruby_executable_hooks:15:in `eval'\r\n/Users/niklas/.rvm/gems/ruby-2.4.2/bin/ruby_executable_hooks:15:in `<main>'\r\nWARN [2017-12-05 15:45:16.13]: Lane Context:\r\nINFO [2017-12-05 15:45:16.13]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>nil, :LANE_NAME=>\"test\"}\r\nERROR [2017-12-05 15:45:16.13]: Could not find action, lane or variable 'upgrade_super_old_xcode_project'. Check out the documentation for more details: https://docs.fastlane.tools/actions\r\nINFO [2017-12-05 15:45:16.13]: Successfully generated documentation at path '/Users/niklas/Documents/git/project/fastlane/README.md'\r\n\r\n+------+---------------------------------------------+-------------+\r\n|                         fastlane summary                         |\r\n+------+---------------------------------------------+-------------+\r\n| Step | Action                                      | Time (in s) |\r\n+------+---------------------------------------------+-------------+\r\n| 1    | Verifying required fastlane version         | 0           |\r\n| 2    | default_platform                            | 0           |\r\n| 3    | Verifying required fastlane version         | 0           |\r\n| 4    | import_from_git                             | 2           |\r\n| 5    | Switch to ensure_correct_xcode_project lane | 0           |\r\n+------+---------------------------------------------+-------------+\r\n\r\nDEBUG [2017-12-05 15:45:16.14]: All plugins are up to date\r\nERROR [2017-12-05 15:45:16.14]: fastlane finished with errors\r\nDEBUG [2017-12-05 15:45:17.46]: All plugins are up to date\r\n\r\n\r\n```\r\n\r\n</details>\r\n\r\n<details><summary>🚫 fastlane environment 🚫</summary>\r\n\r\n### Stack\r\n\r\n| Key                         | Value                                       |\r\n| --------------------------- | ------------------------------------------- |\r\n| OS                          | 10.12.6                                     |\r\n| Ruby                        | 2.4.2                                       |\r\n| Bundler?                    | true                                        |\r\n| Git                         | git version 2.13.6 (Apple Git-96)           |\r\n| Installation Source         | ~/.rvm/gems/ruby-2.4.2/bin/fastlane         |\r\n| Host                        | Mac OS X 10.12.6 (16G1036)                  |\r\n| Ruby Lib Dir                | ~/.rvm/rubies/ruby-2.4.2/lib                |\r\n| OpenSSL Version             | OpenSSL 1.1.0g  2 Nov 2017                  |\r\n| Is contained                | false                                       |\r\n| Is homebrew                 | false                                       |\r\n| Is installed via Fabric.app | false                                       |\r\n| Xcode Path                  | /Applications/Xcode.app/Contents/Developer/ |\r\n| Xcode Version               | 9.1                                         |\r\n\r\n\r\n### System Locale\r\n\r\n| Variable | Value       |   |\r\n| -------- | ----------- | - |\r\n| LANG     | en_US.UTF-8 | ✅ |\r\n| LC_ALL   |             | 🚫 |\r\n| LANGUAGE |             |   |\r\n\r\n\r\n### fastlane files:\r\n\r\n<details><summary>`./fastlane/Fastfile`</summary>\r\n\r\n```ruby\r\nfastlane_version \"2.64.0\"\r\n\r\ndefault_platform :ios\r\n\r\nimport_from_git(url: 'git@github.com:myorg/fastlane-actions.git')\r\n\r\nbefore_all do\r\n  # Name of the project. Used to find the Xcode project\r\n  ENV[\"PROJECT_NAME\"] = \"Sales Tool\"\r\n\r\n  # Project directories (used for various Fastlane actions)\r\n  ENV[\"PROJECT_DIRECTORY\"] = \"cordova/platforms/ios/#{ENV['PROJECT_NAME']}.xcodeproj\"\r\n  ENV[\"EMBER_PROJECT_DIRECTORY\"] = \"../sales-app\"\r\n  ENV[\"CORDOVA_PROJECT_DIRECTORY\"] = \"../cordova\"\r\nend\r\n\r\nlane :test do\r\n  ensure_correct_xcode_project(\r\n    path: ENV[\"PROJECT_DIRECTORY\"]\r\n  )\r\nend\r\n\r\n```\r\n</details>\r\n\r\n<details><summary>`./fastlane/Appfile`</summary>\r\n\r\n```ruby\r\napp_identifier \"com.gludmarstrand.salestool\" # The bundle identifier of your app\r\napple_id \"myid@example.com\" # Your Apple email address\r\n\r\nteam_id \"someteam\" # Developer Portal Team ID\r\n\r\n# you can even provide different app identifiers, Apple IDs and team names per lane:\r\n# More information: https://docs.fastlane.tools/advanced/#appfile\r\n\r\n```\r\n</details>\r\n\r\n### fastlane gems\r\n\r\n| Gem      | Version | Update-Status |\r\n| -------- | ------- | ------------- |\r\n| fastlane | 2.68.1  | ✅ Up-To-Date  |\r\n\r\n\r\n### Loaded fastlane plugins:\r\n\r\n| Plugin              | Version | Update-Status |\r\n| ------------------- | ------- | ------------- |\r\n| fastlane-plugin-ftp | 0.1.3   | ✅ Up-To-Date  |\r\n\r\n\r\n<details><summary><b>Loaded gems</b></summary>\r\n\r\n| Gem                       | Version      |\r\n| ------------------------- | ------------ |\r\n| did_you_mean              | 1.1.0        |\r\n| executable-hooks          | 1.3.2        |\r\n| bundler-unload            | 1.0.2        |\r\n| rubygems-bundler          | 1.4.4        |\r\n| bundler                   | 1.16.0       |\r\n| io-console                | 0.4.6        |\r\n| CFPropertyList            | 2.3.5        |\r\n| public_suffix             | 2.0.5        |\r\n| addressable               | 2.5.2        |\r\n| babosa                    | 1.0.2        |\r\n| claide                    | 1.0.2        |\r\n| colored                   | 1.2          |\r\n| colored2                  | 3.1.2        |\r\n| highline                  | 1.7.10       |\r\n| commander-fastlane        | 4.4.5        |\r\n| commonjs                  | 0.2.7        |\r\n| declarative               | 0.0.10       |\r\n| declarative-option        | 0.1.0        |\r\n| unf_ext                   | 0.0.7.4      |\r\n| unf                       | 0.1.4        |\r\n| domain_name               | 0.5.20170404 |\r\n| dotenv                    | 2.2.1        |\r\n| excon                     | 0.59.0       |\r\n| multipart-post            | 2.0.0        |\r\n| faraday                   | 0.13.1       |\r\n| http-cookie               | 1.0.3        |\r\n| faraday-cookie_jar        | 0.0.6        |\r\n| faraday_middleware        | 0.12.2       |\r\n| fastimage                 | 2.1.0        |\r\n| gh_inspector              | 1.0.3        |\r\n| jwt                       | 2.1.0        |\r\n| little-plugger            | 1.1.4        |\r\n| multi_json                | 1.12.2       |\r\n| logging                   | 2.2.2        |\r\n| memoist                   | 0.16.0       |\r\n| os                        | 0.9.6        |\r\n| signet                    | 0.8.1        |\r\n| googleauth                | 0.6.2        |\r\n| httpclient                | 2.8.3        |\r\n| mime-types-data           | 3.2016.0521  |\r\n| mime-types                | 3.1          |\r\n| uber                      | 0.1.0        |\r\n| representable             | 3.0.4        |\r\n| retriable                 | 3.1.1        |\r\n| google-api-client         | 0.13.6       |\r\n| json                      | 2.1.0        |\r\n| mini_magick               | 4.5.1        |\r\n| multi_xml                 | 0.6.0        |\r\n| plist                     | 3.3.0        |\r\n| rubyzip                   | 1.2.1        |\r\n| security                  | 0.1.3        |\r\n| slack-notifier            | 1.5.1        |\r\n| terminal-notifier         | 1.8.0        |\r\n| unicode-display_width     | 1.3.0        |\r\n| terminal-table            | 1.8.0        |\r\n| tty-screen                | 0.6.3        |\r\n| word_wrap                 | 1.0.0        |\r\n| nanaimo                   | 0.2.3        |\r\n| xcodeproj                 | 1.5.3        |\r\n| rouge                     | 2.0.7        |\r\n| xcpretty                  | 0.2.8        |\r\n| xcpretty-travis-formatter | 1.0.0        |\r\n| fastlane-plugin-ftp       | 0.1.3        |\r\n| libv8                     | 3.16.14.19   |\r\n| ref                       | 2.0.0        |\r\n| therubyracer              | 0.12.3       |\r\n</details>\r\n\r\n\r\n*generated on:* **2017-12-05**\r\n</details>\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/373460303","html_url":"https://github.com/fastlane/fastlane/issues/11112#issuecomment-373460303","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/11112","id":373460303,"user":{"login":"fastlane-bot","id":17056452,"avatar_url":"https://avatars0.githubusercontent.com/u/17056452?v=4","gravatar_id":"","url":"https://api.github.com/users/fastlane-bot","html_url":"https://github.com/fastlane-bot","followers_url":"https://api.github.com/users/fastlane-bot/followers","following_url":"https://api.github.com/users/fastlane-bot/following{/other_user}","gists_url":"https://api.github.com/users/fastlane-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlane-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlane-bot/subscriptions","organizations_url":"https://api.github.com/users/fastlane-bot/orgs","repos_url":"https://api.github.com/users/fastlane-bot/repos","events_url":"https://api.github.com/users/fastlane-bot/events{/privacy}","received_events_url":"https://api.github.com/users/fastlane-bot/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T17:32:52Z","updated_at":"2018-03-15T17:32:52Z","author_association":"NONE","body":"There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.\n\nPlease make sure to update to the latest `fastlane` version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:"}}
{"actor":{"display_login":"fastlane-bot"}}