{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/4866","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/4866/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/4866/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/4866/events","html_url":"https://github.com/fastlane/fastlane/issues/4866","id":157058423,"number":4866,"title":"Match fails to import certificates when using a fully-qualified path to the keychain","user":{"login":"lyricsboy","id":36460,"avatar_url":"https://avatars.githubusercontent.com/u/36460?v=3","gravatar_id":"","url":"https://api.github.com/users/lyricsboy","html_url":"https://github.com/lyricsboy","followers_url":"https://api.github.com/users/lyricsboy/followers","following_url":"https://api.github.com/users/lyricsboy/following{/other_user}","gists_url":"https://api.github.com/users/lyricsboy/gists{/gist_id}","starred_url":"https://api.github.com/users/lyricsboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyricsboy/subscriptions","organizations_url":"https://api.github.com/users/lyricsboy/orgs","repos_url":"https://api.github.com/users/lyricsboy/repos","events_url":"https://api.github.com/users/lyricsboy/events{/privacy}","received_events_url":"https://api.github.com/users/lyricsboy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fastlane/fastlane/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/fastlane/fastlane/labels/match","name":"match","color":"fad8c7"}],"state":"closed","locked":false,"assignee":{"login":"mfurtak","id":343134,"avatar_url":"https://avatars.githubusercontent.com/u/343134?v=3","gravatar_id":"","url":"https://api.github.com/users/mfurtak","html_url":"https://github.com/mfurtak","followers_url":"https://api.github.com/users/mfurtak/followers","following_url":"https://api.github.com/users/mfurtak/following{/other_user}","gists_url":"https://api.github.com/users/mfurtak/gists{/gist_id}","starred_url":"https://api.github.com/users/mfurtak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfurtak/subscriptions","organizations_url":"https://api.github.com/users/mfurtak/orgs","repos_url":"https://api.github.com/users/mfurtak/repos","events_url":"https://api.github.com/users/mfurtak/events{/privacy}","received_events_url":"https://api.github.com/users/mfurtak/received_events","type":"User","site_admin":false},"assignees":[{"login":"mfurtak","id":343134,"avatar_url":"https://avatars.githubusercontent.com/u/343134?v=3","gravatar_id":"","url":"https://api.github.com/users/mfurtak","html_url":"https://github.com/mfurtak","followers_url":"https://api.github.com/users/mfurtak/followers","following_url":"https://api.github.com/users/mfurtak/following{/other_user}","gists_url":"https://api.github.com/users/mfurtak/gists{/gist_id}","starred_url":"https://api.github.com/users/mfurtak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfurtak/subscriptions","organizations_url":"https://api.github.com/users/mfurtak/orgs","repos_url":"https://api.github.com/users/mfurtak/repos","events_url":"https://api.github.com/users/mfurtak/events{/privacy}","received_events_url":"https://api.github.com/users/mfurtak/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2016-05-26T19:19:44Z","updated_at":"2016-08-06T17:56:32Z","closed_at":"2016-08-03T18:35:13Z","body":"### Issue Description\r\n\r\nIn `match/lib/match/utils.rb` there's a hard-coded path to `~/Library/Keychains` prepended to the keychain \"name\".\r\n\r\nhttps://github.com/fastlane/fastlane/blob/5dff30df8712b1120ff992446804178deedab922/match/lib/match/utils.rb#L4\r\n\r\nWhen using a fully-specified path to the keychain, for example using Jenkins' \"Keychains and Provisioning Profiles\" plugin, the path ends up getting augmented incorrectly. A sanitized example from my project:\r\n\r\n```\r\nsecurity import /var/folders/t4/99vplf817qs40m8tz1tkkj500000gn/T/d20160526-57929-19soscm/certs/distribution/xxxx.cer -k ~/Library/Keychains//Users/user/.jenkins-slave/workspace/iOS\\ Parameterized\\ Build/jenkins_match.keychain -T /usr/bin/codesign -T /usr/bin/security&> /dev/null\r\n```\r\n\r\nFastlaneCore::CertChecker can handle this situation correctly, so perhaps some similar techniques can be applied to the match implementation to fix this.\r\n\r\nIt would also be nice to avoid sending output from the import process to `/dev/null`, at least when running in verbose mode. That would make the failure easier to see.\r\n\r\nPossibly related to #4826 "},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/238036675","html_url":"https://github.com/fastlane/fastlane/issues/4866#issuecomment-238036675","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/4866","id":238036675,"user":{"login":"ffittschen","id":7734806,"avatar_url":"https://avatars.githubusercontent.com/u/7734806?v=3","gravatar_id":"","url":"https://api.github.com/users/ffittschen","html_url":"https://github.com/ffittschen","followers_url":"https://api.github.com/users/ffittschen/followers","following_url":"https://api.github.com/users/ffittschen/following{/other_user}","gists_url":"https://api.github.com/users/ffittschen/gists{/gist_id}","starred_url":"https://api.github.com/users/ffittschen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffittschen/subscriptions","organizations_url":"https://api.github.com/users/ffittschen/orgs","repos_url":"https://api.github.com/users/ffittschen/repos","events_url":"https://api.github.com/users/ffittschen/events{/privacy}","received_events_url":"https://api.github.com/users/ffittschen/received_events","type":"User","site_admin":false},"created_at":"2016-08-06T17:56:32Z","updated_at":"2016-08-06T17:56:32Z","body":"@mfurtak I just had time to try `match 0.6.2`:\r\n\r\n`keychain_name \"~/Dev/MatchTest/CI.keychain\"` does not work. It results in the following error:\r\n```\r\n[!] Could not locate the provided keychain. Tried:\r\n\t/Users/ffittschen/Library/Keychains/~/Dev/MatchTest/CI.keychain\r\n\t~/Dev/MatchTest/CI.keychain\r\n```\r\n\r\nBut `keychain_name \"/Users/ffittschen/Dev/MatchTest/CI.keychain\"` does work. Thanks for the fix 👍🏻"}}
{"actor":{"display_login":"ffittschen"}}