{"action":"closed","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew-cask/issues/51536","repository_url":"https://api.github.com/repos/Homebrew/homebrew-cask","labels_url":"https://api.github.com/repos/Homebrew/homebrew-cask/issues/51536/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew-cask/issues/51536/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew-cask/issues/51536/events","html_url":"https://github.com/Homebrew/homebrew-cask/issues/51536","id":356204903,"node_id":"MDU6SXNzdWUzNTYyMDQ5MDM=","number":51536,"title":"LibreOffice formula incompatible with quarantine","user":{"login":"cbertelli","id":9051076,"node_id":"MDQ6VXNlcjkwNTEwNzY=","avatar_url":"https://avatars3.githubusercontent.com/u/9051076?v=4","gravatar_id":"","url":"https://api.github.com/users/cbertelli","html_url":"https://github.com/cbertelli","followers_url":"https://api.github.com/users/cbertelli/followers","following_url":"https://api.github.com/users/cbertelli/following{/other_user}","gists_url":"https://api.github.com/users/cbertelli/gists{/gist_id}","starred_url":"https://api.github.com/users/cbertelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbertelli/subscriptions","organizations_url":"https://api.github.com/users/cbertelli/orgs","repos_url":"https://api.github.com/users/cbertelli/repos","events_url":"https://api.github.com/users/cbertelli/events{/privacy}","received_events_url":"https://api.github.com/users/cbertelli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-01T14:02:59Z","updated_at":"2018-09-01T17:57:36Z","closed_at":"2018-09-01T17:57:36Z","author_association":"NONE","body":"Upgrading libreoffice fails with:\r\n```\r\nError: Failed to quarantine /Users/user/Library/Caches/Homebrew/downloads/dc9ddd48fec30d8b930c5dcc5d7660263a466a6dcaa6111d9114357afd8cba1b--LibreOffice_6.1.0_MacOS_x86-64.dmg. Here's the reason:\r\n/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:7:23: warning: extraneous '_' in parameter: 'string' has no keyword argument name\r\n  mutating func write(_ string: String) { fputs(string, stderr) }\r\n                      ^~\r\n                      \r\n/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:5:18: error: use of undeclared type 'TextOutputStream'\r\nstruct swifterr: TextOutputStream {\r\n                 ^~~~~~~~~~~~~~~~\r\n/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:6:3: warning: declaring a public static var for an internal struct\r\n  public static var stream = swifterr()\r\n  ^~~~~~\r\n  internal\r\n/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:10:5: error: use of unresolved identifier 'CommandLine'\r\nif (CommandLine.arguments.count < 4) {\r\n    ^\r\n/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:14:58: error: use of unresolved identifier 'CommandLine'\r\nlet dataLocationUrl: NSURL = NSURL.init(fileURLWithPath: CommandLine.arguments[1])\r\n                                                         ^\r\n/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:21:38: error: use of unresolved identifier 'CommandLine'\r\n  kLSQuarantineDataURLKey as String: CommandLine.arguments[2],\r\n                                     ^\r\n/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:22:40: error: use of unresolved identifier 'CommandLine'\r\n  kLSQuarantineOriginURLKey as String: CommandLine.arguments[3]\r\n                                       ^\r\n/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:27:8: error: consecutive statements on a line must be separated by ';'\r\n    try dataLocationUrl.setResourceValue(\r\n       ^\r\n       ;\r\n/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:31:4: error: expected 'while' in 'do-while' loop\r\n  }\r\n   ^\r\n/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:32:9: error: braced block of statements is an unused closure\r\n  catch {\r\n        ^\r\n/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:32:9: error: type of expression is ambiguous without more context\r\n  catch {\r\n        ^\r\n```\r\n"}}
{"actor":{"display_login":"vitorgalvao"}}