{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/13521","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/13521/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/13521/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/13521/events","html_url":"https://github.com/fastlane/fastlane/issues/13521","id":369160839,"node_id":"MDU6SXNzdWUzNjkxNjA4Mzk=","number":13521,"title":"[Match] Manually manage the fastlane match Repo was broken","user":{"login":"vitaminBW","id":11977947,"node_id":"MDQ6VXNlcjExOTc3OTQ3","avatar_url":"https://avatars0.githubusercontent.com/u/11977947?v=4","gravatar_id":"","url":"https://api.github.com/users/vitaminBW","html_url":"https://github.com/vitaminBW","followers_url":"https://api.github.com/users/vitaminBW/followers","following_url":"https://api.github.com/users/vitaminBW/following{/other_user}","gists_url":"https://api.github.com/users/vitaminBW/gists{/gist_id}","starred_url":"https://api.github.com/users/vitaminBW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitaminBW/subscriptions","organizations_url":"https://api.github.com/users/vitaminBW/orgs","repos_url":"https://api.github.com/users/vitaminBW/repos","events_url":"https://api.github.com/users/vitaminBW/events{/privacy}","received_events_url":"https://api.github.com/users/vitaminBW/received_events","type":"User","site_admin":false},"labels":[{"id":696635555,"node_id":"MDU6TGFiZWw2OTY2MzU1NTU=","url":"https://api.github.com/repos/fastlane/fastlane/labels/status:%20regression","name":"status: regression","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-11T14:53:50Z","updated_at":"2018-10-24T20:56:43Z","closed_at":null,"author_association":"NONE","body":"<!-- Thanks for helping _fastlane_! Before you submit your issue, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->\r\n\r\n### New Regression Checklist\r\n\r\n- [+] Updated fastlane to the latest version\r\n- [+] I read the [Contribution Guidelines](https://github.com/fastlane/fastlane/blob/master/CONTRIBUTING.md)\r\n- [+] I read [docs.fastlane.tools](https://docs.fastlane.tools)\r\n- [+] I searched for [existing GitHub issues](https://github.com/fastlane/fastlane/issues)\r\n\r\n### Regression Information\r\n<!-- Knowing the breaking versions and last working versions helps us track down the regression easier -->\r\nUsing this instruction [docs.fastlane](https://docs.fastlane.tools/advanced/other/#manually-manage-the-fastlane-match-repo) сommand `GitHelper.clone` not working. I'm trying to add existing certificates to the private git repository.\r\n\r\n- Breaking version: [e.g. `2.106.0`]\r\n- Last working version: [e.g. `2.105.2`]\r\n\r\n### Regression Description\r\n<!-- Please include what's happening, expected behavior, and any relevant code samples -->\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\n2.4.2 :023 > workspace = Match::GitHelper.clone(git_url, shallow_clone, manual_password: manual_password)\r\nNameError: uninitialized constant Match::GitHelper\r\nDid you mean?  Match::Helper\r\n\tfrom (irb):23\r\n\tfrom /Users/User1/.rvm/rubies/ruby-2.4.2/bin/irb:11:in `<main>'\r\n```\r\n\r\n<!-- The output of `--capture_output` could contain sensitive data such as application ids, certificate ids, or email addreses, Please make sure you double check the output and replace anything sensitive you don't wish to submit in the issue -->\r\n\r\n### Environment\r\n\r\n<!-- Please run `fastlane env` and copy the output below. This will help us help you :+1:\r\nIf you used `--capture_output` option, please remove this block as it is already included there. -->\r\n\r\n<details>\r\n  <pre>Do this from an interactive Ruby console</pre>\r\n</details>"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/432825153","html_url":"https://github.com/fastlane/fastlane/issues/13521#issuecomment-432825153","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/13521","id":432825153,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjgyNTE1Mw==","user":{"login":"lparenteau","id":155010,"node_id":"MDQ6VXNlcjE1NTAxMA==","avatar_url":"https://avatars3.githubusercontent.com/u/155010?v=4","gravatar_id":"","url":"https://api.github.com/users/lparenteau","html_url":"https://github.com/lparenteau","followers_url":"https://api.github.com/users/lparenteau/followers","following_url":"https://api.github.com/users/lparenteau/following{/other_user}","gists_url":"https://api.github.com/users/lparenteau/gists{/gist_id}","starred_url":"https://api.github.com/users/lparenteau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lparenteau/subscriptions","organizations_url":"https://api.github.com/users/lparenteau/orgs","repos_url":"https://api.github.com/users/lparenteau/repos","events_url":"https://api.github.com/users/lparenteau/events{/privacy}","received_events_url":"https://api.github.com/users/lparenteau/received_events","type":"User","site_admin":false},"created_at":"2018-10-24T20:56:43Z","updated_at":"2018-10-24T20:56:43Z","author_association":"NONE","body":"> @vitaminBW the `Match::GitHelper.clone` method is not available since this commit [cc282f2](https://github.com/fastlane/fastlane/commit/cc282f264f8cefbd8561cd9b1388c75d073307a1)\r\n> \r\n> Here is a workaround I am using in my custom actions:\r\n> \r\n> ```ruby\r\n> config = FastlaneCore::Configuration.create(Match::Options.available_options, {}).load_configuration_file('Matchfile').options\r\n> \r\n> config[:clone_branch_directly] = true\r\n> config[:skip_docs] = true\r\n> config[:shallow_clone] = true\r\n> \r\n> # clone repo to get path\r\n> storage = Match::Storage.for_mode('git', config)\r\n> storage.download\r\n> \r\n> encryption = Match::Encryption.for_storage_mode('git', {\r\n>   git_url: config[:git_url],\r\n>   working_directory: storage.working_directory\r\n> })\r\n> encryption.decrypt_files\r\n> \r\n> #use path to the directory to manipulate files: \r\n> storage.working_directory\r\n> ```\r\n> \r\n> Hope it helps.\r\n> \r\n> In my opinion this is not very handy. It was cleaner to call a wrapper that took care of both cloning and decrypting.\r\n\r\nTo save changes once you're done : \r\n```\r\nencryption.encrypt_files\r\nstorage.save_changes!()\r\n```"}}
{"actor":{"display_login":"lparenteau"}}