language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
Homebrew
brew
f4d81fee1c57b0e152876ea8bb57115807b3c223.json
Add flowchart for managing pull requests - Add flowchart for handling ready-to-merge pull requests - Add diagram guidelines Many thanks to Sean Molenaar for the idea and initial version of the chart. CC: Sean Molenaar <smillernl@me.com>
docs/README.md
@@ -46,6 +46,7 @@ - [Building Against Non-Homebrew Dependencies](Building-Against-Non-Homebrew-Dependencies.md) - [How To Create (And Maintain) A Tap](How-to-Create-and-Maintain-a-Tap.md) - [Brew Test Bot](Brew-Test-Bot.md) +- [Diagram Guidelines](Diagram-Guidelines.md) - [Prose Style Guidelines](Prose-Style-Guidelines.md) - [Type Checking with Sorbet](Typechecking.md)
true
Other
Homebrew
brew
f4d81fee1c57b0e152876ea8bb57115807b3c223.json
Add flowchart for managing pull requests - Add flowchart for handling ready-to-merge pull requests - Add diagram guidelines Many thanks to Sean Molenaar for the idea and initial version of the chart. CC: Sean Molenaar <smillernl@me.com>
docs/assets/img/docs/managing-pull-requests.drawio.svg
@@ -0,0 +1,498 @@ +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="759px" height="936px" viewBox="-0.5 -0.5 759 936" content="&lt;mxfile host=&quot;bc6f822c-9eee-4864-9965-eff809b251a4&quot; modified=&quot;2020-09-06T12:53:34.431Z&quot; agent=&quot;5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.48.2 Chrome/78.0.3904.130 Electron/7.3.2 Safari/537.36&quot; etag=&quot;QzwiISMU3f0BqGHPz5RN&quot; version=&quot;13.1.3&quot;&gt;&lt;diagram id=&quot;6hGFLwfOUW9BJ-s0fimq&quot; name=&quot;Page-1&quot;&gt;7Vxbb6M4FP41eUzFneSxSdvZkWZ2K3U1M31aOcFJ2CE4Y0yT9NevDTZgm7SEEJLurlSpYMzB+HznOxfsDOzpevcJg83qKwpgNLCMYDew7waWZRqWNWB/RrDPW0ammzcscRjwTmXDU/gKxZ28NQ0DmEgdCUIRCTdy4xzFMZwTqQ1gjLZytwWK5KduwBJqDU9zEOmt38OArPhbWH7Z/hsMlyvxZNMb51fWQHTmb5KsQIC2lSb7fmBPMUIkP1rvpjBikyfmJb/v4cDVYmAYxqTRDaP8jhcQpfzl+MDIXrwtDOjL81OEyQotUQyi+7J1glEaB5CJNOhZ2ecLQhvaaNLGvyEhe65JkBJEm1ZkHfGrdLR4/4Pfn508s5MbV5ze7aoX7/bVs0eIwzUkEPNGfQ4ERgBeQt7EX5O9W6UPn6RPEFGBeE87YBgBEr7IigccP8uiX3HrIwrpUy2DY108RwDdM2QJ+ZD4TaWebjEG+0q3DeuQHH6M6SrPcRS1K/355ZbdLU/qTg/y8TYcm6HMQYJSPIfaHNCDiibKpgzBB9AsrKpf8O5C8qOEKz17rlwpkctO9pUTFbelEZS4f5ZgX28EB/GeT6yE96oJjPsxAdOR9e+YzWygjf5Njc2eYVKLiS9gRp2SpEcQhcuYHs/pPDKlTF4gJiFl/Vt+YR0GQQ4ZmISvYJbJYxrg5kmFu5OBe1evE/7WTCjcSXPJ3RQXKHkCSRH8rqFxY44cT5rUIZ/jU+lKETqWBaDFIoGnKsl1r8LltLUau3PPIc3lGxPn6ej+HQ2sKetCBvfWYGQMxmMKdy+iY53MMD1asqNFGMPrMIJC910YAQ24TBmvTidG4NQK7dQGLE2T30E2BIpSTX1rFIQL9uoI6xcxnIGEynjQFJwQjH4W8aklq5nGnRvWb71bshD9ZhGh7XwFMLkJ4DxMQkRVPdmuQgKfNiCzhi3t95bZaCo9qDoa/8vhhKDGbRlLmyJIWFXjaDVyaGNF5nXQz1md/VinLdPrydsr0Z5nn83bj2sUmZvHRlKn9ytl6dQkojQ4FHi6pV1MxjFu2UHY1AzDLZtkPNyk7Im5UDqcjeihIaZqWprdFcYG4hREn+NNSg5YVwmrTFIOHstjvIznHEsmu7RAMXkA6zBi05zsEwLXwzQcrlGMkkykNVVOv6TzMAB01FMUJyhiTV9hHDEHUnajz6T/w3gpRp6f/ZmD2jqP/Tt2Q/tXk6dW5u9pqPkq+BXEAXu3NFlp+hVeMPOYjygJSUaRdzNECFrXuEnCpqzQPKHqha+IDWKyqYT9RXslFxBqpw7OlhXP7H8RhZtvHB8RG8wEzH8uM9xMUYSY0BjFUCabSBl14dw1b18HyhXC4SvFG5DEUdILIFaeGSMeUmRclT8WBEEOKNY0Z3KoHYqcZ1aM/o+UMAPl7boRFdP2VCD0TT5sj0ff6hGP1mVS1pbe57h6S9UlmTU+6WKRtKm7jseM6emjfqUwYf6MGooWbK3oo5hzGM4R1iPqlgFXQqeE/GUdMD5G9AIMNdW9k8E+6jP2cupc9uUKNuK4Umu8ooJNTdHScfsJ4lxbLvh5o/OULf1jCottSg2GhjeeMauWHbJRxRAGNekz8/HRtZSRChPqIoO2LVea/yGXdCJ8hmKQhVjTkmV0U0jSs+iP5Etbs4Dr9MQCplwJaVq4PZYFPFNmAUf9ZnVc/9NZw9ZwdTVV5ALz7c1/L911qqkrFTgtTOimXKZXPu8QUwkrfGp8nTD0eWDNwqd4luRVq7wTzWfj2toAC7OGC55Qs9pAIYF3qM2x5S65Y5Gajuyu5+jaLXU5e00FI3NZ+tTQd0tj5uYo4ZVljXxWRGVDv+cD1RZdT4koeq0t2s2Z40qdUvsEz/J0T2U39VRlSOKPxm4nzGRbSgzb8NN7KahTCnP0UPSyuJBQ0fFCi3dx0dOnZ8dXIoWGGGij3/qPcw8xYuPZwxo/NUvZpc+MnLKPP+p19i3IQJT7cBhcyfe7AsUnhx8dfbAeKrGgENtt+KHXjKefs5lJEmaMH8g/WqpF9OofPefKSPDG92Ue9L02RNjVCqBGhGrXVVLNngh1LMPHbbiWSxfkKoKs8+SWrsIP3vid3HJ8Wn9r5CkGcVou6unrM68mFy2suYtS1NixZSLvJj9V0lP7DN7B073DhUntuIi/o2J4a+7qrZw16i0Y9HwNEiwYvAqjFWjtwmhHtqfWfzqxWr9WaKdWK5BYUdE3iLPg69BCq5c8NquJ41mN5gMFgY53ySDQ0Yskl+XLvjJhsXL0IoHbgS9t58iE9SC/2TJVVviM2corbf0qwus0AtdBoAV8uyBQw1c+wNmd8OfQHZ0/7nGvI+5pb3qdr4hsnAbrtcCrCerdzuIDim5lJfV5QvpzVHyE0IqG7ndhQti6s4P09JFCALUO1PN3kuZZ7f97t8rPKFIJ3W/IXqWzcV1h3MdZ4LE1F/XLi//O7sJ3+h/aXthtEq+nA1dDyYW1dEDJvunLG8esbgIOSyZlkWV2G3B88L3KvRZaaiijr9WDtlJo8d2WRWLPVwW5sqCji8SnoE9niGZpTUrHyMd3cSpxu6QSy1NLtnYr/1LDJuru1kJyt1GenqlOs/VB2WrQLaD/PnJM5xu9xnR6zfN2PoebzFVnG2uyCWW/toEZMcGEDGdIt4uWO21qdHDUpps6nTTeiKND4gzqHPe5LcWp2yVZbK6rbpNT6S7bNTeLQraJ6j+4ca7brXLq58Vetya5Oj0+ZnvjDLKis2DMUmqR8b/DgMXP8BiDgzvNzmLk6npF1z2fgulp+cNCubssf57Jvv8H&lt;/diagram&gt;&lt;/mxfile&gt;"> + <defs/> + <g> + <path d="M 119 721 L 119 761 L 7 761 L 7 181 L 62.63 181" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/> + <path d="M 67.88 181 L 60.88 184.5 L 62.63 181 L 60.88 177.5 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/> + <path d="M 119 231 L 119 344.63" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/> + <path d="M 119 349.88 L 115.5 342.88 L 119 344.63 L 122.5 342.88 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 252px; margin-left: 120px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; background-color: #ffffff; white-space: nowrap; "> + Yes + </div> + </div> + </div> + </foreignObject> + <text x="120" y="255" fill="#000000" font-family="Helvetica" font-size="11px" text-anchor="middle"> + Yes + </text> + </switch> + </g> + <path d="M 169 181 L 230.63 181" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/> + <path d="M 235.88 181 L 228.88 184.5 L 230.63 181 L 228.88 177.5 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 182px; margin-left: 198px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; background-color: #ffffff; white-space: nowrap; "> + No, it’s + <br/> + fine + </div> + </div> + </div> + </foreignObject> + <text x="198" y="185" fill="#000000" font-family="Helvetica" font-size="11px" text-anchor="middle"> + No, it’s... + </text> + </switch> + </g> + <path d="M 119 131 L 169 181 L 119 231 L 69 181 Z" fill="#ffffff" stroke="#000000" stroke-width="2" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 181px; margin-left: 70px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; "> + Want to + <br/> + modify or + <br/> + rebase? + </div> + </div> + </div> + </foreignObject> + <text x="119" y="185" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle"> + Want to... + </text> + </switch> + </g> + <path d="M 119 411 L 119 634.63" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/> + <path d="M 119 639.88 L 115.5 632.88 L 119 634.63 L 122.5 632.88 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/> + <path d="M 119 411 L 74.5 411 Q 69 411 69 405.5 L 69 382.5 Q 69 377 74.32 375.62 L 163.68 352.38 Q 169 351 169 356.5 L 169 405.5 Q 169 411 163.5 411 Z" fill="#ffffff" stroke="#000000" stroke-width="2" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 387px; margin-left: 70px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 12px; font-family: system-ui-monospace,ui-monospace,Lucida Console,Menlo,monospace; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; "> + <p style="line-height: 120%"> + brew pr-pull + </p> + </div> + </div> + </div> + </foreignObject> + <text x="119" y="391" fill="#000000" font-family="system-ui-monospace,ui-monospace,Lucida Console,Menlo,monospace" font-size="12px" text-anchor="middle"> + brew pr-pull + </text> + </switch> + </g> + <path d="M 69 701 L 92 641 L 146 641 L 169 701 Z" fill="#ffffff" stroke="#000000" stroke-width="2" stroke-miterlimit="10" transform="translate(0,671)scale(1,-1)translate(0,-671)" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 708px; margin-left: 70px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; "> + Modify and push + </div> + </div> + </div> + </foreignObject> + <text x="119" y="720" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle"> + Modify and push + </text> + </switch> + </g> + <path d="M 119 101 L 119 121 L 119 111 L 119 124.63" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/> + <path d="M 119 129.88 L 115.5 122.88 L 119 124.63 L 122.5 122.88 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/> + <ellipse cx="119" cy="51" rx="50" ry="50" fill="#ffffff" stroke="#000000" stroke-width="2" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 51px; margin-left: 70px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; word-wrap: normal; "> + Pull request on + <br/> + homebrew-core + </div> + </div> + </div> + </foreignObject> + <text x="119" y="55" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle" font-weight="bold"> + Pull request on... + </text> + </switch> + </g> + <path d="M 627 181 L 707 181 L 707 634.63" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/> + <path d="M 707 639.88 L 703.5 632.88 L 707 634.63 L 710.5 632.88 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 172px; margin-left: 658px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; background-color: #ffffff; white-space: nowrap; "> + No, + <br/> + it needs + <br/> + bottles + </div> + </div> + </div> + </foreignObject> + <text x="658" y="175" fill="#000000" font-family="Helvetica" font-size="11px" text-anchor="middle"> + No,... + </text> + </switch> + </g> + <path d="M 577 231 L 577 341 L 577 464.63" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/> + <path d="M 577 469.88 L 573.5 462.88 L 577 464.63 L 580.5 462.88 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 252px; margin-left: 578px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; background-color: #ffffff; white-space: nowrap; "> + Yes + </div> + </div> + </div> + </foreignObject> + <text x="578" y="255" fill="#000000" font-family="Helvetica" font-size="11px" text-anchor="middle"> + Yes + </text> + </switch> + </g> + <path d="M 577 131 L 627 181 L 577 231 L 527 181 Z" fill="#ffffff" stroke="#000000" stroke-width="2" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 181px; margin-left: 528px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; "> + Does it + <br/> + say  + <span style="font-family: &quot;system-ui-monospace&quot; , &quot;ui-monospace&quot; , &quot;lucida console&quot; , &quot;menlo&quot; , monospace"> + bottle + <br/> + :unneeded + </span> + <br/> + ? + </div> + </div> + </div> + </foreignObject> + <text x="577" y="185" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle"> + Does it... + </text> + </switch> + </g> + <path d="M 287 431 L 287 614.63" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/> + <path d="M 287 619.88 L 283.5 612.88 L 287 614.63 L 290.5 612.88 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 451px; margin-left: 287px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; background-color: #ffffff; white-space: nowrap; "> + Yes + </div> + </div> + </div> + </foreignObject> + <text x="287" y="454" fill="#000000" font-family="Helvetica" font-size="11px" text-anchor="middle"> + Yes + </text> + </switch> + </g> + <path d="M 337 381 L 420.63 381" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/> + <path d="M 425.88 381 L 418.88 384.5 L 420.63 381 L 418.88 377.5 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 382px; margin-left: 373px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; background-color: #ffffff; white-space: nowrap; "> + No/not yet + <br/> + but I want + <br/> + to override + </div> + </div> + </div> + </foreignObject> + <text x="373" y="385" fill="#000000" font-family="Helvetica" font-size="11px" text-anchor="middle"> + No/not yet... + </text> + </switch> + </g> + <path d="M 287 331 L 337 381 L 287 431 L 237 381 Z" fill="#ffffff" stroke="#000000" stroke-width="2" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 381px; margin-left: 238px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; "> + CI passed? + </div> + </div> + </div> + </foreignObject> + <text x="287" y="385" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle"> + CI passed? + </text> + </switch> + </g> + <path d="M 477 431 L 477 611 L 657 611 L 657 207 L 610.37 207" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/> + <path d="M 605.12 207 L 612.12 203.5 L 610.37 207 L 612.12 210.5 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 452px; margin-left: 478px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; background-color: #ffffff; white-space: nowrap; "> + Yes + </div> + </div> + </div> + </foreignObject> + <text x="478" y="455" fill="#000000" font-family="Helvetica" font-size="11px" text-anchor="middle"> + Yes + </text> + </switch> + </g> + <path d="M 527 381 L 577 381 L 577 464.63" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/> + <path d="M 577 469.88 L 573.5 462.88 L 577 464.63 L 580.5 462.88 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 382px; margin-left: 546px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; background-color: #ffffff; white-space: nowrap; "> + No + </div> + </div> + </div> + </foreignObject> + <text x="546" y="385" fill="#000000" font-family="Helvetica" font-size="11px" text-anchor="middle"> + No + </text> + </switch> + </g> + <path d="M 477 331 L 527 381 L 477 431 L 427 381 Z" fill="#ffffff" stroke="#000000" stroke-width="2" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 381px; margin-left: 428px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; "> + Version or + <br/> + revision + <br/> + bump? + </div> + </div> + </div> + </foreignObject> + <text x="477" y="385" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle"> + Version or... + </text> + </switch> + </g> + <path d="M 337 181 L 520.63 181" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/> + <path d="M 525.88 181 L 518.88 184.5 L 520.63 181 L 518.88 177.5 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 182px; margin-left: 368px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; background-color: #ffffff; white-space: nowrap; "> + No, it’s + <br/> + a new + <br/> + formula + </div> + </div> + </div> + </foreignObject> + <text x="368" y="185" fill="#000000" font-family="Helvetica" font-size="11px" text-anchor="middle"> + No, it’s... + </text> + </switch> + </g> + <path d="M 287 231 L 287 324.63" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/> + <path d="M 287 329.88 L 283.5 322.88 L 287 324.63 L 290.5 322.88 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 252px; margin-left: 288px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; background-color: #ffffff; white-space: nowrap; "> + Yes + </div> + </div> + </div> + </foreignObject> + <text x="288" y="255" fill="#000000" font-family="Helvetica" font-size="11px" text-anchor="middle"> + Yes + </text> + </switch> + </g> + <path d="M 287 131 L 337 181 L 287 231 L 237 181 Z" fill="#ffffff" stroke="#000000" stroke-width="2" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 181px; margin-left: 238px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; "> + Existing + <br/> + formula? + </div> + </div> + </div> + </foreignObject> + <text x="287" y="185" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle"> + Existing... + </text> + </switch> + </g> + <path d="M 287 721 L 287 661 L 287 834.63" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/> + <path d="M 287 839.88 L 283.5 832.88 L 287 834.63 L 290.5 832.88 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 668px; margin-left: 287px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; background-color: #ffffff; white-space: nowrap; "> + Yes + </div> + </div> + </div> + </foreignObject> + <text x="287" y="671" fill="#000000" font-family="Helvetica" font-size="11px" text-anchor="middle"> + Yes + </text> + </switch> + </g> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 742px; margin-left: 288px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; background-color: #ffffff; white-space: nowrap; "> + Yes + </div> + </div> + </div> + </foreignObject> + <text x="288" y="745" fill="#000000" font-family="Helvetica" font-size="11px" text-anchor="middle"> + Yes + </text> + </switch> + </g> + <path d="M 337 671 L 650.63 671" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/> + <path d="M 655.88 671 L 648.88 674.5 L 650.63 671 L 648.88 667.5 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 672px; margin-left: 368px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; background-color: #ffffff; white-space: nowrap; "> + No, it’s + <br/> + urgent + </div> + </div> + </div> + </foreignObject> + <text x="368" y="675" fill="#000000" font-family="Helvetica" font-size="11px" text-anchor="middle"> + No, it’s... + </text> + </switch> + </g> + <path d="M 287 621 L 337 671 L 287 721 L 237 671 Z" fill="#ffffff" stroke="#000000" stroke-width="2" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 671px; margin-left: 238px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; "> + Can it wait? + </div> + </div> + </div> + </foreignObject> + <text x="287" y="675" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle"> + Can it wait? + </text> + </switch> + </g> + <path d="M 237 901 L 260 841 L 314 841 L 337 901 Z" fill="#ffffff" stroke="#000000" stroke-width="2" stroke-miterlimit="10" transform="translate(0,871)scale(1,-1)translate(0,-871)" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 908px; margin-left: 238px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; "> + Accept and wait for test-bot + </div> + </div> + </div> + </foreignObject> + <text x="287" y="920" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle"> + Accept and wait... + </text> + </switch> + </g> + <path d="M 707 701 L 662.5 701 Q 657 701 657 695.5 L 657 672.5 Q 657 667 662.32 665.62 L 751.68 642.38 Q 757 641 757 646.5 L 757 695.5 Q 757 701 751.5 701 Z" fill="#ffffff" stroke="#000000" stroke-width="2" stroke-miterlimit="10" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 677px; margin-left: 658px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 12px; font-family: system-ui-monospace,ui-monospace,Lucida Console,Menlo,monospace; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; "> + <p> + brew + <br/> + pr-publish + </p> + </div> + </div> + </div> + </foreignObject> + <text x="707" y="681" fill="#000000" font-family="system-ui-monospace,ui-monospace,Lucida Console,Menlo,monospace" font-size="12px" text-anchor="middle"> + brew... + </text> + </switch> + </g> + <path d="M 527 531 L 550 471 L 604 471 L 627 531 Z" fill="#ffffff" stroke="#000000" stroke-width="2" stroke-miterlimit="10" transform="translate(0,501)scale(1,-1)translate(0,-501)" pointer-events="all"/> + <g transform="translate(-0.5 -0.5)"> + <switch> + <foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"> + <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 538px; margin-left: 528px;"> + <div style="box-sizing: border-box; font-size: 0; text-align: center; "> + <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; "> + Push the button + </div> + </div> + </div> + </foreignObject> + <text x="577" y="550" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle"> + Push the button + </text> + </switch> + </g> + </g> + <switch> + <g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/> + <a transform="translate(0,-5)" xlink:href="https://desk.draw.io/support/solutions/articles/16000042487" target="_blank"> + <text text-anchor="middle" font-size="10px" x="50%" y="100%"> + Viewer does not support full SVG 1.1 + </text> + </a> + </switch> +</svg> \ No newline at end of file
true
Other
Homebrew
brew
184c80b16df08901689897383e73c8811289cb9a.json
Improve detection of GitLab tag.
Library/Homebrew/dev-cmd/audit.rb
@@ -784,8 +784,14 @@ def audit_specs owner = Regexp.last_match(1) repo = Regexp.last_match(2) + tag = url.match(%r{^https://gitlab\.com/[\w-]+/[\w-]+/-/archive/([^/]+)/}) + .to_a + .second + tag ||= stable.specs[:tag] + tag ||= stable.version + if @online - error = SharedAudits.gitlab_release(owner, repo, stable.version, formula: formula) + error = SharedAudits.gitlab_release(owner, repo, tag, formula: formula) problem error if error end when %r{^https://github.com/([\w-]+)/([\w-]+)}
false
Other
Homebrew
brew
803234d381661d99ff50c4802148b128092f4f6c.json
Ignore URLs protected by CloudFlare when auditing.
Library/Homebrew/utils/curl.rb
@@ -128,6 +128,13 @@ def curl_check_http_content(url, user_agents: [:default], check_content: false, end unless http_status_ok?(details[:status]) + # The URL is protected by CloudFlare. + if details[:status].to_i == 503 && + details[:file].include?("set-cookie: __cfduid=") && + details[:file].include?("server: cloudflare") + return + end + return "The URL #{url} is not reachable (HTTP status code #{details[:status]})" end
false
Other
Homebrew
brew
5cb3b1d428d39d74e30b8b5f81438d4495a1ccb1.json
sorbet: update RBI files using Tapioca. Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml).
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -5483,22 +5483,8 @@ class Cask::Audit def online?(); end def strict?(); end -end - -class Cask::Auditor - def audit_appcast?(); end - - def audit_download?(); end - - def audit_new_cask?(); end - def audit_online?(); end - - def audit_strict?(); end - - def audit_token_conflicts?(); end - - def quarantine?(); end + def token_conflicts?(); end end class Cask::Cask
false
Other
Homebrew
brew
b3c991a6742d3cd662bed687bad5242216509d5e.json
search: use https for fink query url
Library/Homebrew/cmd/search.rb
@@ -13,7 +13,7 @@ module Homebrew PACKAGE_MANAGERS = { macports: ->(query) { "https://www.macports.org/ports.php?by=name&substr=#{query}" }, - fink: ->(query) { "http://pdb.finkproject.org/pdb/browse.php?summary=#{query}" }, + fink: ->(query) { "https://pdb.finkproject.org/pdb/browse.php?summary=#{query}" }, opensuse: ->(query) { "https://software.opensuse.org/search?q=#{query}" }, fedora: ->(query) { "https://apps.fedoraproject.org/packages/s/#{query}" }, debian: lambda { |query|
false
Other
Homebrew
brew
f1bf6c03c3f6585cdcc648ccc387ef933ab9a446.json
Add tests for implications.
Library/Homebrew/cask/audit.rb
@@ -16,7 +16,7 @@ class Audit attr_reader :cask, :download - attr_predicate :appcast?, :new_cask?, :strict?, :online? + attr_predicate :appcast?, :new_cask?, :strict?, :online?, :token_conflicts? def initialize(cask, appcast: nil, download: nil, quarantine: nil, token_conflicts: nil, online: nil, strict: nil, @@ -355,7 +355,7 @@ def check_languages end def check_token_conflicts - return unless @token_conflicts + return unless token_conflicts? return unless core_formula_names.include?(cask.token) add_warning "possible duplicate, cask token conflicts with Homebrew core formula: #{core_formula_url}"
true
Other
Homebrew
brew
f1bf6c03c3f6585cdcc648ccc387ef933ab9a446.json
Add tests for implications.
Library/Homebrew/test/cask/audit_spec.rb
@@ -30,17 +30,52 @@ def include_msg?(messages, msg) end let(:cask) { instance_double(Cask::Cask) } - let(:download) { false } - let(:token_conflicts) { false } - let(:strict) { false } - let(:new_cask) { false } + let(:new_cask) { nil } + let(:online) { nil } + let(:strict) { nil } + let(:token_conflicts) { nil } let(:audit) { - described_class.new(cask, download: download, - token_conflicts: token_conflicts, + described_class.new(cask, online: online, + strict: strict, - new_cask: new_cask) + new_cask: new_cask, + token_conflicts: token_conflicts) } + describe "#new" do + context "when `new_cask` is specified" do + let(:new_cask) { true } + + it "implies `online`" do + expect(audit).to be_online + end + + it "implies `strict`" do + expect(audit).to be_strict + end + end + + context "when `online` is specified" do + let(:online) { true } + + it "implies `appcast`" do + expect(audit.appcast?).to be true + end + + it "implies `download`" do + expect(audit.download).to be_truthy + end + end + + context "when `strict` is specified" do + let(:strict) { true } + + it "implies `token_conflicts`" do + expect(audit.token_conflicts?).to be true + end + end + end + describe "#result" do subject { audit.result }
true
Other
Homebrew
brew
bfea8621d08fabefb48f0808d6ba70d6731c5f74.json
sorbet: update RBI files using Tapioca. Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml).
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -8100,6 +8100,8 @@ module Homebrew::EnvConfig def self.curlrc?(); end + def self.debug?(); end + def self.developer?(); end def self.disable_load_formula?(); end
false
Other
Homebrew
brew
8fb769e60c1ec4aa04582f640e426fd9a4d09c66.json
Ignore `FormulaUnreadableError` in `Formula.each`.
Library/Homebrew/formula.rb
@@ -1460,14 +1460,12 @@ def self.full_names # @private def self.each files.each do |file| - yield begin - Formulary.factory(file) - rescue FormulaUnavailableError => e - # Don't let one broken formula break commands. But do complain. - onoe "Failed to import: #{file}" - puts e - next - end + yield Formulary.factory(file) + rescue FormulaUnavailableError, FormulaUnreadableError => e + # Don't let one broken formula break commands. But do complain. + onoe "Failed to import: #{file}" + $stderr.puts e + next end end
true
Other
Homebrew
brew
8fb769e60c1ec4aa04582f640e426fd9a4d09c66.json
Ignore `FormulaUnreadableError` in `Formula.each`.
Library/Homebrew/formulary.rb
@@ -42,7 +42,7 @@ def self.load_formula(name, path, contents, namespace, flags:) # access them from within the formula's class scope. mod.const_set(:BUILD_FLAGS, flags) mod.module_eval(contents, path) - rescue NameError, ArgumentError, ScriptError => e + rescue NameError, ArgumentError, ScriptError, MethodDeprecatedError => e $stderr.puts e.backtrace if Homebrew::EnvConfig.developer? raise FormulaUnreadableError.new(name, e) end
true
Other
Homebrew
brew
9ac31942fbf56518dc9bdf84748b3450265a1acb.json
audit: allow pre-releases in cask-versions
Library/Homebrew/cask/audit.rb
@@ -452,6 +452,8 @@ def check_appcast_contains_version end def check_github_prerelease_version + return if cask.tap == "homebrew/cask-versions" + odebug "Auditing GitHub prerelease" user, repo = get_repo_data(%r{https?://github\.com/([^/]+)/([^/]+)/?.*}) if @online return if user.nil? @@ -467,6 +469,8 @@ def check_github_prerelease_version end def check_gitlab_prerelease_version + return if cask.tap == "homebrew/cask-versions" + user, repo = get_repo_data(%r{https?://gitlab\.com/([^/]+)/([^/]+)/?.*}) if @online return if user.nil?
false
Other
Homebrew
brew
d900b8e81fe624da4301d3a18dbfa3e6514d3c21.json
sorbet: update RBI files using Tapioca. Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml).
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -13385,6 +13385,7 @@ class Object HOMEBREW_PULL_API_REGEX = ::T.let(nil, ::T.untyped) HOMEBREW_PULL_OR_COMMIT_URL_REGEX = ::T.let(nil, ::T.untyped) HOMEBREW_REPOSITORY = ::T.let(nil, ::T.untyped) + HOMEBREW_REQUIRED_RUBY_VERSION = ::T.let(nil, ::T.untyped) HOMEBREW_SHIMS_PATH = ::T.let(nil, ::T.untyped) HOMEBREW_TAP_CASK_REGEX = ::T.let(nil, ::T.untyped) HOMEBREW_TAP_DIR_REGEX = ::T.let(nil, ::T.untyped) @@ -13410,6 +13411,8 @@ class Object PATCH_B_SHA256 = ::T.let(nil, ::T.untyped) PATCH_URL_A = ::T.let(nil, ::T.untyped) PATCH_URL_B = ::T.let(nil, ::T.untyped) + REQUIRED_RUBY_X = ::T.let(nil, ::T.untyped) + REQUIRED_RUBY_Y = ::T.let(nil, ::T.untyped) RUBY_BIN = ::T.let(nil, ::T.untyped) RUBY_COPYRIGHT = ::T.let(nil, ::T.untyped) RUBY_DESCRIPTION = ::T.let(nil, ::T.untyped)
false
Other
Homebrew
brew
09d7889ed8f6eee000c523a7ada42b850ec64e04.json
Extract constant IO_DEFAULT_BUFFER_SIZE
Library/Homebrew/utils/popen.rb
@@ -1,6 +1,9 @@ # frozen_string_literal: true module Utils + IO_DEFAULT_BUFFER_SIZE = 4096 + private_constant :IO_DEFAULT_BUFFER_SIZE + def self.popen_read(*args, **options, &block) popen(args, "rb", options, &block) end @@ -18,7 +21,7 @@ def self.popen_write(*args, **options) # Before we yield to the block, capture as much output as we can loop do - output += pipe.read_nonblock(4096) + output += pipe.read_nonblock(IO_DEFAULT_BUFFER_SIZE) rescue IO::WaitReadable, EOFError break end
false
Other
Homebrew
brew
0279dda595248d6e0bc288387619d4784a1b8704.json
add cask pre-release check
Library/Homebrew/cask/audit.rb
@@ -54,8 +54,12 @@ def run! check_latest_with_auto_updates check_stanza_requires_uninstall check_appcast_contains_version - check_github_repository check_gitlab_repository + check_gitlab_repository_archived + check_gitlab_prerelease_version + check_github_repository + check_github_repository_archived + check_github_prerelease_version check_bitbucket_repository self rescue => e @@ -447,7 +451,60 @@ def check_appcast_contains_version " the version number '#{adjusted_version_stanza}':\n#{appcast_contents}" end + def check_github_prerelease_version + odebug "Auditing GitHub prerelease" + user, repo = get_repo_data(%r{https?://github\.com/([^/]+)/([^/]+)/?.*}) if @online + return if user.nil? + + metadata = SharedAudits.github_release_data(user, repo, cask.version) + return if metadata.nil? + + if metadata["prerelease"] + problem "#{cask.version} is a GitHub prerelease" + elsif metadata["draft"] + problem "#{cask.version} is a GitHub draft" + end + end + + def check_gitlab_prerelease_version + user, repo = get_repo_data(%r{https?://gitlab\.com/([^/]+)/([^/]+)/?.*}) if @online + return if user.nil? + + odebug "Auditing GitLab prerelease" + + metadata = SharedAudits.gitlab_release_data(user, repo, cask.version) + return if metadata.nil? + + problem "#{cask.version} is a GitLab prerelease" if Date.parse(metadata["released_at"]) > Date.today + end + + def check_github_repository_archived + user, repo = get_repo_data(%r{https?://github\.com/([^/]+)/([^/]+)/?.*}) if @online + return if user.nil? + + odebug "Auditing GitHub repo archived" + + metadata = SharedAudits.github_repo_data(user, repo) + return if metadata.nil? + + problem "GitHub repo is archived" if metadata["archived"] + end + + def check_gitlab_repository_archived + user, repo = get_repo_data(%r{https?://gitlab\.com/([^/]+)/([^/]+)/?.*}) if @online + return if user.nil? + + odebug "Auditing GitLab repo archived" + + metadata = SharedAudits.gitlab_repo_data(user, repo) + return if metadata.nil? + + problem "GitLab repo is archived" if metadata["archived"] + end + def check_github_repository + return unless @new_cask + user, repo = get_repo_data(%r{https?://github\.com/([^/]+)/([^/]+)/?.*}) return if user.nil? @@ -458,6 +515,8 @@ def check_github_repository end def check_gitlab_repository + return unless @new_cask + user, repo = get_repo_data(%r{https?://gitlab\.com/([^/]+)/([^/]+)/?.*}) return if user.nil? @@ -468,6 +527,8 @@ def check_gitlab_repository end def check_bitbucket_repository + return unless @new_cask + user, repo = get_repo_data(%r{https?://bitbucket\.org/([^/]+)/([^/]+)/?.*}) return if user.nil? @@ -479,7 +540,6 @@ def check_bitbucket_repository def get_repo_data(regex) return unless online? - return unless new_cask? _, user, repo = *regex.match(cask.url.to_s) _, user, repo = *regex.match(cask.homepage) unless user
true
Other
Homebrew
brew
0279dda595248d6e0bc288387619d4784a1b8704.json
add cask pre-release check
Library/Homebrew/dev-cmd/audit.rb
@@ -701,6 +701,8 @@ def get_repo_data(regex) "libepoxy" => "1.5", }.freeze + GITLAB_PRERELEASE_ALLOWLIST = {}.freeze + GITHUB_PRERELEASE_ALLOWLIST = { "cbmc" => "5.12.6", "elm-format" => "0.8.3", @@ -802,6 +804,17 @@ def audit_specs return if stable_url_minor_version.even? problem "#{stable.version} is a development release" + + when %r{https?://gitlab\.com/([\w-]+)/([\w-]+)} + owner = Regexp.last_match(1) + repo = Regexp.last_match(2) + + return unless @online && (release = SharedAudits.gitlab_release_data(owner, repo, stable.version)) + + release_date = Date.parse(release["released_at"]) + if release_date > Date.today && (GITLAB_PRERELEASE_ALLOWLIST[formula.name] != formula.version) + problem "#{stable.version} is a GitLab prerelease" + end when %r{^https://github.com/([\w-]+)/([\w-]+)} owner = Regexp.last_match(1) repo = Regexp.last_match(2) @@ -813,17 +826,12 @@ def audit_specs .second tag ||= formula.stable.specs[:tag] - begin - if @online && (release = GitHub.open_api("#{GitHub::API_URL}/repos/#{owner}/#{repo}/releases/tags/#{tag}")) - if release["prerelease"] && (GITHUB_PRERELEASE_ALLOWLIST[formula.name] != formula.version) - problem "#{tag} is a GitHub prerelease" - elsif release["draft"] - problem "#{tag} is a GitHub draft" - end + if @online && (release = SharedAudits.github_release_data(owner, repo, tag)) + if release["prerelease"] && (GITHUB_PRERELEASE_ALLOWLIST[formula.name] != formula.version) + problem "#{tag} is a GitHub prerelease" + elsif release["draft"] + problem "#{tag} is a GitHub draft" end - rescue GitHub::HTTPNotFoundError - # No-op if we can't find the release. - nil end end end
true
Other
Homebrew
brew
0279dda595248d6e0bc288387619d4784a1b8704.json
add cask pre-release check
Library/Homebrew/utils/shared_audits.rb
@@ -17,6 +17,16 @@ def github_repo_data(user, repo) nil end + def github_release_data(user, repo, tag) + id = "#{user}/#{repo}/#{tag}" + @github_release_data ||= {} + @github_release_data[id] ||= GitHub.open_api("#{GitHub::API_URL}/repos/#{user}/#{repo}/releases/tags/#{tag}") + + @github_release_data[id] + rescue GitHub::HTTPNotFoundError + nil + end + def gitlab_repo_data(user, repo) @gitlab_repo_data ||= {} @gitlab_repo_data["#{user}/#{repo}"] ||= begin @@ -29,6 +39,21 @@ def gitlab_repo_data(user, repo) @gitlab_repo_data["#{user}/#{repo}"] end + def gitlab_release_data(user, repo, tag) + id = "#{user}/#{repo}/#{tag}" + @gitlab_release_data ||= {} + @gitlab_release_data[id] ||= begin + out, _, status= curl_output( + "--request", "GET", "https://gitlab.com/api/v4/projects/#{user}%2F#{repo}/releases/#{tag}" + ) + return unless status.success? + + JSON.parse(out) + end + + @gitlab_release_data[id] + end + def github(user, repo) metadata = github_repo_data(user, repo)
true
Other
Homebrew
brew
3fdab5a24d66330c6fd22b384b8cb4e8b2fde02d.json
Update cask/installer.rb: check dependencies before download
Library/Homebrew/cask/installer.rb
@@ -62,10 +62,10 @@ def fetch odebug "Cask::Installer#fetch" verify_has_sha if require_sha? && !force? + satisfy_dependencies + download verify - - satisfy_dependencies end def stage
false
Other
Homebrew
brew
9d57bfc9ba34c91817b1740432924e4600d33c5c.json
Adjust RuboCop formatter on CI.
Library/Homebrew/style.rb
@@ -118,6 +118,12 @@ def run_rubocop(files, output_type, case output_type when :print args << "--debug" if debug + + if ENV["CI"] + # Don't show the default formatter's progress dots on CI. + args << "--format" << "clang" + end + args << "--color" if Tty.color? system cache_env, "rubocop", *args
false
Other
Homebrew
brew
98248a44a499dc3d55f4ed64eb773f76643bd65e.json
cask/installer: fix reference to opt_linked/optlinked
Library/Homebrew/cask/installer.rb
@@ -332,7 +332,7 @@ def missing_cask_and_formula_dependencies else cask_or_formula.try(:installed?) end - installed && (cask_or_formula.respond_to?(:opt_linked?) ? cask_or_formula.opt_linked? : true) + installed && (cask_or_formula.respond_to?(:optlinked?) ? cask_or_formula.optlinked? : true) end end
false
Other
Homebrew
brew
8ac3cd0e7078055a92e27c0f2e98138e1f2bfab4.json
Add note about vendoring dependencies
docs/Acceptable-Formulae.md
@@ -77,6 +77,11 @@ Clang is the default C/C++ compiler on macOS (and has been for a long time). Sof ### Stuff that requires heavy manual pre/post-install intervention We're a package manager so we want to do things like resolve dependencies and set up applications for our users. If things require too much manual intervention then they aren't useful in a package manager. +## Stuff that requires vendored versions of homebrew formulae +Homebrew formula should avoid having multiple, separate, upstream projects bundled together in a single package to avoid having shipping outdated/insecure versions of software that is already a formula. + +For more info see [Debian](https://www.debian.org/doc/debian-policy/ch-source.html#s-embeddedfiles) and [Fedora's](https://docs.fedoraproject.org/en-US/packaging-guidelines/#bundling) stance on this. + ### Sometimes there are exceptions Even if all criteria are met we may not accept the formula. Documentation tends to lag behind current decision-making. Although some
false
Other
Homebrew
brew
d9135c5a57f38c578cb7c9c7ba8eaab63b6d7651.json
CPU: add ability to check for Rosetta When running within an Intel terminal, `uname -m` and friends return Intel-based values for compatibility. An Intel shell will also prefer to launch Intel slices of programs unless the program is ARM-only. It's an open question how Homebrew should manage running in Intel mode. Should it continue to behave as though the Mac is Intel-based, like it does now? Should it recognize it's ARM-based? Either way, it's useful for us to be able to tell whether the Mac is running under Rosetta or whether it's a real Intel Mac.
Library/Homebrew/extend/os/mac/hardware/cpu.rb
@@ -63,6 +63,14 @@ def universal_archs [arch_64_bit, arch_32_bit].extend ArchitectureListExtension end + # True when running under an Intel-based shell via Rosetta on an + # Apple Silicon Mac. This can be detected via seeing if there's a + # conflict between what `uname` report and the underlying `sysctl` flags, + # since the `sysctl` flags don't change behaviour under Rosetta. + def running_under_rosetta? + intel? && physical_cpu_arm64? + end + def features @features ||= sysctl_n( "machdep.cpu.features", @@ -109,6 +117,12 @@ def sse4_2? private + # Note: this is more reliable than checking uname. + # `sysctl` returns the right answer even when running in Rosetta. + def physical_cpu_arm64? + sysctl_bool("hw.optional.arm64") + end + def sysctl_bool(key) sysctl_int(key) == 1 end
true
Other
Homebrew
brew
d9135c5a57f38c578cb7c9c7ba8eaab63b6d7651.json
CPU: add ability to check for Rosetta When running within an Intel terminal, `uname -m` and friends return Intel-based values for compatibility. An Intel shell will also prefer to launch Intel slices of programs unless the program is ARM-only. It's an open question how Homebrew should manage running in Intel mode. Should it continue to behave as though the Mac is Intel-based, like it does now? Should it recognize it's ARM-based? Either way, it's useful for us to be able to tell whether the Mac is running under Rosetta or whether it's a real Intel Mac.
Library/Homebrew/hardware.rb
@@ -154,6 +154,10 @@ def arch_flag(arch) "-march=#{arch}" end + + def running_under_rosetta? + false + end end end
true
Other
Homebrew
brew
64a533bfdd786556436f80d5fe50d4e33f5e4901.json
Fix useless assignment.
Library/Homebrew/.simplecov
@@ -19,15 +19,15 @@ SimpleCov.start do command_name "#{SimpleCov.command_name} (#{pid})" # be quiet, the parent process will be in charge of output and checking coverage totals - print_error_status = false + SimpleCov.print_error_status = false end if ENV["HOMEBREW_INTEGRATION_TEST"] # This needs a unique name so it won't be ovewritten command_name "#{ENV["HOMEBREW_INTEGRATION_TEST"]} (#{$PROCESS_ID})" # be quiet, the parent process will be in charge of output and checking coverage totals - print_error_status = false + SimpleCov.print_error_status = false at_exit do exit_code = $ERROR_INFO.nil? ? 0 : $ERROR_INFO.status
false
Other
Homebrew
brew
21d57a0c443cd3675bee25fb69a7228539f6b9e6.json
Move RuboCop rules into top-level `.rubocop.yml`.
Library/.rubocop.yml
@@ -2,11 +2,19 @@ require: ./Homebrew/rubocops.rb +inherit_mode: + merge: + - Include + - Exclude + AllCops: TargetRubyVersion: 2.6 DisplayCopNames: false # enable all pending rubocops NewCops: enable + Exclude: + - 'Homebrew/bin/*' + - 'Homebrew/**/vendor/**/*' Cask/Desc: Description: 'Ensure that the desc stanza conforms to various content and style checks.' @@ -44,10 +52,6 @@ FormulaAuditStrict: Layout/HeredocIndentation: Enabled: true -# Not useful in casks and formulae. -Metrics/BlockLength: - Enabled: false - # Keyword arguments don't have the same readability # problems as normal parameters. Metrics/ParameterLists: @@ -94,7 +98,8 @@ Style/HashTransformValues: # Allow for license expressions Style/HashAsLastArrayItem: - Enabled: false + Exclude: + - 'Taps/*/*/{Formula/,}*.rb' # Enabled now LineLength is lowish. Style/IfUnlessModifier: @@ -147,18 +152,21 @@ Performance/CaseWhenSplat: Performance/Caller: Enabled: false -# don't allow cops to be disabled in formulae +# Don't allow cops to be disabled in casks and formulae. Style/DisableCopsWithinSourceCodeDirective: Enabled: true + Include: + - 'Taps/*/*/{Formula/,Casks/,}*.rb' # make our hashes consistent Layout/HashAlignment: EnforcedHashRocketStyle: table EnforcedColonStyle: table -# `system` is a special case and aligns on second argument +# `system` is a special case and aligns on second argument, so allow this for formulae. Layout/ArgumentAlignment: - Enabled: false + Exclude: + - 'Taps/*/*/{Formula/,}*.rb' # this is a bit less "floaty" Layout/CaseIndentation: @@ -183,25 +191,62 @@ Lint/AmbiguousBlockAssociation: # so many of these in formulae and can't be autocorrected # TODO: fix these as `ruby -w` complains about them. Lint/AmbiguousRegexpLiteral: - Enabled: false + Exclude: + - 'Taps/*/*/{Formula/,}*.rb' # so many of these in formulae and can't be autocorrected Lint/ParenthesesAsGroupedExpression: - Enabled: false + Exclude: + - 'Taps/*/*/{Formula/,}*.rb' -# most metrics don't make sense to apply for formulae/taps +# Most metrics don't make sense to apply for casks/formulae/taps. Metrics/AbcSize: - Enabled: false + Exclude: + - 'Taps/**/*' +Metrics/BlockLength: + Exclude: + - 'Taps/**/*' Metrics/ClassLength: - Enabled: false + Exclude: + - 'Taps/**/*' Metrics/CyclomaticComplexity: - Enabled: false + Exclude: + - 'Taps/**/*' Metrics/MethodLength: - Enabled: false + Exclude: + - 'Taps/**/*' Metrics/ModuleLength: - Enabled: false + Exclude: + - 'Taps/**/*' Metrics/PerceivedComplexity: - Enabled: false + Exclude: + - 'Taps/**/*' + +# allow those that are standard +# TODO: try to remove some of these +Naming/MethodParameterName: + AllowedNames: + - '_' + - 'a' + - 'b' + - 'cc' + - 'c1' + - 'c2' + - 'd' + - 'e' + - 'f' + - 'ff' + - 'fn' + - 'id' + - 'io' + - 'o' + - 'p' + - 'pr' + - 'r' + - 'rb' + - 's' + - 'to' + - 'v' # GitHub diff UI wraps beyond 118 characters Layout/LineLength: @@ -214,18 +259,46 @@ Layout/LineLength: ' "~/Library/Application Support/', '"~/Library/Caches/', '"~/Application Support', ' was verified as official when first introduced to the cask'] +# Avoid false positives on modifiers used on symbols of methods +# See https://github.com/rubocop-hq/rubocop/issues/5953 +Style/AccessModifierDeclarations: + Enabled: false + +# don't group nicely documented or private attr_readers +Style/AccessorGrouping: + Exclude: + - 'Homebrew/formula.rb' + - 'Homebrew/formulary.rb' + - 'Homebrew/migrator.rb' + - 'Homebrew/resource.rb' + - 'Homebrew/system_command.rb' + - 'Homebrew/tap.rb' + +# make rspec formatting more flexible +Style/BlockDelimiters: + Exclude: + - 'Homebrew/**/*_spec.rb' + - 'Homebrew/**/shared_examples/**/*.rb' + # TODO: remove this when possible. Style/ClassVars: Exclude: - '**/developer/bin/*' # Don't enforce documentation in casks or formulae. Style/Documentation: - Enabled: false + Exclude: + - 'Taps/**/*' + +Style/DocumentationMethod: + Include: + - 'Homebrew/formula.rb' # Not used for casks and formulae. Style/FrozenStringLiteralComment: - Enabled: false + EnforcedStyle: always + Exclude: + - 'Taps/*/*/{Formula/,Casks/,}*.rb' # TODO: remove this when possible. Style/GlobalVars: @@ -234,15 +307,17 @@ Style/GlobalVars: # potential for errors in formulae too high with this Style/GuardClause: - Enabled: false + Exclude: + - 'Taps/*/*/{Formula/,Casks/,}*.rb' # avoid hash rockets where possible Style/HashSyntax: EnforcedStyle: ruby19 # so many of these in formulae and can't be autocorrected Style/StringConcatenation: - Enabled: false + Exclude: + - 'Taps/*/*/{Formula/,Casks/,}*.rb' # ruby style guide favorite Style/StringLiterals:
true
Other
Homebrew
brew
21d57a0c443cd3675bee25fb69a7228539f6b9e6.json
Move RuboCop rules into top-level `.rubocop.yml`.
Library/.rubocop_cask.yml
@@ -1,4 +1,4 @@ # TODO: This file can be deleted once https://github.com/Homebrew/brew/pull/8542 # is in a stable release and `rubocop.yml` has been removed from all cask taps. -inherit_from: ./Homebrew/.rubocop.yml +inherit_from: ./.rubocop.yml
true
Other
Homebrew
brew
21d57a0c443cd3675bee25fb69a7228539f6b9e6.json
Move RuboCop rules into top-level `.rubocop.yml`.
Library/Homebrew/.rubocop.yml
@@ -2,27 +2,11 @@ inherit_from: - ../.rubocop_rspec.yml - .rubocop_todo.yml -AllCops: - Include: - - '**/*.rb' - - 'Library/Homebrew/.simplecov' - Exclude: - - 'bin/*' - - '**/vendor/**/*' - -# messes up system formatting for formulae but good for Homebrew/brew -Layout/ArgumentAlignment: - Enabled: true - # make rspec formatting more flexible Layout/MultilineMethodCallIndentation: Exclude: - '**/*_spec.rb' -# so many of these in formulae but none in here -Lint/AmbiguousRegexpLiteral: - Enabled: true - # TODO: add parentheses for these and remove Lint/AssignmentInCondition: Enabled: false @@ -32,123 +16,39 @@ Lint/NestedMethodDefinition: Exclude: - 'test/**/*' -# so many of these in formulae but none in here -Lint/ParenthesesAsGroupedExpression: - Enabled: true - -# TODO: try to bring down all metrics maximums +# TODO: Try to bring down all metrics maximums. Metrics/AbcSize: - Enabled: true Max: 250 Metrics/BlockLength: - Enabled: true Max: 100 Exclude: - 'test/**/*' Metrics/BlockNesting: - Enabled: true Max: 5 Metrics/ClassLength: - Enabled: true Max: 800 Exclude: - 'formula.rb' - 'formula_installer.rb' Metrics/CyclomaticComplexity: - Enabled: true Max: 80 +Metrics/PerceivedComplexity: + Max: 90 Metrics/MethodLength: - Enabled: true Max: 260 Metrics/ModuleLength: - Enabled: true Max: 600 Exclude: - 'test/**/*' -Metrics/PerceivedComplexity: - Enabled: true - Max: 90 -# we won't change backward compatible predicate names Naming/PredicateName: - Exclude: - - 'compat/**/*' - # can't rename these + # Can't rename these. AllowedMethods: is_32_bit?, is_64_bit? -# allow those that are standard -# TODO: try to remove some of these -Naming/MethodParameterName: - AllowedNames: - - '_' - - 'a' - - 'b' - - 'cc' - - 'c1' - - 'c2' - - 'd' - - 'e' - - 'f' - - 'ff' - - 'fn' - - 'id' - - 'io' - - 'o' - - 'p' - - 'pr' - - 'r' - - 'rb' - - 's' - - 'to' - - 'v' - -# Avoid false positives on modifiers used on symbols of methods -# See https://github.com/rubocop-hq/rubocop/issues/5953 -Style/AccessModifierDeclarations: - Enabled: false - -# don't group nicely documented or private attr_readers -Style/AccessorGrouping: - Exclude: - - 'formula.rb' - - 'formulary.rb' - - 'migrator.rb' - - 'resource.rb' - - 'system_command.rb' - - 'tap.rb' - -# make rspec formatting more flexible -Style/BlockDelimiters: - Exclude: - - '**/*_spec.rb' - - '**/shared_examples/**/*.rb' - -# document our public APIs -Style/Documentation: - Enabled: true - -Style/DocumentationMethod: - Enabled: true - Include: - - 'formula.rb' - -# don't want this for formulae but re-enabled for Library/Homebrew Style/FrozenStringLiteralComment: - Enabled: true - EnforcedStyle: always Exclude: - - '**/Casks/**/*.rb' - -# so many of these in formulae but none in here -Style/GuardClause: - Enabled: true - -# so many of these in formulae but none in here -Style/StringConcatenation: - Enabled: true + - '**/Casks/**/*.rb' -# don't want this for formulae but re-enabled for Library/Homebrew Style/HashAsLastArrayItem: - Enabled: true Exclude: - 'test/utils/spdx_spec.rb'
true
Other
Homebrew
brew
2b029b2744c1a008b17c588313963051a291f13c.json
Remove need for separate `.rubocop_cask.yml`.
Library/.rubocop.yml
@@ -8,6 +8,30 @@ AllCops: # enable all pending rubocops NewCops: enable +Cask/Desc: + Description: 'Ensure that the desc stanza conforms to various content and style checks.' + Enabled: true + +Cask/HomepageMatchesUrl: + Description: 'Ensure that the homepage and url match, otherwise add a comment. More info at https://github.com/Homebrew/homebrew-cask/blob/HEAD/doc/cask_language_reference/stanzas/url.md#when-url-and-homepage-hostnames-differ-add-a-comment' + Enabled: true + +Cask/HomepageUrlTrailingSlash: + Description: 'Ensure that the homepage url has a slash after the domain name.' + Enabled: true + +Cask/NoDslVersion: + Description: 'Do not use the deprecated DSL version syntax in your cask header.' + Enabled: true + +Cask/StanzaGrouping: + Description: 'Ensure that cask stanzas are grouped correctly. More info at https://github.com/Homebrew/homebrew-cask/blob/HEAD/doc/cask_language_reference/readme.md#stanza-order' + Enabled: true + +Cask/StanzaOrder: + Description: 'Ensure that cask stanzas are sorted correctly. More info at https://github.com/Homebrew/homebrew-cask/blob/HEAD/doc/cask_language_reference/readme.md#stanza-order' + Enabled: true + # enable all formulae audits FormulaAudit: Enabled: true @@ -195,11 +219,11 @@ Style/ClassVars: Exclude: - '**/developer/bin/*' -# most of our APIs are internal so don't require docs +# Don't enforce documentation in casks or formulae. Style/Documentation: Enabled: false -# don't want this for formulae but re-enabled for Library/Homebrew +# Not used for casks and formulae. Style/FrozenStringLiteralComment: Enabled: false
true
Other
Homebrew
brew
2b029b2744c1a008b17c588313963051a291f13c.json
Remove need for separate `.rubocop_cask.yml`.
Library/.rubocop_cask.yml
@@ -1,35 +1,4 @@ -inherit_from: ./Homebrew/.rubocop.yml - -Cask/Desc: - Description: 'Ensure that the desc stanza conforms to various content and style checks.' - Enabled: true - -Cask/HomepageMatchesUrl: - Description: 'Ensure that the homepage and url match, otherwise add a comment. More info at https://github.com/Homebrew/homebrew-cask/blob/HEAD/doc/cask_language_reference/stanzas/url.md#when-url-and-homepage-hostnames-differ-add-a-comment' - Enabled: true - -Cask/HomepageUrlTrailingSlash: - Description: 'Ensure that the homepage url has a slash after the domain name.' - Enabled: true - -Cask/NoDslVersion: - Description: 'Do not use the deprecated DSL version syntax in your cask header.' - Enabled: true +# TODO: This file can be deleted once https://github.com/Homebrew/brew/pull/8542 +# is in a stable release and `rubocop.yml` has been removed from all cask taps. -Cask/StanzaGrouping: - Description: 'Ensure that cask stanzas are grouped correctly. More info at https://github.com/Homebrew/homebrew-cask/blob/HEAD/doc/cask_language_reference/readme.md#stanza-order' - Enabled: true - -Cask/StanzaOrder: - Description: 'Ensure that cask stanzas are sorted correctly. More info at https://github.com/Homebrew/homebrew-cask/blob/HEAD/doc/cask_language_reference/readme.md#stanza-order' - Enabled: true - -# don't want these for casks but re-enabled for Library/Homebrew -Style/FrozenStringLiteralComment: - Enabled: false - -Style/Documentation: - Enabled: false - -Metrics/BlockLength: - Enabled: false +inherit_from: ./Homebrew/.rubocop.yml
true
Other
Homebrew
brew
2b029b2744c1a008b17c588313963051a291f13c.json
Remove need for separate `.rubocop_cask.yml`.
Library/Homebrew/cask/cmd/style.rb
@@ -27,7 +27,7 @@ def self.rubocop(*paths, auto_correct: false, debug: false, json: false) args = [ "--force-exclusion", - "--config", "#{HOMEBREW_LIBRARY}/.rubocop_cask.yml" + "--config", HOMEBREW_LIBRARY/".rubocop.yml" ] if json
true
Other
Homebrew
brew
2bac0d802a1ec456b77be7c5cc5a8a6e6cce4fff.json
sorbet: update RBI files using Tapioca. Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml).
Library/Homebrew/sorbet/files.yaml
@@ -635,7 +635,7 @@ false: - ./test/rubocops/components_redundancy_spec.rb - ./test/rubocops/conflicts_spec.rb - ./test/rubocops/dependency_order_spec.rb - - ./test/rubocops/deprecate_disable_spec.rb + - ./test/rubocops/deprecate_spec.rb - ./test/rubocops/formula_desc_spec.rb - ./test/rubocops/homepage_spec.rb - ./test/rubocops/lines_spec.rb @@ -895,7 +895,7 @@ true: - ./rubocops/cask/constants/stanza.rb - ./rubocops/cask/desc.rb - ./rubocops/cask/extend/string.rb - - ./rubocops/deprecate_disable.rb + - ./rubocops/deprecate.rb - ./tap_constants.rb - ./test/support/helper/fixtures.rb - ./test/support/lib/config.rb
true
Other
Homebrew
brew
2bac0d802a1ec456b77be7c5cc5a8a6e6cce4fff.json
sorbet: update RBI files using Tapioca. Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml).
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -8140,6 +8140,8 @@ module Homebrew::EnvConfig def self.install_badge(); end + def self.livecheck_watchlist(); end + def self.logs(); end def self.no_analytics?(); end @@ -20275,6 +20277,10 @@ class RuboCop::Cop::FormulaAudit::DependencyOrder def uses_from_macos_node?(node=T.unsafe(nil)); end end +class RuboCop::Cop::FormulaAudit::DeprecateDate + def deprecate_date(node0); end +end + class RuboCop::Cop::FormulaAudit::Miscellaneous def conditional_dependencies(node0); end
true
Other
Homebrew
brew
e7cf1f4497431ed80dfefb3cb2c8082c66365b20.json
fix deprecate! and disable! message
Library/Homebrew/formula_installer.rb
@@ -218,7 +218,7 @@ def check_install_sanity reason = if deprecate_disable_reasons.key? formula.deprecation_reason deprecate_disable_reasons[formula.deprecation_reason] else - deprecate_disable_reasons + formula.deprecation_reason end opoo "#{formula.full_name} has been deprecated because it #{reason}!" @@ -230,7 +230,7 @@ def check_install_sanity reason = if deprecate_disable_reasons.key? formula.disable_reason deprecate_disable_reasons[formula.disable_reason] else - deprecate_disable_reasons + formula.disable_reason end odie "#{formula.full_name} has been disabled because it #{reason}!"
false
Other
Homebrew
brew
4d0a1ff775baa02f66d61ce949d6fe32d776f2be.json
deprecate!, disable!: allow symbols for reason
Library/Homebrew/formula.rb
@@ -1151,7 +1151,7 @@ def link_overwrite?(path) # The reason this {Formula} is deprecated. # Returns `nil` if no reason is specified or the formula is not deprecated. # @method deprecation_reason - # @return [String] + # @return [String, Symbol] delegate deprecation_reason: :"self.class" # Whether this {Formula} is disabled (i.e. cannot be installed). @@ -1163,7 +1163,7 @@ def link_overwrite?(path) # The reason this {Formula} is disabled. # Returns `nil` if no reason is specified or the formula is not disabled. # @method disable_reason - # @return [String] + # @return [String, Symbol] delegate disable_reason: :"self.class" def skip_cxxstdlib_check? @@ -2778,7 +2778,8 @@ def pour_bottle?(&block) # Deprecates a {Formula} (on a given date, if provided) so a warning is # shown on each installation. If the date has not yet passed the formula # will not be deprecated. - # <pre>deprecate! date: "2020-08-27", because: "it is no longer maintained"</pre> + # <pre>deprecate! date: "2020-08-27", because: :unmaintained</pre> + # <pre>deprecate! date: "2020-08-27", because: "it has been replaced by"</pre> def deprecate!(date: nil, because: nil) # TODO: enable for next major/minor release # odeprecated "`deprecate!` without a reason", "`deprecate! because: \"reason\"`" if because.blank? @@ -2798,13 +2799,14 @@ def deprecated? # The reason for deprecation of a {Formula}. # Returns `nil` if no reason was provided or the formula is not deprecated. - # @return [String] + # @return [String, Symbol] attr_reader :deprecation_reason # Disables a {Formula} (on a given date, if provided) so it cannot be # installed. If the date has not yet passed the formula # will be deprecated instead of disabled. - # <pre>disable! date: "2020-08-27", because: "it no longer builds"</pre> + # <pre>disable! date: "2020-08-27", because: :does_not_build</pre> + # <pre>disable! date: "2020-08-27", because: "has been replaced by foo"</pre> def disable!(date: nil, because: nil) # TODO: enable for next major/minor release # odeprecated "`disable!` without a reason", "`disable! because: \"reason\"`" if because.blank? @@ -2828,7 +2830,7 @@ def disabled? # The reason for a {Formula} is disabled. # Returns `nil` if no reason was provided or the formula is not disabled. - # @return [String] + # @return [String, Symbol] attr_reader :disable_reason # @private
true
Other
Homebrew
brew
4d0a1ff775baa02f66d61ce949d6fe32d776f2be.json
deprecate!, disable!: allow symbols for reason
Library/Homebrew/formula_installer.rb
@@ -202,15 +202,38 @@ def verify_deps_exist def check_install_sanity raise FormulaInstallationAlreadyAttemptedError, formula if self.class.attempted.include?(formula) + deprecate_disable_reasons = { + does_not_build: "does not build", + no_license: "has no license", + repo_archived: "has an archived upstream repository", + repo_removed: "has a removed upstream repository", + unmaintained: "is not maintained upstream", + unsupported: "is not supported upstream", + deprecated_upstream: "is deprecated upstream", + versioned_formula: "is a versioned formula", + } + if formula.deprecated? if formula.deprecation_reason.present? - opoo "#{formula.full_name} has been deprecated because #{formula.deprecation_reason}!" + reason = if deprecate_disable_reasons.key? formula.deprecation_reason + deprecate_disable_reasons[formula.deprecation_reason] + else + deprecate_disable_reasons + end + + opoo "#{formula.full_name} has been deprecated because it #{reason}!" else opoo "#{formula.full_name} has been deprecated!" end elsif formula.disabled? if formula.disable_reason.present? - odie "#{formula.full_name} has been disabled because #{formula.disable_reason}!" + reason = if deprecate_disable_reasons.key? formula.disable_reason + deprecate_disable_reasons[formula.disable_reason] + else + deprecate_disable_reasons + end + + odie "#{formula.full_name} has been disabled because it #{reason}!" else odie "#{formula.full_name} has been disabled!" end
true
Other
Homebrew
brew
4d0a1ff775baa02f66d61ce949d6fe32d776f2be.json
deprecate!, disable!: allow symbols for reason
Library/Homebrew/rubocops/deprecate_disable.rb
@@ -46,6 +46,8 @@ def audit_formula(_node, _class_node, _parent_class_node, body_node) reason_found = false reason(node) do |reason_node| reason_found = true + next if reason_node.sym_type? + offending_node(reason_node) reason_string = string_content(reason_node) @@ -77,7 +79,7 @@ def autocorrect(node) end def_node_search :reason, <<~EOS - (pair (sym :because) $str) + (pair (sym :because) ${str sym}) EOS end end
true
Other
Homebrew
brew
4d0a1ff775baa02f66d61ce949d6fe32d776f2be.json
deprecate!, disable!: allow symbols for reason
Library/Homebrew/test/rubocops/deprecate_disable_spec.rb
@@ -211,6 +211,15 @@ class Foo < Formula RUBY end + it "deprecation reason is acceptable as a symbol" do + expect_no_offenses(<<~RUBY) + class Foo < Formula + url 'https://brew.sh/foo-1.0.tgz' + deprecate! because: :does_not_build + end + RUBY + end + it "deprecation reason is acceptable with date" do expect_no_offenses(<<~RUBY) class Foo < Formula @@ -220,6 +229,15 @@ class Foo < Formula RUBY end + it "deprecation reason is acceptable as a symbol with date" do + expect_no_offenses(<<~RUBY) + class Foo < Formula + url 'https://brew.sh/foo-1.0.tgz' + deprecate! date: "2020-08-28", because: :does_not_build + end + RUBY + end + it "deprecation reason is absent" do expect_offense(<<~RUBY) class Foo < Formula @@ -349,6 +367,15 @@ class Foo < Formula RUBY end + it "disable reason is acceptable as a symbol" do + expect_no_offenses(<<~RUBY) + class Foo < Formula + url 'https://brew.sh/foo-1.0.tgz' + disable! because: :does_not_build + end + RUBY + end + it "disable reason is acceptable with date" do expect_no_offenses(<<~RUBY) class Foo < Formula @@ -358,6 +385,15 @@ class Foo < Formula RUBY end + it "disable reason is acceptable as a symbol with date" do + expect_no_offenses(<<~RUBY) + class Foo < Formula + url 'https://brew.sh/foo-1.0.tgz' + disable! date: "2020-08-28", because: :does_not_build + end + RUBY + end + it "disable reason is absent" do expect_offense(<<~RUBY) class Foo < Formula
true
Other
Homebrew
brew
6162799d63aa1853fb9675b68972f108f5aa96a6.json
style: check deprecate! reason
Library/Homebrew/rubocops/deprecate.rb
@@ -32,6 +32,43 @@ def autocorrect(node) (pair (sym :date) $str) EOS end + + # This cop audits deprecate! reason + class DeprecateReason < FormulaCop + def audit_formula(_node, _class_node, _parent_class_node, body_node) + deprecate_node = find_node_method_by_name(body_node, :deprecate!) + + return if deprecate_node.nil? + + deprecate_reason(deprecate_node) do |reason_node| + offending_node(reason_node) + reason_string = string_content(reason_node) + + problem "Do not start the reason with `it`" if reason_string.start_with?("it ") + + problem "Do not end the reason with a punctuation mark" if %w[. ! ?].include?(reason_string[-1]) + + return + end + + problem 'Add a reason for deprecation: `deprecate! because: "..."`' + end + + def autocorrect(node) + return unless node.str_type? + + lambda do |corrector| + reason = string_content(node) + reason = reason[3..] if reason.start_with?("it ") + reason.chop! if %w[. ! ?].include?(reason[-1]) + corrector.replace(node.source_range, "\"#{reason}\"") + end + end + + def_node_search :deprecate_reason, <<~EOS + (pair (sym :because) $str) + EOS + end end end end
true
Other
Homebrew
brew
6162799d63aa1853fb9675b68972f108f5aa96a6.json
style: check deprecate! reason
Library/Homebrew/test/.rubocop_todo.yml
@@ -21,7 +21,7 @@ RSpec/InstanceVariable: - 'utils/git_spec.rb' - 'version_spec.rb' -# Offense count: 75 +# Offense count: 76 RSpec/MultipleDescribes: Exclude: - 'ENV_spec.rb' @@ -93,6 +93,7 @@ RSpec/MultipleDescribes: - 'patch_spec.rb' - 'rubocops/checksum_spec.rb' - 'rubocops/class_spec.rb' + - 'rubocops/deprecate_spec.rb' - 'rubocops/formula_desc_spec.rb' - 'rubocops/lines_spec.rb' - 'rubocops/text_spec.rb'
true
Other
Homebrew
brew
6162799d63aa1853fb9675b68972f108f5aa96a6.json
style: check deprecate! reason
Library/Homebrew/test/rubocops/deprecate_spec.rb
@@ -101,3 +101,145 @@ class Foo < Formula end end end + +describe RuboCop::Cop::FormulaAudit::DeprecateReason do + subject(:cop) { described_class.new } + + context "When auditing formula for deprecate! because:" do + it "deprecation reason is acceptable" do + expect_no_offenses(<<~RUBY) + class Foo < Formula + url 'https://brew.sh/foo-1.0.tgz' + deprecate! because: "is broken" + end + RUBY + end + + it "deprecation reason is acceptable with date" do + expect_no_offenses(<<~RUBY) + class Foo < Formula + url 'https://brew.sh/foo-1.0.tgz' + deprecate! date: "2020-08-28", because: "is broken" + end + RUBY + end + + it "deprecation reason is absent" do + expect_offense(<<~RUBY) + class Foo < Formula + url 'https://brew.sh/foo-1.0.tgz' + deprecate! + ^^^^^^^^^^ Add a reason for deprecation: `deprecate! because: "..."` + end + RUBY + end + + it "deprecation reason is absent with date" do + expect_offense(<<~RUBY) + class Foo < Formula + url 'https://brew.sh/foo-1.0.tgz' + deprecate! date: "2020-08-28" + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Add a reason for deprecation: `deprecate! because: "..."` + end + RUBY + end + + it "deprecation reason starts with `it`" do + expect_offense(<<~RUBY) + class Foo < Formula + url 'https://brew.sh/foo-1.0.tgz' + deprecate! because: "it is broken" + ^^^^^^^^^^^^^^ Do not start the reason with `it` + end + RUBY + end + + it "deprecation reason starts with `it` with date" do + expect_offense(<<~RUBY) + class Foo < Formula + url 'https://brew.sh/foo-1.0.tgz' + deprecate! date: "2020-08-28", because: "it is broken" + ^^^^^^^^^^^^^^ Do not start the reason with `it` + end + RUBY + end + + it "deprecation reason ends with a period" do + expect_offense(<<~RUBY) + class Foo < Formula + url 'https://brew.sh/foo-1.0.tgz' + deprecate! because: "is broken." + ^^^^^^^^^^^^ Do not end the reason with a punctuation mark + end + RUBY + end + + it "deprecation reason ends with an exclamation point" do + expect_offense(<<~RUBY) + class Foo < Formula + url 'https://brew.sh/foo-1.0.tgz' + deprecate! because: "is broken!" + ^^^^^^^^^^^^ Do not end the reason with a punctuation mark + end + RUBY + end + + it "deprecation reason ends with a question mark" do + expect_offense(<<~RUBY) + class Foo < Formula + url 'https://brew.sh/foo-1.0.tgz' + deprecate! because: "is broken?" + ^^^^^^^^^^^^ Do not end the reason with a punctuation mark + end + RUBY + end + + it "deprecation reason ends with a period with date" do + expect_offense(<<~RUBY) + class Foo < Formula + url 'https://brew.sh/foo-1.0.tgz' + deprecate! date: "2020-08-28", because: "is broken." + ^^^^^^^^^^^^ Do not end the reason with a punctuation mark + end + RUBY + end + + it "auto corrects to remove `it`" do + source = <<~RUBY + class Foo < Formula + url 'https://brew.sh/foo-1.0.tgz' + deprecate! because: "it is broken" + end + RUBY + + corrected_source = <<~RUBY + class Foo < Formula + url 'https://brew.sh/foo-1.0.tgz' + deprecate! because: "is broken" + end + RUBY + + new_source = autocorrect_source(source) + expect(new_source).to eq(corrected_source) + end + + it "auto corrects to remove punctuation" do + source = <<~RUBY + class Foo < Formula + url 'https://brew.sh/foo-1.0.tgz' + deprecate! because: "is broken." + end + RUBY + + corrected_source = <<~RUBY + class Foo < Formula + url 'https://brew.sh/foo-1.0.tgz' + deprecate! because: "is broken" + end + RUBY + + new_source = autocorrect_source(source) + expect(new_source).to eq(corrected_source) + end + end +end
true
Other
Homebrew
brew
13f0b4706f96e5e8d34ac21dc1d70494ba8dec7f.json
pypi: add pulumi to the blocklist
Library/Homebrew/utils/pypi.rb
@@ -18,6 +18,7 @@ module PyPI dxpy ipython molecule + pulumi salt xonsh ].freeze
false
Other
Homebrew
brew
246db8a134f162b764c36cd0050c8303a2197615.json
Capture stdout during `popen_write` Fix tests and fulfill intended semantics by having `popen_write` transparently capture standard output.
Library/Homebrew/utils/popen.rb
@@ -12,8 +12,25 @@ def self.safe_popen_read(*args, **options, &block) raise ErrorDuringExecution.new(args, status: $CHILD_STATUS, output: [[:stdout, output]]) end - def self.popen_write(*args, **options, &block) - popen(args, "wb", options, &block) + def self.popen_write(*args, **options) + popen(args, "w+b", options) do |pipe| + output = "" + + # Before we yield to the block, capture as much output as we can + loop do + output += pipe.read_nonblock(4096) + rescue IO::WaitReadable, EOFError + break + end + + yield pipe + pipe.close_write + IO.select([pipe]) + + # Capture the rest of the output + output += pipe.read + output.freeze + end end def self.safe_popen_write(*args, **options, &block)
false
Other
Homebrew
brew
81510165311b8ef4a59cdad02626edec291d915f.json
livecheck: remove test for livecheck_formulae
Library/Homebrew/test/livecheck/livecheck_spec.rb
@@ -145,16 +145,4 @@ .to eq("https://github.com/Homebrew/brew.git") end end - - describe "::livecheck_formulae", :needs_network do - it "checks for the latest versions of the formulae" do - allow(args).to receive(:debug?).and_return(true) - allow(args).to receive(:newer_only?).and_return(false) - - expectation = expect { livecheck.livecheck_formulae([f], args) } - expectation.to output(/Strategy:.*PageMatch/).to_stdout - expectation.to output(/test : 0\.0\.1 ==> (\d+(?:\.\d+)+)/).to_stdout - .and not_to_output.to_stderr - end - end end
false
Other
Homebrew
brew
772032f18a174d2cd5982800ebc0682eb569d0e1.json
Add failing tests for `popen_write` When using `popen_write`, the expectation is to return the standard output of the child process. This expectation is evident in how `safe_popen_write` is written: ``` def self.safe_popen_write(*args, **options, &block) output = popen_write(*args, **options, &block) return output if $CHILD_STATUS.success? raise ErrorDuringExecution.new(args, status: $CHILD_STATUS, output: [[:stdout, output]]) end ``` However, no code has been written to actually *obtain* that output from the child process. The side effects of that are described in issue #8244. [1] [1]: https://github.com/Homebrew/brew/issues/8244 The newly-added tests reveal that `popen_write` only returns the number 4 instead of the expected standard output. For example, given a file `foo` with the content `Foo\n`, one test calls `popen_write` with `cat foo -` and an input of `Bar`. The expected output would be `Foo\nBar\n` but the actual output is the number 4 (which is what Ruby’s `IO#write` method returns).
Library/Homebrew/test/utils/popen_spec.rb
@@ -26,11 +26,49 @@ end describe "::popen_write" do - it "with supports writing to a command's standard input" do + let(:foo) { mktmpdir/"foo" } + + before { foo.write "Foo\n" } + + it "supports writing to a command's standard input" do subject.popen_write("grep", "-q", "success") do |pipe| - pipe.write("success\n") + pipe.write "success\n" + end + expect($CHILD_STATUS).to be_a_success + end + + it "returns the command's standard output before writing" do + child_stdout = subject.popen_write("cat", foo, "-") do |pipe| + pipe.write "Bar\n" + end + expect($CHILD_STATUS).to be_a_success + expect(child_stdout).to eq <<~EOS + Foo + Bar + EOS + end + + it "returns the command's standard output after writing" do + child_stdout = subject.popen_write("cat", "-", foo) do |pipe| + pipe.write "Bar\n" + end + expect($CHILD_STATUS).to be_a_success + expect(child_stdout).to eq <<~EOS + Bar + Foo + EOS + end + + it "supports interleaved writing between two reads" do + child_stdout = subject.popen_write("cat", foo, "-", foo) do |pipe| + pipe.write "Bar\n" end expect($CHILD_STATUS).to be_a_success + expect(child_stdout).to eq <<~EOS + Foo + Bar + Foo + EOS end end end
false
Other
Homebrew
brew
24e7f55a4c046463b3f2b8ae2c0383a67897c20d.json
Create check_broken_dependents method
Library/Homebrew/upgrade.rb
@@ -120,11 +120,8 @@ def upgrade_formula(f, args:) end private_class_method :upgrade_formula - def check_installed_dependents(args:) - installed_formulae = FormulaInstaller.installed.to_a - return if installed_formulae.empty? - - already_broken_dependents = CacheStoreDatabase.use(:linkage) do |db| + def check_broken_dependents(installed_formulae) + CacheStoreDatabase.use(:linkage) do |db| installed_formulae.flat_map(&:runtime_installed_formula_dependents) .uniq .select do |f| @@ -135,6 +132,13 @@ def check_installed_dependents(args:) .broken_library_linkage? end.compact end + end + + def check_installed_dependents(args:) + installed_formulae = FormulaInstaller.installed.to_a + return if installed_formulae.empty? + + already_broken_dependents = check_broken_dependents(installed_formulae) outdated_dependents = installed_formulae.flat_map(&:runtime_installed_formula_dependents) @@ -180,17 +184,7 @@ def check_installed_dependents(args:) # Assess the dependents tree again now we've upgraded. oh1 "Checking for dependents of upgraded formulae..." unless args.dry_run? - broken_dependents = CacheStoreDatabase.use(:linkage) do |db| - installed_formulae.flat_map(&:runtime_installed_formula_dependents) - .uniq - .select do |f| - keg = f.opt_or_installed_prefix_keg - next unless keg - - LinkageChecker.new(keg, cache_db: db) - .broken_library_linkage? - end.compact - end + broken_dependents = check_broken_dependents(installed_formulae) if broken_dependents.blank? if args.dry_run? ohai "No currently broken dependents found!"
false
Other
Homebrew
brew
687c87d74d76b4b7f6264f7508f92f3521327ebb.json
formulary: use formula path when installing bottle
Library/Homebrew/formulary.rb
@@ -175,7 +175,7 @@ def initialize(bottle_name) def get_formula(spec, force_bottle: false, flags: [], **) contents = Utils::Bottles.formula_contents @bottle_filename, name: name formula = begin - Formulary.from_contents(name, @bottle_filename, contents, spec, force_bottle: force_bottle, flags: flags) + Formulary.from_contents(name, path, contents, spec, force_bottle: force_bottle, flags: flags) rescue FormulaUnreadableError => e opoo <<~EOS Unreadable formula in #{@bottle_filename}:
false
Other
Homebrew
brew
d72bdd7efe7cfc37c7feda735bbe0aa87eb5e912.json
docs/Interesting-Taps-and-Forks.md: remove unsupported taps
docs/Interesting-Taps-and-Forks.md
@@ -6,7 +6,7 @@ Homebrew has the capability to add (and remove) multiple taps to your local inst Your taps are Git repositories located at `$(brew --repository)/Library/Taps`. ## Unsupported interesting taps -* [homebrew-ffmpeg/ffmpeg](https://github.com/homebrew-ffmpeg/homebrew-ffmpeg): A tap for FFmpeg with additional options, including nonfree additions. +* [homebrew-ffmpeg/ffmpeg](https://github.com/homebrew-ffmpeg/homebrew-ffmpeg): A tap for FFmpeg with additional options, including nonfree additions. * [denji/nginx](https://github.com/denji/homebrew-nginx): A tap for NGINX modules, intended for its `nginx-full` formula which includes more module options. @@ -16,12 +16,6 @@ Your taps are Git repositories located at `$(brew --repository)/Library/Taps`. * [petere/postgresql](https://github.com/petere/homebrew-postgresql): Allows installing multiple PostgreSQL versions in parallel. -* [titanous/gnuradio](https://github.com/titanous/homebrew-gnuradio): GNU Radio and friends running on macOS. - -* [dunn/emacs](https://github.com/dunn/homebrew-emacs): A tap for Emacs packages. - -* [sidaf/pentest](https://github.com/sidaf/homebrew-pentest): Tools for penetration testing. - * [osrf/simulation](https://github.com/osrf/homebrew-simulation): Tools for robotics simulation. * [brewsci/bio](https://github.com/brewsci/homebrew-bio): Bioinformatics formulae.
false
Other
Homebrew
brew
f2e425f27c62778fec2e5ab9ad7688fa937ecfc2.json
sorbet: update RBI files using Tapioca. Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml).
Library/Homebrew/sorbet/rbi/gems/parallel_tests@3.1.0.rbi
@@ -1,95 +0,0 @@ -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `parallel_tests` gem. -# Please instead update this file by running `tapioca generate --exclude json`. - -# typed: true - -module ParallelTests - class << self - def bundler_enabled?; end - def delta; end - def determine_number_of_processes(count); end - def first_process?; end - def last_process?; end - def now; end - def number_of_running_processes; end - def pid_file_path; end - def pids; end - def stop_all_processes; end - def wait_for_other_processes_to_finish; end - def with_pid_file; end - def with_ruby_binary(command); end - end -end - -class ParallelTests::CLI - def run(argv); end - - private - - def any_test_failed?(test_results); end - def append_test_options(options, argv); end - def detailed_duration(seconds); end - def execute_in_parallel(items, num_processes, options); end - def execute_shell_command_in_parallel(command, num_processes, options); end - def extract_file_paths(argv); end - def extract_test_options(argv); end - def final_fail_message; end - def first_is_1?; end - def handle_interrupt; end - def load_runner(type); end - def lock(lockfile); end - def parse_options!(argv); end - def report_failure_rerun_commmand(test_results, options); end - def report_number_of_tests(groups); end - def report_results(test_results, options); end - def report_time_taken; end - def reprint_output(result, lockfile); end - def run_tests(group, process_number, num_processes, options); end - def run_tests_in_parallel(num_processes, options); end - def simulate_output_for_ci(simulate); end - def use_colors?; end -end - -class ParallelTests::Grouper - class << self - def by_scenarios(tests, num_groups, options = T.unsafe(nil)); end - def by_steps(tests, num_groups, options); end - def in_even_groups_by_size(items, num_groups, options = T.unsafe(nil)); end - - private - - def add_to_group(group, item, size); end - def group_by_features_with_steps(tests, options); end - def group_by_scenarios(tests, options = T.unsafe(nil)); end - def group_features_by_size(items, groups_to_fill); end - def items_to_group(items); end - def largest_first(files); end - def smallest_group(groups); end - end -end - -class ParallelTests::Pids - def initialize(file_path); end - - def add(pid); end - def all; end - def count; end - def delete(pid); end - def file_path; end - def mutex; end - - private - - def clear; end - def pids; end - def read; end - def save; end - def sync; end -end - -ParallelTests::RUBY_BINARY = T.let(T.unsafe(nil), String) - -ParallelTests::VERSION = T.let(T.unsafe(nil), String) - -ParallelTests::Version = T.let(T.unsafe(nil), String)
true
Other
Homebrew
brew
f2e425f27c62778fec2e5ab9ad7688fa937ecfc2.json
sorbet: update RBI files using Tapioca. Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml).
Library/Homebrew/sorbet/rbi/gems/parallel_tests@3.2.0.rbi
@@ -0,0 +1,8 @@ +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `parallel_tests` gem. +# Please instead update this file by running `tapioca sync`. + +# typed: true + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca/blob/master/README.md#manual-gem-requires
true
Other
Homebrew
brew
f2e425f27c62778fec2e5ab9ad7688fa937ecfc2.json
sorbet: update RBI files using Tapioca. Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml).
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -7257,10 +7257,14 @@ class Formula def deprecated_options(*args, &block); end + def deprecation_reason(*args, &block); end + def deps(*args, &block); end def desc(*args, &block); end + def disable_reason(*args, &block); end + def disabled?(*args, &block); end def downloader(*args, &block); end @@ -13372,6 +13376,7 @@ class Object HOMEBREW_LOCKS = ::T.let(nil, ::T.untyped) HOMEBREW_LOGS = ::T.let(nil, ::T.untyped) HOMEBREW_OFFICIAL_REPO_PREFIXES_REGEX = ::T.let(nil, ::T.untyped) + HOMEBREW_PATCHELF_RB_WRITE = ::T.let(nil, ::T.untyped) HOMEBREW_PINNED_KEGS = ::T.let(nil, ::T.untyped) HOMEBREW_PREFIX = ::T.let(nil, ::T.untyped) HOMEBREW_PRODUCT = ::T.let(nil, ::T.untyped) @@ -13624,9 +13629,77 @@ class PATH end module ParallelTests + RUBY_BINARY = ::T.let(nil, ::T.untyped) + VERSION = ::T.let(nil, ::T.untyped) + Version = ::T.let(nil, ::T.untyped) WINDOWS = ::T.let(nil, ::T.untyped) end +class ParallelTests::CLI + def run(argv); end +end + +class ParallelTests::CLI +end + +class ParallelTests::Grouper +end + +class ParallelTests::Grouper + def self.by_scenarios(tests, num_groups, options=T.unsafe(nil)); end + + def self.by_steps(tests, num_groups, options); end + + def self.in_even_groups_by_size(items, num_groups, options=T.unsafe(nil)); end +end + +class ParallelTests::Pids + def add(pid); end + + def all(); end + + def count(); end + + def delete(pid); end + + def file_path(); end + + def initialize(file_path); end + + def mutex(); end +end + +class ParallelTests::Pids +end + +module ParallelTests + def self.bundler_enabled?(); end + + def self.delta(); end + + def self.determine_number_of_processes(count); end + + def self.first_process?(); end + + def self.last_process?(); end + + def self.now(); end + + def self.number_of_running_processes(); end + + def self.pid_file_path(); end + + def self.pids(); end + + def self.stop_all_processes(); end + + def self.wait_for_other_processes_to_finish(); end + + def self.with_pid_file(); end + + def self.with_ruby_binary(command); end +end + module Parlour VERSION = ::T.let(nil, ::T.untyped) end
true
Other
Homebrew
brew
c92c78d1af49ccc676d73605dd7cb80a886a1812.json
metafiles: copy license files with hyphens
Library/Homebrew/metafiles.rb
@@ -22,7 +22,7 @@ def list?(file) def copy?(file) file = file.downcase - return true if LICENSES.include? file.split(".").first + return true if LICENSES.include? file.split(/\.|-/).first ext = File.extname(file) file = File.basename(file, ext) if EXTENSIONS.include?(ext)
false
Other
Homebrew
brew
360968285c71e5c5e99fffadd585ec45415eedcf.json
sorbet: update RBI files using Tapioca. Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml).
Library/Homebrew/sorbet/rbi/gems/colorize@0.8.1.rbi
@@ -0,0 +1,40 @@ +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `colorize` gem. +# Please instead update this file by running `tapioca sync`. + +# typed: true + +module Colorize +end + +module Colorize::ClassMethods + def color_codes; end + def color_matrix(_ = T.unsafe(nil)); end + def color_methods; end + def color_samples; end + def colors; end + def disable_colorization(value = T.unsafe(nil)); end + def disable_colorization=(value); end + def mode_codes; end + def modes; end + def modes_methods; end +end + +module Colorize::InstanceMethods + def colorize(params); end + def colorized?; end + def uncolorize; end + + private + + def background_color(color); end + def color(color); end + def color_from_symbol(match, symbol); end + def colors_from_hash(match, hash); end + def colors_from_params(match, params); end + def defaults_colors(match); end + def mode(mode); end + def require_windows_libs; end + def scan_for_colors; end + def split_colors(match); end +end
true
Other
Homebrew
brew
360968285c71e5c5e99fffadd585ec45415eedcf.json
sorbet: update RBI files using Tapioca. Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml).
Library/Homebrew/sorbet/rbi/gems/elftools@1.1.3.rbi
@@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `elftools` gem. -# Please instead update this file by running `tapioca generate --exclude json`. +# Please instead update this file by running `tapioca sync`. # typed: true @@ -12,7 +12,9 @@ module ELFTools::Constants include(::ELFTools::Constants::DT) include(::ELFTools::Constants::EM) include(::ELFTools::Constants::ET) + include(::ELFTools::Constants::PF) include(::ELFTools::Constants::PT) + include(::ELFTools::Constants::SHN) include(::ELFTools::Constants::SHT) include(::ELFTools::Constants::STB) include(::ELFTools::Constants::STT) @@ -182,6 +184,8 @@ ELFTools::Constants::DT::DT_VERNEED = T.let(T.unsafe(nil), Integer) ELFTools::Constants::DT::DT_VERNEEDNUM = T.let(T.unsafe(nil), Integer) +ELFTools::Constants::DT::DT_VERSYM = T.let(T.unsafe(nil), Integer) + ELFTools::Constants::ELFMAG = T.let(T.unsafe(nil), String) module ELFTools::Constants::EM @@ -288,6 +292,15 @@ ELFTools::Constants::ET::ET_NONE = T.let(T.unsafe(nil), Integer) ELFTools::Constants::ET::ET_REL = T.let(T.unsafe(nil), Integer) +module ELFTools::Constants::PF +end + +ELFTools::Constants::PF::PF_R = T.let(T.unsafe(nil), Integer) + +ELFTools::Constants::PF::PF_W = T.let(T.unsafe(nil), Integer) + +ELFTools::Constants::PF::PF_X = T.let(T.unsafe(nil), Integer) + module ELFTools::Constants::PT end @@ -321,6 +334,13 @@ ELFTools::Constants::PT::PT_SHLIB = T.let(T.unsafe(nil), Integer) ELFTools::Constants::PT::PT_TLS = T.let(T.unsafe(nil), Integer) +module ELFTools::Constants::SHN +end + +ELFTools::Constants::SHN::SHN_LORESERVE = T.let(T.unsafe(nil), Integer) + +ELFTools::Constants::SHN::SHN_UNDEF = T.let(T.unsafe(nil), Integer) + module ELFTools::Constants::SHT end
true
Other
Homebrew
brew
360968285c71e5c5e99fffadd585ec45415eedcf.json
sorbet: update RBI files using Tapioca. Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml).
Library/Homebrew/sorbet/rbi/gems/patchelf@1.3.0.rbi
@@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `patchelf` gem. -# Please instead update this file by running `tapioca generate --exclude json`. +# Please instead update this file by running `tapioca sync`. # typed: true @@ -32,13 +32,17 @@ module PatchELF::Logger private + def debug(msg); end def error(msg); end def info(msg); end + def level=(msg); end def warn(msg); end class << self + def debug(msg); end def error(msg); end def info(msg); end + def level=(msg); end def warn(msg); end end end @@ -92,7 +96,7 @@ class PatchELF::Patcher def rpath=(rpath); end def runpath; end def runpath=(runpath); end - def save(out_file = T.unsafe(nil)); end + def save(out_file = T.unsafe(nil), patchelf_compatible: T.unsafe(nil)); end def soname; end def soname=(name); end def use_rpath!; end
true
Other
Homebrew
brew
360968285c71e5c5e99fffadd585ec45415eedcf.json
sorbet: update RBI files using Tapioca. Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml).
Library/Homebrew/sorbet/rbi/gems/spoom@1.0.4.rbi
@@ -0,0 +1,414 @@ +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `spoom` gem. +# Please instead update this file by running `tapioca sync`. + +# typed: true + +module Spoom +end + +module Spoom::Cli +end + +module Spoom::Cli::Commands +end + +class Spoom::Cli::Commands::Base < ::Thor + def in_sorbet_project!; end + def in_sorbet_project?; end + def say_error(message, status = T.unsafe(nil)); end +end + +class Spoom::Cli::Commands::Config < ::Spoom::Cli::Commands::Base + def files; end + def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end + def show; end +end + +class Spoom::Cli::Commands::LSP < ::Spoom::Cli::Commands::Base + def defs(file, line, col); end + def find(query); end + def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end + def hover(file, line, col); end + def list; end + def lsp_client; end + def refs(file, line, col); end + def run(&block); end + def show; end + def sigs(file, line, col); end + def symbols(file); end + def types(file, line, col); end +end + +class Spoom::Cli::Commands::Run < ::Spoom::Cli::Commands::Base + def colorize_code(code, colors = T.unsafe(nil)); end + def colorize_message(message, colors = T.unsafe(nil)); end + def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end + def metrics; end + def tc; end +end + +class Spoom::Cli::Main < ::Thor + def config(*args); end + def lsp(*args); end + def tc(*args); end + + class << self + def exit_on_failure?; end + end +end + +class Spoom::Cli::SymbolPrinter + def initialize(default_indent, no_color = T.unsafe(nil)); end + + def dedent; end + def indent; end + def no_color; end + def no_color=(_); end + def print(string); end + def printn; end + def printt; end + def seen; end + def seen=(_); end + def visit(object); end + + class << self + def print_list(list, no_color); end + def print_object(object, no_color); end + end +end + +module Spoom::Config +end + +Spoom::Config::SORBET_CONFIG = T.let(T.unsafe(nil), String) + +Spoom::Config::SORBET_GEM_PATH = T.let(T.unsafe(nil), String) + +Spoom::Config::SORBET_PATH = T.let(T.unsafe(nil), String) + +Spoom::Config::WORKSPACE_PATH = T.let(T.unsafe(nil), String) + +class Spoom::Error < ::StandardError +end + +module Spoom::LSP +end + +class Spoom::LSP::Client + def initialize(sorbet_cmd, *sorbet_args); end + + def close; end + def definitions(uri, line, column); end + def document_symbols(uri); end + def hover(uri, line, column); end + def next_id; end + def open(workspace_path); end + def read; end + def read_raw; end + def references(uri, line, column, include_decl = T.unsafe(nil)); end + def send(message); end + def send_raw(json_string); end + def signatures(uri, line, column); end + def symbols(query); end + def type_definitions(uri, line, column); end +end + +class Spoom::LSP::Diagnostic < ::T::Struct + const :range, Spoom::LSP::Range + const :code, Integer + const :message, String + const :informations, Object + + def to_s; end + + class << self + def from_json(json); end + def inherited(s); end + end +end + +class Spoom::LSP::DocumentSymbol < ::T::Struct + const :name, String + const :detail, T.nilable(String) + const :kind, Integer + const :location, T.nilable(Spoom::LSP::Location) + const :range, T.nilable(Spoom::LSP::Range) + const :children, T::Array[Spoom::LSP::DocumentSymbol] + + def accept_printer(printer); end + def kind_string; end + def to_s; end + + class << self + def from_json(json); end + def inherited(s); end + end +end + +Spoom::LSP::DocumentSymbol::SYMBOL_KINDS = T.let(T.unsafe(nil), Hash) + +class Spoom::LSP::Error < ::StandardError +end + +class Spoom::LSP::Error::AlreadyOpen < ::Spoom::LSP::Error +end + +class Spoom::LSP::Error::BadHeaders < ::Spoom::LSP::Error +end + +class Spoom::LSP::Error::Diagnostics < ::Spoom::LSP::Error + def initialize(uri, diagnostics); end + + def diagnostics; end + def uri; end + + class << self + def from_json(json); end + end +end + +class Spoom::LSP::Hover < ::T::Struct + const :contents, String + const :range, T.nilable(T::Range[T.untyped]) + + def accept_printer(printer); end + def to_s; end + + class << self + def from_json(json); end + def inherited(s); end + end +end + +class Spoom::LSP::Location < ::T::Struct + const :uri, String + const :range, Spoom::LSP::Range + + def accept_printer(printer); end + def to_s; end + + class << self + def from_json(json); end + def inherited(s); end + end +end + +class Spoom::LSP::Message + def initialize; end + + def as_json; end + def jsonrpc; end + def to_json(*args); end +end + +class Spoom::LSP::Notification < ::Spoom::LSP::Message + def initialize(method, params); end + + def method; end + def params; end +end + +class Spoom::LSP::Position < ::T::Struct + const :line, Integer + const :char, Integer + + def accept_printer(printer); end + def to_s; end + + class << self + def from_json(json); end + def inherited(s); end + end +end + +class Spoom::LSP::Range < ::T::Struct + const :start, Spoom::LSP::Position + const :end, Spoom::LSP::Position + + def accept_printer(printer); end + def to_s; end + + class << self + def from_json(json); end + def inherited(s); end + end +end + +class Spoom::LSP::Request < ::Spoom::LSP::Message + def initialize(id, method, params); end + + def id; end + def method; end + def params; end +end + +class Spoom::LSP::ResponseError < ::Spoom::LSP::Error + def initialize(code, message, data); end + + def code; end + def data; end + def message; end + + class << self + def from_json(json); end + end +end + +class Spoom::LSP::SignatureHelp < ::T::Struct + const :label, T.nilable(String) + const :doc, Object + const :params, T::Array[T.untyped] + + def accept_printer(printer); end + def to_s; end + + class << self + def from_json(json); end + def inherited(s); end + end +end + +module Spoom::Sorbet + class << self + sig { params(path: String, capture_err: T::Boolean, arg: String).returns([String, T::Boolean]) } + def srb(*arg, path: T.unsafe(nil), capture_err: T.unsafe(nil)); end + sig { params(config: Spoom::Sorbet::Config, path: String).returns(T::Array[String]) } + def srb_files(config, path: T.unsafe(nil)); end + sig { params(path: String, capture_err: T::Boolean, arg: String).returns(T.nilable(Spoom::Sorbet::Metrics)) } + def srb_metrics(*arg, path: T.unsafe(nil), capture_err: T.unsafe(nil)); end + sig { params(path: String, capture_err: T::Boolean, arg: String).returns([String, T::Boolean]) } + def srb_tc(*arg, path: T.unsafe(nil), capture_err: T.unsafe(nil)); end + sig { params(path: String, capture_err: T::Boolean, arg: String).returns(T.nilable(String)) } + def srb_version(*arg, path: T.unsafe(nil), capture_err: T.unsafe(nil)); end + end +end + +class Spoom::Sorbet::Config + sig { void } + def initialize; end + + def allowed_extensions; end + def ignore; end + sig { returns(T::Array[String]) } + def paths; end + + class << self + sig { params(sorbet_config_path: String).returns(Spoom::Sorbet::Config) } + def parse_file(sorbet_config_path); end + sig { params(sorbet_config: String).returns(Spoom::Sorbet::Config) } + def parse_string(sorbet_config); end + + private + + sig { params(line: String).returns(String) } + def parse_option(line); end + end +end + +module Spoom::Sorbet::Errors +end + +class Spoom::Sorbet::Errors::Error + include(::Comparable) + + sig { params(file: T.nilable(String), line: T.nilable(Integer), message: T.nilable(String), code: T.nilable(Integer), more: T::Array[String]).void } + def initialize(file, line, message, code, more = T.unsafe(nil)); end + + sig { params(other: T.untyped).returns(Integer) } + def <=>(other); end + def code; end + sig { returns(T.nilable(String)) } + def file; end + sig { returns(T.nilable(Integer)) } + def line; end + def message; end + sig { returns(T::Array[String]) } + def more; end + sig { returns(String) } + def to_s; end + + class << self + sig { params(line: String).returns(Spoom::Sorbet::Errors::Error) } + def from_error_line(line); end + end +end + +class Spoom::Sorbet::Errors::Parser + sig { void } + def initialize; end + + sig { params(output: String).returns(T::Array[Spoom::Sorbet::Errors::Error]) } + def parse(output); end + + private + + sig { params(line: String).void } + def append_error(line); end + sig { void } + def close_error; end + sig { params(line: String).returns(T.nilable(Integer)) } + def leading_spaces(line); end + sig { params(line: String).void } + def open_error(line); end + + class << self + sig { params(output: String).returns(T::Array[Spoom::Sorbet::Errors::Error]) } + def parse_string(output); end + end +end + +Spoom::Sorbet::Errors::Parser::HEADER = T.let(T.unsafe(nil), Array) + +class Spoom::Sorbet::Metrics < ::T::Struct + const :repo, String + const :sha, String + const :status, String + const :branch, String + const :timestamp, Integer + const :uuid, String + const :metrics, T::Hash[String, T.nilable(Integer)] + + sig { params(key: String).returns(T.nilable(Integer)) } + def [](key); end + sig { returns(T::Hash[String, T.nilable(Integer)]) } + def files_by_strictness; end + sig { returns(Integer) } + def files_count; end + sig { params(out: T.any(IO, StringIO)).void } + def show(out = T.unsafe(nil)); end + sig { returns(String) } + def to_s; end + + private + + sig { params(value: T.nilable(Integer), total: T.nilable(Integer)).returns(String) } + def percent(value, total); end + + class << self + def inherited(s); end + sig { params(path: String, prefix: String).returns(Spoom::Sorbet::Metrics) } + def parse_file(path, prefix = T.unsafe(nil)); end + sig { params(obj: T::Hash[String, T.untyped], prefix: String).returns(Spoom::Sorbet::Metrics) } + def parse_hash(obj, prefix = T.unsafe(nil)); end + sig { params(string: String, prefix: String).returns(Spoom::Sorbet::Metrics) } + def parse_string(string, prefix = T.unsafe(nil)); end + end +end + +Spoom::Sorbet::Metrics::DEFAULT_PREFIX = T.let(T.unsafe(nil), String) + +Spoom::Sorbet::Metrics::SIGILS = T.let(T.unsafe(nil), Array) + +Spoom::VERSION = T.let(T.unsafe(nil), String) + +class String + include(::Comparable) + include(::Colorize::InstanceMethods) + include(::JSON::Ext::Generator::GeneratorMethods::String) + extend(::Colorize::ClassMethods) + extend(::JSON::Ext::Generator::GeneratorMethods::String::Extend) + + def from_uri; end + def to_uri; end +end
true
Other
Homebrew
brew
360968285c71e5c5e99fffadd585ec45415eedcf.json
sorbet: update RBI files using Tapioca. Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml).
Library/Homebrew/sorbet/rbi/gems/tapioca@0.4.4.rbi
@@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `tapioca` gem. -# Please instead update this file by running `tapioca sync --exclude json`. +# Please instead update this file by running `tapioca sync`. # typed: true @@ -104,11 +104,11 @@ class Tapioca::Compilers::RequiresCompiler private - sig { params(config: Tapioca::SorbetConfig).returns(T::Array[String]) } + sig { params(config: Spoom::Sorbet::Config).returns(T::Array[String]) } def collect_files(config); end sig { params(file_path: String).returns(T::Enumerable[String]) } def collect_requires(file_path); end - sig { params(config: Tapioca::SorbetConfig, file: String).returns(T::Boolean) } + sig { params(config: Spoom::Sorbet::Config, file: String).returns(T::Boolean) } def file_ignored_by_sorbet?(config, file); end sig { params(files: T::Enumerable[String], name: String).returns(T::Boolean) } def name_in_project?(files, name); end @@ -225,6 +225,8 @@ class Tapioca::Compilers::SymbolTable::SymbolGenerator def symbol_ignored?(symbol_name); end sig { returns(T::Set[String]) } def symbols; end + sig { params(constant: Module).returns(String) } + def type_of(constant); end sig { params(name: String).returns(T::Boolean) } def valid_method_name?(name); end sig { type_parameters(:U).params(step: Integer, _blk: T.proc.params().returns(T.type_parameter(:U))).returns(T.type_parameter(:U)) } @@ -513,25 +515,4 @@ class Tapioca::Loader def silence_deprecations; end end -class Tapioca::SorbetConfig - sig { void } - def initialize; end - - def ignore; end - sig { returns(T::Array[String]) } - def paths; end - - class << self - sig { params(sorbet_config_path: String).returns(Tapioca::SorbetConfig) } - def parse_file(sorbet_config_path); end - sig { params(sorbet_config: String).returns(Tapioca::SorbetConfig) } - def parse_string(sorbet_config); end - - private - - sig { params(line: String).returns(String) } - def parse_option(line); end - end -end - Tapioca::VERSION = T.let(T.unsafe(nil), String)
true
Other
Homebrew
brew
360968285c71e5c5e99fffadd585ec45415eedcf.json
sorbet: update RBI files using Tapioca. Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml).
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -6480,7 +6480,6 @@ class Date def to_default_s(); end def to_formatted_s(format=T.unsafe(nil)); end - DATE_FORMATS = ::T.let(nil, ::T.untyped) end @@ -6734,7 +6733,6 @@ end class Dir def self.exists?(_); end - end module Docile @@ -6903,7 +6901,6 @@ class ERB def def_method(mod, methodname, fname=T.unsafe(nil)); end def def_module(methodname=T.unsafe(nil)); end - end class ERB::Compiler::Scanner @@ -7106,7 +7103,6 @@ end module Exception2MessageMapper def bind(cl); end - end Exception2MessageMapper::E2MM = Exception2MessageMapper @@ -13571,6 +13567,58 @@ module OpenSSL def self.fips_mode(); end end +class OpenURI::Buffer + def <<(str); end + + def io(); end + + def size(); end + StringMax = ::T.let(nil, ::T.untyped) +end + +class OpenURI::Buffer +end + +class OpenURI::HTTPError + def initialize(message, io); end +end + +class OpenURI::HTTPRedirect + def initialize(message, io, uri); end +end + +module OpenURI::Meta + def content_type_parse(); end + + def meta_add_field(name, value); end + + def meta_add_field2(name, values); end + + def meta_setup_encoding(); end + RE_LWS = ::T.let(nil, ::T.untyped) + RE_PARAMETERS = ::T.let(nil, ::T.untyped) + RE_QUOTED_STRING = ::T.let(nil, ::T.untyped) + RE_TOKEN = ::T.let(nil, ::T.untyped) +end + +module OpenURI::Meta + def self.init(obj, src=T.unsafe(nil)); end +end + +module OpenURI + def self.check_options(options); end + + def self.open_http(buf, target, proxy, options); end + + def self.open_loop(uri, options); end + + def self.open_uri(name, *rest); end + + def self.redirectable?(uri1, uri2); end + + def self.scan_open_optional_arguments(*rest); end +end + class PATH def each(*args, &block); end end @@ -22075,6 +22123,40 @@ class SortedSet def self.setup(); end end +class Spoom::Cli::Main + extend ::T::Sig +end + +class Spoom::Sorbet::Config + extend ::T::Sig + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + +class Spoom::Sorbet::Errors::Error + extend ::T::Sig + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + +class Spoom::Sorbet::Errors::Parser + extend ::T::Sig + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + +class Spoom::Sorbet::Metrics + extend ::T::Sig + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + +module Spoom::Sorbet + extend ::T::Sig + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + module Stdenv def O0(); end @@ -22095,6 +22177,12 @@ class String def black(); end + def blink(); end + + def blue(); end + + def bold(); end + def camelcase(first_letter=T.unsafe(nil)); end def camelize(first_letter=T.unsafe(nil)); end @@ -22105,6 +22193,8 @@ class String def constantize(); end + def cyan(); end + def dasherize(); end def deconstantize(); end @@ -22123,6 +22213,8 @@ class String def green(); end + def hide(); end + def html_safe(); end def humanize(capitalize: T.unsafe(nil), keep_id_suffix: T.unsafe(nil)); end @@ -22137,12 +22229,64 @@ class String def isutf8(); end + def italic(); end + def kconv(to_enc, from_enc=T.unsafe(nil)); end def last(limit=T.unsafe(nil)); end + def light_black(); end + + def light_blue(); end + + def light_cyan(); end + + def light_green(); end + + def light_magenta(); end + + def light_red(); end + + def light_white(); end + + def light_yellow(); end + + def magenta(); end + def mb_chars(); end + def on_black(); end + + def on_blue(); end + + def on_cyan(); end + + def on_green(); end + + def on_light_black(); end + + def on_light_blue(); end + + def on_light_cyan(); end + + def on_light_green(); end + + def on_light_magenta(); end + + def on_light_red(); end + + def on_light_white(); end + + def on_light_yellow(); end + + def on_magenta(); end + + def on_red(); end + + def on_white(); end + + def on_yellow(); end + def parameterize(separator: T.unsafe(nil), preserve_case: T.unsafe(nil), locale: T.unsafe(nil)); end def pluralize(count=T.unsafe(nil), locale=T.unsafe(nil)); end @@ -22167,6 +22311,8 @@ class String def starts_with?(*_); end + def swap(); end + def tableize(); end def titlecase(keep_id_suffix: T.unsafe(nil)); end @@ -22209,9 +22355,15 @@ class String def truncate_words(words_count, options=T.unsafe(nil)); end + def underline(); end + def underscore(); end def upcase_first(); end + + def white(); end + + def yellow(); end BLANK_RE = ::T.let(nil, ::T.untyped) ENCODED_BLANKS = ::T.let(nil, ::T.untyped) end @@ -23055,12 +23207,6 @@ class Tapioca::Loader extend ::T::Private::Methods::SingletonMethodHooks end -class Tapioca::SorbetConfig - extend ::T::Sig - extend ::T::Private::Methods::MethodHooks - extend ::T::Private::Methods::SingletonMethodHooks -end - class Tempfile def _close(); end @@ -23520,7 +23666,6 @@ class Time def to_default_s(); end def to_formatted_s(format=T.unsafe(nil)); end - COMMON_YEAR_DAYS_IN_MONTH = ::T.let(nil, ::T.untyped) DATE_FORMATS = ::T.let(nil, ::T.untyped) end @@ -23553,7 +23698,6 @@ class Time def self.zone_default(); end def self.zone_default=(zone_default); end - end class TracePoint @@ -23602,6 +23746,10 @@ module URI include ::URI::RFC2396_REGEXP end +class URI::FTP + def buffer_open(buf, proxy, options); end +end + class URI::FTP def self.new2(user, password, host, port, path, typecode=T.unsafe(nil), arg_check=T.unsafe(nil)); end end @@ -23621,6 +23769,10 @@ end class URI::File end +class URI::HTTP + def buffer_open(buf, proxy, options); end +end + class URI::LDAP def attributes(); end
true
Other
Homebrew
brew
f5cd15fa1893d58676a005c54dcaded3cdf61729.json
add odeprecated comments
Library/Homebrew/formula.rb
@@ -2780,6 +2780,9 @@ def pour_bottle?(&block) # will not be deprecated. # <pre>deprecate! date: "2020-08-27", because: "it is no longer maintained"</pre> def deprecate!(date: nil, because: nil) + # TODO: enable for next major/minor release + # odeprecated "`deprecate!` without a reason", "`deprecate! because: \"reason\"`" if because.blank? + return if date.present? && Date.parse(date) > Date.today @deprecation_reason = because if because.present? @@ -2803,6 +2806,9 @@ def deprecated? # will be deprecated instead of disabled. # <pre>disable! date: "2020-08-27", because: "it no longer builds"</pre> def disable!(date: nil, because: nil) + # TODO: enable for next major/minor release + # odeprecated "`disable!` without a reason", "`disable! because: \"reason\"`" if because.blank? + if date.present? && Date.parse(date) > Date.today @deprecation_reason = because if because.present? @deprecated = true
false
Other
Homebrew
brew
669ae5c0771e037454c21f345e47f8384427051a.json
dev-cmd/sh.rb: fix usage banner
Library/Homebrew/dev-cmd/sh.rb
@@ -10,7 +10,7 @@ module Homebrew def sh_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - `sh` [<options>] [<script>] + `sh` [<options>] [<SCRIPT>] Homebrew build environment that uses years-battle-hardened build logic to help your `./configure && make && make install`
true
Other
Homebrew
brew
669ae5c0771e037454c21f345e47f8384427051a.json
dev-cmd/sh.rb: fix usage banner
docs/Manpage.md
@@ -1106,7 +1106,7 @@ Run a Ruby instance with Homebrew's libraries loaded, e.g. * `-e`: Execute the given text string as a script. -### `sh` [*`options`*] [<script>] +### `sh` [*`options`*] [*`SCRIPT`*] Homebrew build environment that uses years-battle-hardened build logic to help your `./configure && make && make install`
true
Other
Homebrew
brew
669ae5c0771e037454c21f345e47f8384427051a.json
dev-cmd/sh.rb: fix usage banner
manpages/brew.1
@@ -1522,5 +1522,851 @@ Load a library using \fBrequire\fR\. \fB\-e\fR Execute the given text string as a script\. . -.SS "\fBsh\fR [\fIoptions\fR] [<script>] <p>Homebrew build environment that uses years\-battle\-hardened build logic to help your \fB\./configure && make && make install\fR and even your \fBgem install\fR succeed\. Especially handy if you run Homebrew in an Xcode\-only configuration since it adds tools like \fBmake\fR to your \fBPATH\fR which build systems would not find otherwise\.</p> <ul> <li>\fB\-\-env\fR: Use the standard \fBPATH\fR instead of superenv\'s when \fBstd\fR is passed\.</li> <li>\fB\-c\fR, \fB\-\-cmd\fR: Execute commands in a non\-interactive shell\.</li> </ul> <h3>\fBsponsors\fR</h3> <p>Print a Markdown summary of Homebrew\'s GitHub Sponsors, suitable for pasting into a README\.</p> <h3>\fBstyle\fR [\fIoptions\fR] [\fIfile\fR|\fItap\fR|\fIformula\fR]</h3> <p>Check formulae or files for conformance to Homebrew style guidelines\.</p> <p>Lists of \fIfile\fR, \fItap\fR and \fIformula\fR may not be combined\. If none are provided, \fBstyle\fR will run style checks on the whole Homebrew library, including core code and all formulae\.</p> <ul> <li>\fB\-\-fix\fR: Fix style violations automatically using RuboCop\'s auto\-correct feature\.</li> <li>\fB\-\-display\-cop\-names\fR: Include the RuboCop cop name for each violation in the output\.</li> <li>\fB\-\-only\-cops\fR: Specify a comma\-separated \fIcops\fR list to check for violations of only the listed RuboCop cops\.</li> <li>\fB\-\-except\-cops\fR: Specify a comma\-separated \fIcops\fR list to skip checking for violations of the listed RuboCop cops\.</li> </ul> <h3>\fBtap\-new\fR \fIuser\fR\fB/\fR\fIrepo\fR</h3> <p>Generate the template files for a new tap\.</p> <h3>\fBtest\fR [\fIoptions\fR] \fIformula\fR</h3> <p>Run the test method provided by an installed formula\. There is no standard output or return code, but generally it should notify the user if something is wrong with the installed formula\.</p> <p><em>Example:</em> \fBbrew install jruby && brew test jruby\fR</p> <ul> <li>\fB\-\-devel\fR: Test the development version of a formula\.</li> <li>\fB\-\-HEAD\fR: Test the head version of a formula\.</li> <li>\fB\-\-keep\-tmp\fR: Retain the temporary files created for the test\.</li> <li>\fB\-\-retry\fR: Retry if a testing fails\.</li> </ul> <h3>\fBtests\fR [\fIoptions\fR]</h3> <p>Run Homebrew\'s unit and integration tests\.</p> <ul> <li>\fB\-\-coverage\fR: Generate code coverage reports\.</li> <li>\fB\-\-generic\fR: Run only OS\-agnostic tests\.</li> <li>\fB\-\-no\-compat\fR: Do not load the compatibility layer when running tests\.</li> <li>\fB\-\-online\fR: Include tests that use the GitHub API and tests that use any of the taps for official external commands\.</li> <li>\fB\-\-byebug\fR: Enable debugging using byebug\.</li> <li>\fB\-\-only\fR: Run only \fItest_script\fR\fB_spec\.rb\fR\. Appending \fB:\fR\fIline_number\fR will start at a specific line\.</li> <li>\fB\-\-seed\fR: Randomise tests with the specified \fIvalue\fR instead of a random seed\.</li> </ul> <h3>\fBtypecheck\fR</h3> <p>Check for typechecking errors using Sorbet\.</p> <ul> <li>\fB\-q\fR, \fB\-\-quiet\fR: Silence all non\-critical errors\.</li> <li>\fB\-\-update\-definitions\fR: Update Tapioca gem definitions of recently bumped gems</li> <li>\fB\-\-fail\-if\-not\-changed\fR: Return a failing status code if all gems are up to date and gem definitions do not need a tapioca update</li> <li>\fB\-\-dir\fR: Typecheck all files in a specific directory\.</li> <li>\fB\-\-file\fR: Typecheck a single file\.</li> <li>\fB\-\-ignore\fR: Ignores input files that contain the given string in their paths (relative to the input path passed to Sorbet)\.</li> </ul> <h3>\fBunpack\fR [\fIoptions\fR] \fIformula\fR</h3> <p>Unpack the source files for \fIformula\fR into subdirectories of the current working directory\.</p> <ul> <li>\fB\-\-destdir\fR: Create subdirectories in the directory named by \fIpath\fR instead\.</li> <li>\fB\-\-patch\fR: Patches for \fIformula\fR will be applied to the unpacked source\.</li> <li>\fB\-g\fR, \fB\-\-git\fR: Initialise a Git repository in the unpacked source\. This is useful for creating patches for the software\.</li> <li>\fB\-f\fR, \fB\-\-force\fR: Overwrite the destination directory if it already exists\.</li> </ul> <h3>\fBupdate\-license\-data\fR [\fIoptions\fR]</h3> <p> Update SPDX license data in the Homebrew repository\.</p> <ul> <li>\fB\-\-fail\-if\-not\-changed\fR: Return a failing status code if current license data\'s version is the same as the upstream\. This can be used to notify CI when the SPDX license data is out of date\.</li> </ul> <h3>\fBupdate\-python\-resources\fR [\fIoptions\fR] \fIformula\fR</h3> <p>Update versions for PyPI resource blocks in \fIformula\fR\.</p> <ul> <li>\fB\-p\fR, \fB\-\-print\-only\fR: Print the updated resource blocks instead of changing \fIformula\fR\.</li> <li>\fB\-s\fR, \fB\-\-silent\fR: Suppress any output\.</li> <li>\fB\-\-ignore\-non\-pypi\-packages\fR: Don\'t fail if \fIformula\fR is not a PyPI package\.</li> <li>\fB\-\-version\fR: Use the specified \fIversion\fR when finding resources for \fIformula\fR\. If no version is specified, the current version for \fIformula\fR will be used\.</li> </ul> <h3>\fBupdate\-test\fR [\fIoptions\fR]</h3> <p>Run a test of \fBbrew update\fR with a new repository clone\. If no options are passed, use \fBorigin/master\fR as the start commit\.</p> <ul> <li>\fB\-\-to\-tag\fR: Set \fBHOMEBREW_UPDATE_TO_TAG\fR to test updating between tags\.</li> <li>\fB\-\-keep\-tmp\fR: Retain the temporary directory containing the new repository clone\.</li> <li>\fB\-\-commit\fR: Use the specified \fIcommit\fR as the start commit\.</li> <li>\fB\-\-before\fR: Use the commit at the specified \fIdate\fR as the start commit\.</li> </ul> <h3>\fBvendor\-gems\fR</h3> <p>Install and commit Homebrew\'s vendored gems\.</p> <h2>GLOBAL OPTIONS</h2> <p>These options are applicable across multiple subcommands\.</p> <ul> <li><p>\fB\-d\fR, \fB\-\-debug\fR: Display any debugging information\.</p></li> <li><p>\fB\-q\fR, \fB\-\-quiet\fR: Suppress any warnings\.</p></li> <li><p>\fB\-v\fR, \fB\-\-verbose\fR: Make some output more verbose\.</p></li> <li><p>\fB\-h\fR, \fB\-\-help\fR: Show this message\.</p></li> </ul> <h2>OFFICIAL EXTERNAL COMMANDS</h2> <h3>\fBbundle\fR [\fIsubcommand\fR]</h3> <p>Bundler for non\-Ruby dependencies from Homebrew, Homebrew Cask, Mac App Store and Whalebrew\.</p> <p>\fBbrew bundle\fR [\fBinstall\fR]: Install and upgrade (by default) all dependencies from the \fBBrewfile\fR\.</p> <p>You can skip the installation of dependencies by adding space\-separated values to one or more of the following environment variables: \fBHOMEBREW_BUNDLE_BREW_SKIP\fR, \fBHOMEBREW_BUNDLE_CASK_SKIP\fR, \fBHOMEBREW_BUNDLE_MAS_SKIP\fR, \fBHOMEBREW_BUNDLE_WHALEBREW_SKIP\fR, \fBHOMEBREW_BUNDLE_TAP_SKIP\fR</p> <p>\fBbrew bundle\fR will output a \fBBrewfile\.lock\.json\fR in the same directory as the \fBBrewfile\fR if all dependencies are installed successfully\. This contains dependency and system status information which can be useful in debugging \fBbrew bundle\fR failures and replicating a \"last known good build\" state\. You can opt\-out of this behaviour by setting the \fBHOMEBREW_BUNDLE_NO_LOCK\fR environment variable or passing the \fB\-\-no\-lock\fR option\. You may wish to check this file into the same version control system as your \fBBrewfile\fR (or ensure your version control system ignores it if you\'d prefer to rely on debugging information from a local machine)\.</p> <p>\fBbrew bundle dump\fR: Write all installed casks/formulae/images/taps into a \fBBrewfile\fR\.</p> <p>\fBbrew bundle cleanup\fR: Uninstall all dependencies not listed from the \fBBrewfile\fR\.</p> <p>This workflow is useful for maintainers or testers who regularly install lots of formulae\.</p> <p>\fBbrew bundle check\fR: Check if all dependencies are installed from the \fBBrewfile\fR \.</p> <p>This provides a successful exit code if everything is up\-to\-date, making it useful for scripting\.</p> <p>\fBbrew bundle list\fR: List all dependencies present in a \fBBrewfile\fR\.</p> <p>By default, only Homebrew dependencies are listed\.</p> <p>\fBbrew bundle exec\fR \fIcommand\fR: Run an external command in an isolated build environment based on the \fBBrewfile\fR dependencies\.</p> <p>This sanitized build environment ignores unrequested dependencies, which makes sure that things you didn\'t specify in your \fBBrewfile\fR won\'t get picked up by commands like \fBbundle install\fR, \fBnpm install\fR, etc\. It will also add compiler flags which will help find keg\-only dependencies like \fBopenssl\fR, \fBicu4c\fR, etc\.</p> <ul> <li>\fB\-\-file\fR: Read the \fBBrewfile\fR from this location\. Use \fB\-\-file=\-\fR to pipe to stdin/stdout\.</li> <li>\fB\-\-global\fR: Read the \fBBrewfile\fR from \fB~/\.Brewfile\fR\.</li> <li>\fB\-v\fR, \fB\-\-verbose\fR: \fBinstall\fR prints output from commands as they are run\. \fBcheck\fR lists all missing dependencies\.</li> <li>\fB\-\-no\-upgrade\fR: \fBinstall\fR won\'t run \fBbrew upgrade\fR on outdated dependencies\. Note they may still be upgraded by \fBbrew install\fR if needed\.</li> <li>\fB\-f\fR, \fB\-\-force\fR: \fBdump\fR overwrites an existing \fBBrewfile\fR\. \fBcleanup\fR actually performs its cleanup operations\.</li> <li>\fB\-\-no\-lock\fR: \fBinstall\fR won\'t output a \fBBrewfile\.lock\.json\fR\.</li> <li>\fB\-\-all\fR: \fBlist\fR all dependencies\.</li> <li>\fB\-\-formula\fR: \fBlist\fR Homebrew dependencies\.</li> <li>\fB\-\-cask\fR: \fBlist\fR Homebrew Cask dependencies\.</li> <li>\fB\-\-tap\fR: \fBlist\fR tap dependencies\.</li> <li>\fB\-\-mas\fR: \fBlist\fR Mac App Store dependencies\.</li> <li>\fB\-\-whalebrew\fR: \fBlist\fR Whalebrew dependencies\.</li> <li>\fB\-\-describe\fR: \fBdump\fR adds a description comment above each line, unless the dependency does not have a description\.</li> <li>\fB\-\-no\-restart\fR: \fBdump\fR does not add \fBrestart_service\fR to formula lines\.</li> <li>\fB\-\-zap\fR: \fBcleanup\fR casks using the \fBzap\fR command instead of \fBuninstall\fR\.</li> </ul> <h3>\fBservices\fR [\fIsubcommand\fR]</h3> <p>Manage background services with macOS\' \fBlaunchctl\fR(1) daemon manager\.</p> <p>If \fBsudo\fR is passed, operate on \fB/Library/LaunchDaemons\fR (started at boot)\. Otherwise, operate on \fB~/Library/LaunchAgents\fR (started at login)\.</p> <p>[\fBsudo\fR] \fBbrew services\fR [\fBlist\fR]: List all managed services for the current user (or root)\.</p> <p>[\fBsudo\fR] \fBbrew services run\fR (\fIformula\fR|\fB\-\-all\fR): Run the service \fIformula\fR without registering to launch at login (or boot)\.</p> <p>[\fBsudo\fR] \fBbrew services start\fR (\fIformula\fR|\fB\-\-all\fR): Start the service \fIformula\fR immediately and register it to launch at login (or boot)\.</p> <p>[\fBsudo\fR] \fBbrew services stop\fR (\fIformula\fR|\fB\-\-all\fR): Stop the service \fIformula\fR immediately and unregister it from launching at login (or boot)\.</p> <p>[\fBsudo\fR] \fBbrew services restart\fR (\fIformula\fR|\fB\-\-all\fR): Stop (if necessary) and start the service \fIformula\fR immediately and register it to launch at login (or boot)\.</p> <p>[\fBsudo\fR] \fBbrew services cleanup\fR: Remove all unused services\.</p> <ul> <li>\fB\-\-all\fR: Run \fIsubcommand\fR on all services\.</li> </ul> <h3>\fBtest\-bot\fR [\fIoptions\fR] [\fIformula\fR]:</h3> <p>Tests the full lifecycle of a Homebrew change to a tap (Git repository)\. For example, for a GitHub Actions pull request that changes a formula \fBbrew test\-bot\fR will ensure the system is cleaned and setup to test the formula, install the formula, run various tests and checks on it, bottle (package) the binaries and test formulae that depend on it to ensure they aren\'t broken by these changes\.</p> <p>Only supports GitHub Actions as a CI provider\. This is because Homebrew uses GitHub Actions and it\'s freely available for public and private use with macOS and Linux workers\.</p> <ul> <li>\fB\-\-dry\-run\fR: print what would be done rather than doing it\.</li> <li>\fB\-\-cleanup\fR: clean all state from the Homebrew directory\. Use with care!</li> <li>\fB\-\-skip\-setup\fR: don\'t check if the local system is set up correctly\.</li> <li>\fB\-\-keep\-old\fR: run \fBbrew bottle \-\-keep\-old\fR to build new bottles for a single platform\.</li> <li>\fB\-\-skip\-relocation\fR: run \fBbrew bottle \-\-skip\-relocation\fR to build new bottles that don\'t require relocation\.</li> <li>\fB\-\-local\fR: ask Homebrew to write verbose logs under \fB\./logs/\fR and set \fB$HOME\fR to \fB\./home/\fR</li> <li>\fB\-\-tap\fR: use the \fBgit\fR repository of the given tap\. Defaults to the core tap for syntax checking\.</li> <li>\fB\-\-fail\-fast\fR: immediately exit on a failing step\.</li> <li>\fB\-v\fR, \fB\-\-verbose\fR: print test step output in real time\. Has the side effect of passing output as raw bytes instead of re\-encoding in UTF\-8\.</li> <li>\fB\-\-test\-default\-formula\fR: use a default testing formula when not building a tap and no other formulae are specified\.</li> <li>\fB\-\-bintray\-org\fR: upload to the given Bintray organisation\.</li> <li>\fB\-\-root\-url\fR: use the specified \fIURL\fR as the root of the bottle\'s URL instead of Homebrew\'s default\.</li> <li>\fB\-\-git\-name\fR: set the Git author/committer names to the given name\.</li> <li>\fB\-\-git\-email\fR: set the Git author/committer email to the given email\.</li> <li>\fB\-\-ci\-upload\fR: use the Homebrew CI bottle upload options\.</li> <li>\fB\-\-publish\fR: publish the uploaded bottles\.</li> <li>\fB\-\-skip\-recursive\-dependents\fR: only test the direct dependents\.</li> <li>\fB\-\-only\-cleanup\-before\fR: Only run the pre\-cleanup step\. Needs \fB\-\-cleanup\fR\.</li> <li>\fB\-\-only\-setup\fR: Only run the local system setup check step\.</li> <li>\fB\-\-only\-tap\-syntax\fR: Only run the tap syntax check step\.</li> <li>\fB\-\-only\-formulae\fR: Only run the formulae steps\.</li> <li>\fB\-\-only\-cleanup\-after\fR: Only run the post\-cleanup step\. Needs \fB\-\-cleanup\fR\.</li> </ul> <h2>CUSTOM EXTERNAL COMMANDS</h2> <p>Homebrew, like \fBgit\fR(1), supports external commands\. These are executable scripts that reside somewhere in the \fBPATH\fR, named \fBbrew\-\fR\fIcmdname\fR or \fBbrew\-\fR\fIcmdname\fR\fB\.rb\fR, which can be invoked like \fBbrew\fR \fIcmdname\fR\. This allows you to create your own commands without modifying Homebrew\'s internals\.</p> <p>Instructions for creating your own commands can be found in the docs: <a href=\"https://docs\.brew\.sh/External\-Commands\">https://docs\.brew\.sh/External\-Commands</a></p> <h2>SPECIFYING FORMULAE</h2> <p>Many Homebrew commands accept one or more \fIformula\fR arguments\. These arguments can take several different forms:</p> <ul> <li><p>The name of a formula: e\.g\. \fBgit\fR, \fBnode\fR, \fBwget\fR\.</p></li> <li><p>The fully\-qualified name of a tapped formula: Sometimes a formula from a tapped repository may conflict with one in \fBhomebrew/core\fR\. You can still access these formulae by using a special syntax, e\.g\. \fBhomebrew/dupes/vim\fR or \fBhomebrew/versions/node4\fR\.</p></li> <li><p>An arbitrary file: Homebrew can install formulae from a local path\. It can point to either a formula file or a bottle\.</p></li> </ul> <h2>SPECIFYING CASKS</h2> <p>Many Homebrew Cask commands accept one or more \fIcask\fR arguments\. These can be specified the same way as the \fIformula\fR arguments described in \fBSPECIFYING FORMULAE\fR above\.</p> <h2>ENVIRONMENT</h2> <p>Note that environment variables must have a value set to be detected\. For example, run \fBexport HOMEBREW_NO_INSECURE_REDIRECT=1\fR rather than just \fBexport HOMEBREW_NO_INSECURE_REDIRECT\fR\.</p> <ul> <li><p>\fBHOMEBREW_ARCH\fR: Linux only: Pass the set value to a type name representing the compiler\'s \fB\-march\fR option\.</p> <p><em>Default:</em> \fBnative\fR\.</p></li> <li><p>\fBHOMEBREW_ARTIFACT_DOMAIN\fR: Prefix all download URLs, including those for bottles, with this variable\. For example, \fBHOMEBREW_ARTIFACT_DOMAIN=http://localhost:8080\fR will cause a formula with the URL \fBhttps://example\.com/foo\.tar\.gz\fR to instead download from \fBhttp://localhost:8080/example\.com/foo\.tar\.gz\fR\.</p></li> <li><p>\fBHOMEBREW_AUTO_UPDATE_SECS\fR: Automatically check for updates once per this seconds interval\.</p> <p><em>Default:</em> \fB300\fR\.</p></li> <li><p>\fBHOMEBREW_BAT\fR: If set, use \fBbat\fR for the \fBbrew cat\fR command\.</p></li> <li><p>\fBHOMEBREW_BAT_CONFIG_PATH\fR: Use the \fBbat\fR configuration file\. For example, \fBHOMEBREW_BAT=$HOME/\.bat/config\fR\.</p> <p><em>Default:</em> $HOME/\.bat/config</p></li> <li><p>\fBHOMEBREW_BINTRAY_KEY\fR: Use this API key when accessing the Bintray API (where bottles are stored)\.</p></li> <li><p>\fBHOMEBREW_BINTRAY_USER\fR: Use this username when accessing the Bintray API (where bottles are stored)\.</p></li> <li><p>\fBHOMEBREW_BOTTLE_DOMAIN\fR: Use the specified URL as the download mirror for bottles\. For example, \fBHOMEBREW_BOTTLE_DOMAIN=http://localhost:8080\fR will cause all bottles to download from the prefix \fBhttp://localhost:8080/\fR\.</p> <p><em>Default:</em> macOS: \fBhttps://homebrew\.bintray\.com/\fR, Linux: \fBhttps://linuxbrew\.bintray\.com/\fR\.</p></li> <li><p>\fBHOMEBREW_BREW_GIT_REMOTE\fR: Use the specified URL as the Homebrew/brew \fBgit\fR(1) remote\.</p> <p><em>Default:</em> \fBhttps://github\.com/Homebrew/brew\fR\.</p></li> <li><p>\fBHOMEBREW_BROWSER\fR: Use this as the browser when opening project homepages\.</p> <p><em>Default:</em> \fB$BROWSER\fR or the OS\'s default browser\.</p></li> <li><p>\fBHOMEBREW_CACHE\fR: Use the specified directory as the download cache\.</p> <p><em>Default:</em> macOS: \fB$HOME/Library/Caches/Homebrew\fR, Linux: \fB$XDG_CACHE_HOME/Homebrew\fR or \fB$HOME/\.cache/Homebrew\fR\.</p></li> <li><p>\fBHOMEBREW_CASK_OPTS\fR: Options which should be used for all \fBcask\fR commands\. All \fB\-\-*dir\fR options, \fB\-\-language\fR, \fB\-\-require\-sha\fR, \fB\-\-no\-quarantine\fR and \fB\-\-no\-binaries\fR are supported\. For example, you might add something like the following to your ~/\.profile, ~/\.bash_profile, or ~/\.zshenv:</p></li> </ul> <p>\fBexport HOMEBREW_CASK_OPTS=\'\-\-appdir=~/Applications \-\-fontdir=/Library/Fonts\'\fR</p> <ul> <li><p>\fBHOMEBREW_CLEANUP_MAX_AGE_DAYS\fR: Cleanup all cached files older than this many days\.</p> <p><em>Default:</em> \fB120\fR\.</p></li> <li><p>\fBHOMEBREW_COLOR\fR: If set, force colour output on non\-TTY outputs\.</p></li> <li><p>\fBHOMEBREW_CORE_GIT_REMOTE\fR: Use the specified URL as the Homebrew/homebrew\-core \fBgit\fR(1) remote\.</p> <p><em>Default:</em> macOS: \fBhttps://github\.com/Homebrew/homebrew\-core\fR, Linux: \fBhttps://github\.com/Homebrew/linuxbrew\-core\fR\.</p></li> <li><p>\fBHOMEBREW_CURLRC\fR: If set, do not pass \fB\-\-disable\fR when invoking \fBcurl\fR(1), which disables the use of \fBcurlrc\fR\.</p></li> <li><p>\fBHOMEBREW_CURL_RETRIES\fR: Pass the given retry count to \fB\-\-retry\fR when invoking \fBcurl\fR(1)\.</p> <p><em>Default:</em> \fB3\fR\.</p></li> <li><p>\fBHOMEBREW_CURL_VERBOSE\fR: If set, pass \fB\-\-verbose\fR when invoking \fBcurl\fR(1)\.</p></li> <li><p>\fBHOMEBREW_DEVELOPER\fR: If set, tweak behaviour to be more relevant for Homebrew developers (active or budding) by e\.g\. turning warnings into errors\.</p></li> <li><p>\fBHOMEBREW_DISABLE_LOAD_FORMULA\fR: If set, refuse to load formulae\. This is useful when formulae are not trusted (such as in pull requests)\.</p></li> <li><p>\fBHOMEBREW_DISPLAY\fR: Use this X11 display when opening a page in a browser, for example with \fBbrew home\fR\. Primarily useful on Linux\.</p> <p><em>Default:</em> \fB$DISPLAY\fR\.</p></li> <li><p>\fBHOMEBREW_DISPLAY_INSTALL_TIMES\fR: If set, print install times for each formula at the end of the run\.</p></li> <li><p>\fBHOMEBREW_EDITOR\fR: Use this editor when editing a single formula, or several formulae in the same directory\.</p> <p><em>Note:</em> \fBbrew edit\fR will open all of Homebrew as discontinuous files and directories\. Visual Studio Code can handle this correctly in project mode, but many editors will do strange things in this case\.</p> <p><em>Default:</em> \fB$EDITOR\fR or \fB$VISUAL\fR\.</p></li> <li><p>\fBHOMEBREW_FAIL_LOG_LINES\fR: Output this many lines of output on formula \fBsystem\fR failures\.</p> <p><em>Default:</em> \fB15\fR\.</p></li> <li><p>\fBHOMEBREW_FORBIDDEN_LICENSES\fR: A space\-separated list of licenses\. Homebrew will refuse to install a formula if that formula or any of its dependencies has a license on this list\.</p></li> <li><p>\fBHOMEBREW_FORCE_BREWED_CURL\fR: If set, always use a Homebrew\-installed \fBcurl\fR(1) rather than the system version\. Automatically set if the system version of \fBcurl\fR is too old\.</p></li> <li><p>\fBHOMEBREW_FORCE_BREWED_GIT\fR: If set, always use a Homebrew\-installed \fBgit\fR(1) rather than the system version\. Automatically set if the system version of \fBgit\fR is too old\.</p></li> <li><p>\fBHOMEBREW_FORCE_HOMEBREW_ON_LINUX\fR: If set, running Homebrew on Linux will use URLs for macOS\. This is useful when merging pull requests for macOS while on Linux\.</p></li> <li><p>\fBHOMEBREW_FORCE_VENDOR_RUBY\fR: If set, always use Homebrew\'s vendored, relocatable Ruby version even if the system version of Ruby is new enough\.</p></li> <li><p>\fBHOMEBREW_GITHUB_API_PASSWORD\fR: Use this password for authentication with the GitHub API, for features such as \fBbrew search\fR\. We strongly recommend using \fBHOMEBREW_GITHUB_API_TOKEN\fR instead\.</p></li> <li><p>\fBHOMEBREW_GITHUB_API_TOKEN\fR: Use this personal access token for the GitHub API, for features such as \fBbrew search\fR\. You can create one at <a href=\"https://github\.com/settings/tokens\">https://github\.com/settings/tokens</a>\. If set, GitHub will allow you a greater number of API requests\. For more information, see: <a href=\"https://docs\.github\.com/en/rest/overview/resources\-in\-the\-rest\-api#rate\-limiting\">https://docs\.github\.com/en/rest/overview/resources\-in\-the\-rest\-api#rate\-limiting</a>\.</p> <p><em>Note:</em> Homebrew doesn\'t require permissions for any of the scopes, but some developer commands may require additional permissions\.</p></li> <li><p>\fBHOMEBREW_GITHUB_API_USERNAME\fR: Use this username for authentication with the GitHub API, for features such as \fBbrew search\fR\. We strongly recommend using \fBHOMEBREW_GITHUB_API_TOKEN\fR instead\.</p></li> <li><p>\fBHOMEBREW_GIT_EMAIL\fR: Set the Git author and committer name to this value\.</p></li> <li><p>\fBHOMEBREW_GIT_NAME\fR: Set the Git author and committer email to this value\.</p></li> <li><p>\fBHOMEBREW_INSTALL_BADGE\fR: Print this text before the installation summary of each successful build\.</p> <p><em>Default:</em> The \"Beer Mug\" emoji\.</p></li> <li><p>\fBHOMEBREW_LOGS\fR: Use the specified directory to store log files\.</p> <p><em>Default:</em> macOS: \fB$HOME/Library/Logs/Homebrew\fR, Linux: \fB$XDG_CACHE_HOME/Homebrew/Logs\fR or \fB$HOME/\.cache/Homebrew/Logs\fR\.</p></li> <li><p>\fBHOMEBREW_MAKE_JOBS\fR: Use this value as the number of parallel jobs to run when building with \fBmake\fR(1)\.</p> <p><em>Default:</em> The number of available CPU cores\.</p></li> <li><p>\fBHOMEBREW_NO_ANALYTICS\fR: If set, do not send analytics\. See: <a href=\"https://docs\.brew\.sh/Analytics\">https://docs\.brew\.sh/Analytics</a>\.</p></li> <li><p>\fBHOMEBREW_NO_AUTO_UPDATE\fR: If set, do not automatically update before running \fBbrew install\fR, \fBbrew upgrade\fR or \fBbrew tap\fR\.</p></li> <li><p>\fBHOMEBREW_NO_BOTTLE_SOURCE_FALLBACK\fR: If set, fail on the failure of installation from a bottle rather than falling back to building from source\.</p></li> <li><p>\fBHOMEBREW_NO_COLOR\fR: If set, do not print text with colour added\.</p> <p><em>Default:</em> \fB$NO_COLOR\fR\.</p></li> <li><p>\fBHOMEBREW_NO_COMPAT\fR: If set, disable all use of legacy compatibility code\.</p></li> <li><p>\fBHOMEBREW_NO_EMOJI\fR: If set, do not print \fBHOMEBREW_INSTALL_BADGE\fR on a successful build\.</p> <p><em>Note:</em> Only tries to print emoji on OS X Lion or newer\.</p></li> <li><p>\fBHOMEBREW_NO_GITHUB_API\fR: If set, do not use the GitHub API, e\.g\. for searches or fetching relevant issues on a failed install\.</p></li> <li><p>\fBHOMEBREW_NO_INSECURE_REDIRECT\fR: If set, forbid redirects from secure HTTPS to insecure HTTP\.</p> <p><em>Note:</em> While ensuring your downloads are fully secure, this is likely to cause from\-source SourceForge, some GNU & GNOME based formulae to fail to download\.</p></li> <li><p>\fBHOMEBREW_NO_INSTALL_CLEANUP\fR: If set, \fBbrew install\fR, \fBbrew upgrade\fR and \fBbrew reinstall\fR will never automatically cleanup installed/upgraded/reinstalled formulae or all formulae every 30 days\.</p></li> <li><p>\fBHOMEBREW_PRY\fR: If set, use Pry for the \fBbrew irb\fR command\.</p></li> <li><p>\fBHOMEBREW_SKIP_OR_LATER_BOTTLES\fR: If set with \fBHOMEBREW_DEVELOPER\fR, do not use bottles from older versions of macOS\. This is useful in development on new macOS versions\.</p></li> <li><p>\fBHOMEBREW_SVN\fR: Use this as the \fBsvn\fR(1) binary\.</p> <p><em>Default:</em> A Homebrew\-built Subversion (if installed), or the system\-provided binary\.</p></li> <li><p>\fBHOMEBREW_TEMP\fR: Use this path as the temporary directory for building packages\. Changing this may be needed if your system temporary directory and Homebrew prefix are on different volumes, as macOS has trouble moving symlinks across volumes when the target does not yet exist\. This issue typically occurs when using FileVault or custom SSD configurations\.</p> <p><em>Default:</em> macOS: \fB/private/tmp\fR, Linux: \fB/tmp\fR\.</p></li> <li><p>\fBHOMEBREW_UPDATE_TO_TAG\fR: If set, always use the latest stable tag (even if developer commands have been run)\.</p></li> <li><p>\fBHOMEBREW_VERBOSE\fR: If set, always assume \fB\-\-verbose\fR when running commands\.</p></li> <li><p>\fBHOMEBREW_VERBOSE_USING_DOTS\fR: If set, verbose output will print a \fB\.\fR no more than once a minute\. This can be useful to avoid long\-running Homebrew commands being killed due to no output\.</p></li> <li><p>\fBall_proxy\fR: Use this SOCKS5 proxy for \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\.</p></li> <li><p>\fBftp_proxy\fR: Use this FTP proxy for \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\.</p></li> <li><p>\fBhttp_proxy\fR: Use this HTTP proxy for \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\.</p></li> <li><p>\fBhttps_proxy\fR: Use this HTTPS proxy for \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\.</p></li> <li><p>\fBno_proxy\fR: A comma\-separated list of hostnames and domain names excluded from proxying by \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\.</p></li> <li><p>\fBSUDO_ASKPASS\fR: When this variable is set, the \fB\-A\fR option is passed when calling \fBsudo\fR(8)</p></li> </ul> <h2>USING HOMEBREW BEHIND A PROXY</h2> <p>Set the \fBhttp_proxy\fR, \fBhttps_proxy\fR, \fBall_proxy\fR, \fBftp_proxy\fR and/or \fBno_proxy\fR environment variables documented above\.</p> <p>For example, to use an unauthenticated HTTP or SOCKS5 proxy:</p> <pre>\fBexport http_proxy=http://$HOST:$PORT export all_proxy=socks5://$HOST:$PORT \fR</pre> <p>And for an authenticated HTTP proxy:</p> <pre>\fBexport http_proxy=http://$USER:$PASSWORD@$HOST:$PORT \fR</pre> <h2>SEE ALSO</h2> <p>Homebrew Documentation: <a href=\"https://docs\.brew\.sh\">https://docs\.brew\.sh</a></p> <p>Homebrew API: <a href=\"https://rubydoc\.brew\.sh\">https://rubydoc\.brew\.sh</a></p> <p>\fBgit\fR(1), \fBgit\-log\fR(1)</p> <h2>AUTHORS</h2> <p>Homebrew\'s Project Leader is Mike McQuaid\.</p> <p>Homebrew\'s Project Leadership Committee is Misty De Meo, Shaun Jackman, Jonathan Chang, Sean Molenaar and Markus Reiter\.</p> <p>Homebrew\'s Technical Steering Committee is Michka Popoff, FX Coudert, Markus Reiter, Misty De Meo and Mike McQuaid\.</p> <p>Homebrew/brew\'s Linux maintainers are Michka Popoff, Shaun Jackman, Dawid Dziurla, Issy Long and Maxim Belkin\.</p> <p>Homebrew\'s other current maintainers are Claudia Pellegrino, Zach Auten, Rui Chen, Vitor Galvao, Caleb Xu, Gautham Goli, Steven Peters, Bo Anderson, William Woodruff, Igor Kapkov, Sam Ford, Alexander Bayandin, Izaak Beekman, Eric Knibbe, Viktor Szakats, Thierry Moisan, Steven Peters, Tom Schoonjans, Issy Long, CoreCode, Randall, Rylan Polster, SeekingMeaning, William Ma and Dustin Rodrigues\.</p> <p>Former maintainers with significant contributions include Jan Viljanen, JCount, commitay, Dominyk Tiller, Tim Smith, Baptiste Fontaine, Xu Cheng, Martin Afanasjew, Brett Koonce, Charlie Sharpsteen, Jack Nagel, Adam Vandenberg, Andrew Janke, Alex Dunn, neutric, Tomasz Pajor, Uladzislau Shablinski, Alyssa Ross, ilovezfs, Chongyu Zhu and Homebrew\'s creator: Max Howell\.</p> <h2>BUGS</h2> <p>See our issues on GitHub:</p> <ul> <li><p><strong>Homebrew/brew</strong>: <a href=\"https://github\.com/Homebrew/brew/issues\">https://github\.com/Homebrew/brew/issues</a></p></li> <li><p><strong>Homebrew/homebrew\-core</strong>: <a href=\"https://github\.com/Homebrew/homebrew\-core/issues\">https://github\.com/Homebrew/homebrew\-core/issues</a></p></li> <li><p><strong>Homebrew/homebrew\-cask</strong>: <a href=\"https://github\.com/Homebrew/homebrew\-cask/issues\">https://github\.com/Homebrew/homebrew\-cask/issues</a></p></li> </ul></script>" +.SS "\fBsh\fR [\fIoptions\fR] [\fISCRIPT\fR]" +Homebrew build environment that uses years\-battle\-hardened build logic to help your \fB\./configure && make && make install\fR and even your \fBgem install\fR succeed\. Especially handy if you run Homebrew in an Xcode\-only configuration since it adds tools like \fBmake\fR to your \fBPATH\fR which build systems would not find otherwise\. +. +.TP +\fB\-\-env\fR +Use the standard \fBPATH\fR instead of superenv\'s when \fBstd\fR is passed\. +. +.TP +\fB\-c\fR, \fB\-\-cmd\fR +Execute commands in a non\-interactive shell\. +. +.SS "\fBsponsors\fR" +Print a Markdown summary of Homebrew\'s GitHub Sponsors, suitable for pasting into a README\. +. +.SS "\fBstyle\fR [\fIoptions\fR] [\fIfile\fR|\fItap\fR|\fIformula\fR]" +Check formulae or files for conformance to Homebrew style guidelines\. +. +.P +Lists of \fIfile\fR, \fItap\fR and \fIformula\fR may not be combined\. If none are provided, \fBstyle\fR will run style checks on the whole Homebrew library, including core code and all formulae\. +. +.TP +\fB\-\-fix\fR +Fix style violations automatically using RuboCop\'s auto\-correct feature\. +. +.TP +\fB\-\-display\-cop\-names\fR +Include the RuboCop cop name for each violation in the output\. +. +.TP +\fB\-\-only\-cops\fR +Specify a comma\-separated \fIcops\fR list to check for violations of only the listed RuboCop cops\. +. +.TP +\fB\-\-except\-cops\fR +Specify a comma\-separated \fIcops\fR list to skip checking for violations of the listed RuboCop cops\. +. +.SS "\fBtap\-new\fR \fIuser\fR\fB/\fR\fIrepo\fR" +Generate the template files for a new tap\. +. +.SS "\fBtest\fR [\fIoptions\fR] \fIformula\fR" +Run the test method provided by an installed formula\. There is no standard output or return code, but generally it should notify the user if something is wrong with the installed formula\. +. +.P +\fIExample:\fR \fBbrew install jruby && brew test jruby\fR +. +.TP +\fB\-\-devel\fR +Test the development version of a formula\. +. +.TP +\fB\-\-HEAD\fR +Test the head version of a formula\. +. +.TP +\fB\-\-keep\-tmp\fR +Retain the temporary files created for the test\. +. +.TP +\fB\-\-retry\fR +Retry if a testing fails\. +. +.SS "\fBtests\fR [\fIoptions\fR]" +Run Homebrew\'s unit and integration tests\. +. +.TP +\fB\-\-coverage\fR +Generate code coverage reports\. +. +.TP +\fB\-\-generic\fR +Run only OS\-agnostic tests\. +. +.TP +\fB\-\-no\-compat\fR +Do not load the compatibility layer when running tests\. +. +.TP +\fB\-\-online\fR +Include tests that use the GitHub API and tests that use any of the taps for official external commands\. +. +.TP +\fB\-\-byebug\fR +Enable debugging using byebug\. +. +.TP +\fB\-\-only\fR +Run only \fItest_script\fR\fB_spec\.rb\fR\. Appending \fB:\fR\fIline_number\fR will start at a specific line\. +. +.TP +\fB\-\-seed\fR +Randomise tests with the specified \fIvalue\fR instead of a random seed\. +. +.SS "\fBtypecheck\fR" +Check for typechecking errors using Sorbet\. +. +.TP +\fB\-q\fR, \fB\-\-quiet\fR +Silence all non\-critical errors\. +. +.TP +\fB\-\-update\-definitions\fR +Update Tapioca gem definitions of recently bumped gems +. +.TP +\fB\-\-fail\-if\-not\-changed\fR +Return a failing status code if all gems are up to date and gem definitions do not need a tapioca update +. +.TP +\fB\-\-dir\fR +Typecheck all files in a specific directory\. +. +.TP +\fB\-\-file\fR +Typecheck a single file\. +. +.TP +\fB\-\-ignore\fR +Ignores input files that contain the given string in their paths (relative to the input path passed to Sorbet)\. +. +.SS "\fBunpack\fR [\fIoptions\fR] \fIformula\fR" +Unpack the source files for \fIformula\fR into subdirectories of the current working directory\. +. +.TP +\fB\-\-destdir\fR +Create subdirectories in the directory named by \fIpath\fR instead\. +. +.TP +\fB\-\-patch\fR +Patches for \fIformula\fR will be applied to the unpacked source\. +. +.TP +\fB\-g\fR, \fB\-\-git\fR +Initialise a Git repository in the unpacked source\. This is useful for creating patches for the software\. +. +.TP +\fB\-f\fR, \fB\-\-force\fR +Overwrite the destination directory if it already exists\. +. +.SS "\fBupdate\-license\-data\fR [\fIoptions\fR]" +Update SPDX license data in the Homebrew repository\. +. +.TP +\fB\-\-fail\-if\-not\-changed\fR +Return a failing status code if current license data\'s version is the same as the upstream\. This can be used to notify CI when the SPDX license data is out of date\. +. +.SS "\fBupdate\-python\-resources\fR [\fIoptions\fR] \fIformula\fR" +Update versions for PyPI resource blocks in \fIformula\fR\. +. +.TP +\fB\-p\fR, \fB\-\-print\-only\fR +Print the updated resource blocks instead of changing \fIformula\fR\. +. +.TP +\fB\-s\fR, \fB\-\-silent\fR +Suppress any output\. +. +.TP +\fB\-\-ignore\-non\-pypi\-packages\fR +Don\'t fail if \fIformula\fR is not a PyPI package\. +. +.TP +\fB\-\-version\fR +Use the specified \fIversion\fR when finding resources for \fIformula\fR\. If no version is specified, the current version for \fIformula\fR will be used\. +. +.SS "\fBupdate\-test\fR [\fIoptions\fR]" +Run a test of \fBbrew update\fR with a new repository clone\. If no options are passed, use \fBorigin/master\fR as the start commit\. +. +.TP +\fB\-\-to\-tag\fR +Set \fBHOMEBREW_UPDATE_TO_TAG\fR to test updating between tags\. +. +.TP +\fB\-\-keep\-tmp\fR +Retain the temporary directory containing the new repository clone\. +. +.TP +\fB\-\-commit\fR +Use the specified \fIcommit\fR as the start commit\. +. +.TP +\fB\-\-before\fR +Use the commit at the specified \fIdate\fR as the start commit\. +. +.SS "\fBvendor\-gems\fR" +Install and commit Homebrew\'s vendored gems\. +. +.SH "GLOBAL OPTIONS" +These options are applicable across multiple subcommands\. +. +.TP +\fB\-d\fR, \fB\-\-debug\fR +Display any debugging information\. +. +.TP +\fB\-q\fR, \fB\-\-quiet\fR +Suppress any warnings\. +. +.TP +\fB\-v\fR, \fB\-\-verbose\fR +Make some output more verbose\. +. +.TP +\fB\-h\fR, \fB\-\-help\fR +Show this message\. +. +.SH "OFFICIAL EXTERNAL COMMANDS" +. +.SS "\fBbundle\fR [\fIsubcommand\fR]" +Bundler for non\-Ruby dependencies from Homebrew, Homebrew Cask, Mac App Store and Whalebrew\. +. +.P +\fBbrew bundle\fR [\fBinstall\fR] + Install and upgrade (by default) all dependencies from the \fBBrewfile\fR\. +. +.P +You can skip the installation of dependencies by adding space\-separated values to one or more of the following environment variables: \fBHOMEBREW_BUNDLE_BREW_SKIP\fR, \fBHOMEBREW_BUNDLE_CASK_SKIP\fR, \fBHOMEBREW_BUNDLE_MAS_SKIP\fR, \fBHOMEBREW_BUNDLE_WHALEBREW_SKIP\fR, \fBHOMEBREW_BUNDLE_TAP_SKIP\fR +. +.P +\fBbrew bundle\fR will output a \fBBrewfile\.lock\.json\fR in the same directory as the \fBBrewfile\fR if all dependencies are installed successfully\. This contains dependency and system status information which can be useful in debugging \fBbrew bundle\fR failures and replicating a "last known good build" state\. You can opt\-out of this behaviour by setting the \fBHOMEBREW_BUNDLE_NO_LOCK\fR environment variable or passing the \fB\-\-no\-lock\fR option\. You may wish to check this file into the same version control system as your \fBBrewfile\fR (or ensure your version control system ignores it if you\'d prefer to rely on debugging information from a local machine)\. +. +.P +\fBbrew bundle dump\fR + Write all installed casks/formulae/images/taps into a \fBBrewfile\fR\. +. +.P +\fBbrew bundle cleanup\fR + Uninstall all dependencies not listed from the \fBBrewfile\fR\. +. +.P +This workflow is useful for maintainers or testers who regularly install lots of formulae\. +. +.P +\fBbrew bundle check\fR + Check if all dependencies are installed from the \fBBrewfile\fR \. +. +.P +This provides a successful exit code if everything is up\-to\-date, making it useful for scripting\. +. +.P +\fBbrew bundle list\fR + List all dependencies present in a \fBBrewfile\fR\. +. +.P +By default, only Homebrew dependencies are listed\. +. +.P +\fBbrew bundle exec\fR \fIcommand\fR + Run an external command in an isolated build environment based on the \fBBrewfile\fR dependencies\. +. +.P +This sanitized build environment ignores unrequested dependencies, which makes sure that things you didn\'t specify in your \fBBrewfile\fR won\'t get picked up by commands like \fBbundle install\fR, \fBnpm install\fR, etc\. It will also add compiler flags which will help find keg\-only dependencies like \fBopenssl\fR, \fBicu4c\fR, etc\. +. +.TP +\fB\-\-file\fR +Read the \fBBrewfile\fR from this location\. Use \fB\-\-file=\-\fR to pipe to stdin/stdout\. +. +.TP +\fB\-\-global\fR +Read the \fBBrewfile\fR from \fB~/\.Brewfile\fR\. +. +.TP +\fB\-v\fR, \fB\-\-verbose\fR +\fBinstall\fR prints output from commands as they are run\. \fBcheck\fR lists all missing dependencies\. +. +.TP +\fB\-\-no\-upgrade\fR +\fBinstall\fR won\'t run \fBbrew upgrade\fR on outdated dependencies\. Note they may still be upgraded by \fBbrew install\fR if needed\. +. +.TP +\fB\-f\fR, \fB\-\-force\fR +\fBdump\fR overwrites an existing \fBBrewfile\fR\. \fBcleanup\fR actually performs its cleanup operations\. +. +.TP +\fB\-\-no\-lock\fR +\fBinstall\fR won\'t output a \fBBrewfile\.lock\.json\fR\. +. +.TP +\fB\-\-all\fR +\fBlist\fR all dependencies\. +. +.TP +\fB\-\-formula\fR +\fBlist\fR Homebrew dependencies\. +. +.TP +\fB\-\-cask\fR +\fBlist\fR Homebrew Cask dependencies\. +. +.TP +\fB\-\-tap\fR +\fBlist\fR tap dependencies\. +. +.TP +\fB\-\-mas\fR +\fBlist\fR Mac App Store dependencies\. +. +.TP +\fB\-\-whalebrew\fR +\fBlist\fR Whalebrew dependencies\. +. +.TP +\fB\-\-describe\fR +\fBdump\fR adds a description comment above each line, unless the dependency does not have a description\. +. +.TP +\fB\-\-no\-restart\fR +\fBdump\fR does not add \fBrestart_service\fR to formula lines\. +. +.TP +\fB\-\-zap\fR +\fBcleanup\fR casks using the \fBzap\fR command instead of \fBuninstall\fR\. +. +.SS "\fBservices\fR [\fIsubcommand\fR]" +Manage background services with macOS\' \fBlaunchctl\fR(1) daemon manager\. +. +.P +If \fBsudo\fR is passed, operate on \fB/Library/LaunchDaemons\fR (started at boot)\. Otherwise, operate on \fB~/Library/LaunchAgents\fR (started at login)\. +. +.P +[\fBsudo\fR] \fBbrew services\fR [\fBlist\fR] + List all managed services for the current user (or root)\. +. +.P +[\fBsudo\fR] \fBbrew services run\fR (\fIformula\fR|\fB\-\-all\fR) + Run the service \fIformula\fR without registering to launch at login (or boot)\. +. +.P +[\fBsudo\fR] \fBbrew services start\fR (\fIformula\fR|\fB\-\-all\fR) + Start the service \fIformula\fR immediately and register it to launch at login (or boot)\. +. +.P +[\fBsudo\fR] \fBbrew services stop\fR (\fIformula\fR|\fB\-\-all\fR) + Stop the service \fIformula\fR immediately and unregister it from launching at login (or boot)\. +. +.P +[\fBsudo\fR] \fBbrew services restart\fR (\fIformula\fR|\fB\-\-all\fR) + Stop (if necessary) and start the service \fIformula\fR immediately and register it to launch at login (or boot)\. +. +.P +[\fBsudo\fR] \fBbrew services cleanup\fR + Remove all unused services\. +. +.TP +\fB\-\-all\fR +Run \fIsubcommand\fR on all services\. +. +.SS "\fBtest\-bot\fR [\fIoptions\fR] [\fIformula\fR]:" +Tests the full lifecycle of a Homebrew change to a tap (Git repository)\. For example, for a GitHub Actions pull request that changes a formula \fBbrew test\-bot\fR will ensure the system is cleaned and setup to test the formula, install the formula, run various tests and checks on it, bottle (package) the binaries and test formulae that depend on it to ensure they aren\'t broken by these changes\. +. +.P +Only supports GitHub Actions as a CI provider\. This is because Homebrew uses GitHub Actions and it\'s freely available for public and private use with macOS and Linux workers\. +. +.TP +\fB\-\-dry\-run\fR +print what would be done rather than doing it\. +. +.TP +\fB\-\-cleanup\fR +clean all state from the Homebrew directory\. Use with care! +. +.TP +\fB\-\-skip\-setup\fR +don\'t check if the local system is set up correctly\. +. +.TP +\fB\-\-keep\-old\fR +run \fBbrew bottle \-\-keep\-old\fR to build new bottles for a single platform\. +. +.TP +\fB\-\-skip\-relocation\fR +run \fBbrew bottle \-\-skip\-relocation\fR to build new bottles that don\'t require relocation\. +. +.TP +\fB\-\-local\fR +ask Homebrew to write verbose logs under \fB\./logs/\fR and set \fB$HOME\fR to \fB\./home/\fR +. +.TP +\fB\-\-tap\fR +use the \fBgit\fR repository of the given tap\. Defaults to the core tap for syntax checking\. +. +.TP +\fB\-\-fail\-fast\fR +immediately exit on a failing step\. +. +.TP +\fB\-v\fR, \fB\-\-verbose\fR +print test step output in real time\. Has the side effect of passing output as raw bytes instead of re\-encoding in UTF\-8\. +. +.TP +\fB\-\-test\-default\-formula\fR +use a default testing formula when not building a tap and no other formulae are specified\. +. +.TP +\fB\-\-bintray\-org\fR +upload to the given Bintray organisation\. +. +.TP +\fB\-\-root\-url\fR +use the specified \fIURL\fR as the root of the bottle\'s URL instead of Homebrew\'s default\. +. +.TP +\fB\-\-git\-name\fR +set the Git author/committer names to the given name\. +. +.TP +\fB\-\-git\-email\fR +set the Git author/committer email to the given email\. +. +.TP +\fB\-\-ci\-upload\fR +use the Homebrew CI bottle upload options\. +. +.TP +\fB\-\-publish\fR +publish the uploaded bottles\. +. +.TP +\fB\-\-skip\-recursive\-dependents\fR +only test the direct dependents\. +. +.TP +\fB\-\-only\-cleanup\-before\fR +Only run the pre\-cleanup step\. Needs \fB\-\-cleanup\fR\. +. +.TP +\fB\-\-only\-setup\fR +Only run the local system setup check step\. +. +.TP +\fB\-\-only\-tap\-syntax\fR +Only run the tap syntax check step\. +. +.TP +\fB\-\-only\-formulae\fR +Only run the formulae steps\. +. +.TP +\fB\-\-only\-cleanup\-after\fR +Only run the post\-cleanup step\. Needs \fB\-\-cleanup\fR\. +. +.SH "CUSTOM EXTERNAL COMMANDS" +Homebrew, like \fBgit\fR(1), supports external commands\. These are executable scripts that reside somewhere in the \fBPATH\fR, named \fBbrew\-\fR\fIcmdname\fR or \fBbrew\-\fR\fIcmdname\fR\fB\.rb\fR, which can be invoked like \fBbrew\fR \fIcmdname\fR\. This allows you to create your own commands without modifying Homebrew\'s internals\. +. +.P +Instructions for creating your own commands can be found in the docs: \fIhttps://docs\.brew\.sh/External\-Commands\fR +. +.SH "SPECIFYING FORMULAE" +Many Homebrew commands accept one or more \fIformula\fR arguments\. These arguments can take several different forms: +. +.TP +The name of a formula +e\.g\. \fBgit\fR, \fBnode\fR, \fBwget\fR\. +. +.TP +The fully\-qualified name of a tapped formula +Sometimes a formula from a tapped repository may conflict with one in \fBhomebrew/core\fR\. You can still access these formulae by using a special syntax, e\.g\. \fBhomebrew/dupes/vim\fR or \fBhomebrew/versions/node4\fR\. +. +.TP +An arbitrary file +Homebrew can install formulae from a local path\. It can point to either a formula file or a bottle\. +. +.SH "SPECIFYING CASKS" +Many Homebrew Cask commands accept one or more \fIcask\fR arguments\. These can be specified the same way as the \fIformula\fR arguments described in \fBSPECIFYING FORMULAE\fR above\. +. +.SH "ENVIRONMENT" +Note that environment variables must have a value set to be detected\. For example, run \fBexport HOMEBREW_NO_INSECURE_REDIRECT=1\fR rather than just \fBexport HOMEBREW_NO_INSECURE_REDIRECT\fR\. +. +.TP +\fBHOMEBREW_ARCH\fR +Linux only: Pass the set value to a type name representing the compiler\'s \fB\-march\fR option\. +. +.IP +\fIDefault:\fR \fBnative\fR\. +. +.TP +\fBHOMEBREW_ARTIFACT_DOMAIN\fR +Prefix all download URLs, including those for bottles, with this variable\. For example, \fBHOMEBREW_ARTIFACT_DOMAIN=http://localhost:8080\fR will cause a formula with the URL \fBhttps://example\.com/foo\.tar\.gz\fR to instead download from \fBhttp://localhost:8080/example\.com/foo\.tar\.gz\fR\. +. +.TP +\fBHOMEBREW_AUTO_UPDATE_SECS\fR +Automatically check for updates once per this seconds interval\. +. +.IP +\fIDefault:\fR \fB300\fR\. +. +.TP +\fBHOMEBREW_BAT\fR +If set, use \fBbat\fR for the \fBbrew cat\fR command\. +. +.TP +\fBHOMEBREW_BAT_CONFIG_PATH\fR +Use the \fBbat\fR configuration file\. For example, \fBHOMEBREW_BAT=$HOME/\.bat/config\fR\. +. +.IP +\fIDefault:\fR $HOME/\.bat/config +. +.TP +\fBHOMEBREW_BINTRAY_KEY\fR +Use this API key when accessing the Bintray API (where bottles are stored)\. +. +.TP +\fBHOMEBREW_BINTRAY_USER\fR +Use this username when accessing the Bintray API (where bottles are stored)\. +. +.TP +\fBHOMEBREW_BOTTLE_DOMAIN\fR +Use the specified URL as the download mirror for bottles\. For example, \fBHOMEBREW_BOTTLE_DOMAIN=http://localhost:8080\fR will cause all bottles to download from the prefix \fBhttp://localhost:8080/\fR\. +. +.IP +\fIDefault:\fR macOS: \fBhttps://homebrew\.bintray\.com/\fR, Linux: \fBhttps://linuxbrew\.bintray\.com/\fR\. +. +.TP +\fBHOMEBREW_BREW_GIT_REMOTE\fR +Use the specified URL as the Homebrew/brew \fBgit\fR(1) remote\. +. +.IP +\fIDefault:\fR \fBhttps://github\.com/Homebrew/brew\fR\. +. +.TP +\fBHOMEBREW_BROWSER\fR +Use this as the browser when opening project homepages\. +. +.IP +\fIDefault:\fR \fB$BROWSER\fR or the OS\'s default browser\. +. +.TP +\fBHOMEBREW_CACHE\fR +Use the specified directory as the download cache\. +. +.IP +\fIDefault:\fR macOS: \fB$HOME/Library/Caches/Homebrew\fR, Linux: \fB$XDG_CACHE_HOME/Homebrew\fR or \fB$HOME/\.cache/Homebrew\fR\. +. +.TP +\fBHOMEBREW_CASK_OPTS\fR +Options which should be used for all \fBcask\fR commands\. All \fB\-\-*dir\fR options, \fB\-\-language\fR, \fB\-\-require\-sha\fR, \fB\-\-no\-quarantine\fR and \fB\-\-no\-binaries\fR are supported\. For example, you might add something like the following to your ~/\.profile, ~/\.bash_profile, or ~/\.zshenv: +. +.P +\fBexport HOMEBREW_CASK_OPTS=\'\-\-appdir=~/Applications \-\-fontdir=/Library/Fonts\'\fR +. +.TP +\fBHOMEBREW_CLEANUP_MAX_AGE_DAYS\fR +Cleanup all cached files older than this many days\. +. +.IP +\fIDefault:\fR \fB120\fR\. +. +.TP +\fBHOMEBREW_COLOR\fR +If set, force colour output on non\-TTY outputs\. +. +.TP +\fBHOMEBREW_CORE_GIT_REMOTE\fR +Use the specified URL as the Homebrew/homebrew\-core \fBgit\fR(1) remote\. +. +.IP +\fIDefault:\fR macOS: \fBhttps://github\.com/Homebrew/homebrew\-core\fR, Linux: \fBhttps://github\.com/Homebrew/linuxbrew\-core\fR\. +. +.TP +\fBHOMEBREW_CURLRC\fR +If set, do not pass \fB\-\-disable\fR when invoking \fBcurl\fR(1), which disables the use of \fBcurlrc\fR\. +. +.TP +\fBHOMEBREW_CURL_RETRIES\fR +Pass the given retry count to \fB\-\-retry\fR when invoking \fBcurl\fR(1)\. +. +.IP +\fIDefault:\fR \fB3\fR\. +. +.TP +\fBHOMEBREW_CURL_VERBOSE\fR +If set, pass \fB\-\-verbose\fR when invoking \fBcurl\fR(1)\. +. +.TP +\fBHOMEBREW_DEVELOPER\fR +If set, tweak behaviour to be more relevant for Homebrew developers (active or budding) by e\.g\. turning warnings into errors\. +. +.TP +\fBHOMEBREW_DISABLE_LOAD_FORMULA\fR +If set, refuse to load formulae\. This is useful when formulae are not trusted (such as in pull requests)\. +. +.TP +\fBHOMEBREW_DISPLAY\fR +Use this X11 display when opening a page in a browser, for example with \fBbrew home\fR\. Primarily useful on Linux\. +. +.IP +\fIDefault:\fR \fB$DISPLAY\fR\. +. +.TP +\fBHOMEBREW_DISPLAY_INSTALL_TIMES\fR +If set, print install times for each formula at the end of the run\. +. +.TP +\fBHOMEBREW_EDITOR\fR +Use this editor when editing a single formula, or several formulae in the same directory\. +. +.IP +\fINote:\fR \fBbrew edit\fR will open all of Homebrew as discontinuous files and directories\. Visual Studio Code can handle this correctly in project mode, but many editors will do strange things in this case\. +. +.IP +\fIDefault:\fR \fB$EDITOR\fR or \fB$VISUAL\fR\. +. +.TP +\fBHOMEBREW_FAIL_LOG_LINES\fR +Output this many lines of output on formula \fBsystem\fR failures\. +. +.IP +\fIDefault:\fR \fB15\fR\. +. +.TP +\fBHOMEBREW_FORBIDDEN_LICENSES\fR +A space\-separated list of licenses\. Homebrew will refuse to install a formula if that formula or any of its dependencies has a license on this list\. +. +.TP +\fBHOMEBREW_FORCE_BREWED_CURL\fR +If set, always use a Homebrew\-installed \fBcurl\fR(1) rather than the system version\. Automatically set if the system version of \fBcurl\fR is too old\. +. +.TP +\fBHOMEBREW_FORCE_BREWED_GIT\fR +If set, always use a Homebrew\-installed \fBgit\fR(1) rather than the system version\. Automatically set if the system version of \fBgit\fR is too old\. +. +.TP +\fBHOMEBREW_FORCE_HOMEBREW_ON_LINUX\fR +If set, running Homebrew on Linux will use URLs for macOS\. This is useful when merging pull requests for macOS while on Linux\. +. +.TP +\fBHOMEBREW_FORCE_VENDOR_RUBY\fR +If set, always use Homebrew\'s vendored, relocatable Ruby version even if the system version of Ruby is new enough\. +. +.TP +\fBHOMEBREW_GITHUB_API_PASSWORD\fR +Use this password for authentication with the GitHub API, for features such as \fBbrew search\fR\. We strongly recommend using \fBHOMEBREW_GITHUB_API_TOKEN\fR instead\. +. +.TP +\fBHOMEBREW_GITHUB_API_TOKEN\fR +Use this personal access token for the GitHub API, for features such as \fBbrew search\fR\. You can create one at \fIhttps://github\.com/settings/tokens\fR\. If set, GitHub will allow you a greater number of API requests\. For more information, see: \fIhttps://docs\.github\.com/en/rest/overview/resources\-in\-the\-rest\-api#rate\-limiting\fR\. +. +.IP +\fINote:\fR Homebrew doesn\'t require permissions for any of the scopes, but some developer commands may require additional permissions\. +. +.TP +\fBHOMEBREW_GITHUB_API_USERNAME\fR +Use this username for authentication with the GitHub API, for features such as \fBbrew search\fR\. We strongly recommend using \fBHOMEBREW_GITHUB_API_TOKEN\fR instead\. +. +.TP +\fBHOMEBREW_GIT_EMAIL\fR +Set the Git author and committer name to this value\. +. +.TP +\fBHOMEBREW_GIT_NAME\fR +Set the Git author and committer email to this value\. +. +.TP +\fBHOMEBREW_INSTALL_BADGE\fR +Print this text before the installation summary of each successful build\. +. +.IP +\fIDefault:\fR The "Beer Mug" emoji\. +. +.TP +\fBHOMEBREW_LOGS\fR +Use the specified directory to store log files\. +. +.IP +\fIDefault:\fR macOS: \fB$HOME/Library/Logs/Homebrew\fR, Linux: \fB$XDG_CACHE_HOME/Homebrew/Logs\fR or \fB$HOME/\.cache/Homebrew/Logs\fR\. +. +.TP +\fBHOMEBREW_MAKE_JOBS\fR +Use this value as the number of parallel jobs to run when building with \fBmake\fR(1)\. +. +.IP +\fIDefault:\fR The number of available CPU cores\. +. +.TP +\fBHOMEBREW_NO_ANALYTICS\fR +If set, do not send analytics\. See: \fIhttps://docs\.brew\.sh/Analytics\fR\. +. +.TP +\fBHOMEBREW_NO_AUTO_UPDATE\fR +If set, do not automatically update before running \fBbrew install\fR, \fBbrew upgrade\fR or \fBbrew tap\fR\. +. +.TP +\fBHOMEBREW_NO_BOTTLE_SOURCE_FALLBACK\fR +If set, fail on the failure of installation from a bottle rather than falling back to building from source\. +. +.TP +\fBHOMEBREW_NO_COLOR\fR +If set, do not print text with colour added\. +. +.IP +\fIDefault:\fR \fB$NO_COLOR\fR\. +. +.TP +\fBHOMEBREW_NO_COMPAT\fR +If set, disable all use of legacy compatibility code\. +. +.TP +\fBHOMEBREW_NO_EMOJI\fR +If set, do not print \fBHOMEBREW_INSTALL_BADGE\fR on a successful build\. +. +.IP +\fINote:\fR Only tries to print emoji on OS X Lion or newer\. +. +.TP +\fBHOMEBREW_NO_GITHUB_API\fR +If set, do not use the GitHub API, e\.g\. for searches or fetching relevant issues on a failed install\. +. +.TP +\fBHOMEBREW_NO_INSECURE_REDIRECT\fR +If set, forbid redirects from secure HTTPS to insecure HTTP\. +. +.IP +\fINote:\fR While ensuring your downloads are fully secure, this is likely to cause from\-source SourceForge, some GNU & GNOME based formulae to fail to download\. +. +.TP +\fBHOMEBREW_NO_INSTALL_CLEANUP\fR +If set, \fBbrew install\fR, \fBbrew upgrade\fR and \fBbrew reinstall\fR will never automatically cleanup installed/upgraded/reinstalled formulae or all formulae every 30 days\. +. +.TP +\fBHOMEBREW_PRY\fR +If set, use Pry for the \fBbrew irb\fR command\. +. +.TP +\fBHOMEBREW_SKIP_OR_LATER_BOTTLES\fR +If set with \fBHOMEBREW_DEVELOPER\fR, do not use bottles from older versions of macOS\. This is useful in development on new macOS versions\. +. +.TP +\fBHOMEBREW_SVN\fR +Use this as the \fBsvn\fR(1) binary\. +. +.IP +\fIDefault:\fR A Homebrew\-built Subversion (if installed), or the system\-provided binary\. +. +.TP +\fBHOMEBREW_TEMP\fR +Use this path as the temporary directory for building packages\. Changing this may be needed if your system temporary directory and Homebrew prefix are on different volumes, as macOS has trouble moving symlinks across volumes when the target does not yet exist\. This issue typically occurs when using FileVault or custom SSD configurations\. +. +.IP +\fIDefault:\fR macOS: \fB/private/tmp\fR, Linux: \fB/tmp\fR\. +. +.TP +\fBHOMEBREW_UPDATE_TO_TAG\fR +If set, always use the latest stable tag (even if developer commands have been run)\. +. +.TP +\fBHOMEBREW_VERBOSE\fR +If set, always assume \fB\-\-verbose\fR when running commands\. +. +.TP +\fBHOMEBREW_VERBOSE_USING_DOTS\fR +If set, verbose output will print a \fB\.\fR no more than once a minute\. This can be useful to avoid long\-running Homebrew commands being killed due to no output\. +. +.TP +\fBall_proxy\fR +Use this SOCKS5 proxy for \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\. +. +.TP +\fBftp_proxy\fR +Use this FTP proxy for \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\. +. +.TP +\fBhttp_proxy\fR +Use this HTTP proxy for \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\. +. +.TP +\fBhttps_proxy\fR +Use this HTTPS proxy for \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\. +. +.TP +\fBno_proxy\fR +A comma\-separated list of hostnames and domain names excluded from proxying by \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\. +. +.TP +\fBSUDO_ASKPASS\fR +When this variable is set, the \fB\-A\fR option is passed when calling \fBsudo\fR(8) +. +.SH "USING HOMEBREW BEHIND A PROXY" +Set the \fBhttp_proxy\fR, \fBhttps_proxy\fR, \fBall_proxy\fR, \fBftp_proxy\fR and/or \fBno_proxy\fR environment variables documented above\. +. +.P +For example, to use an unauthenticated HTTP or SOCKS5 proxy: +. +.IP "" 4 +. +.nf + +export http_proxy=http://$HOST:$PORT + +export all_proxy=socks5://$HOST:$PORT +. +.fi +. +.IP "" 0 +. +.P +And for an authenticated HTTP proxy: +. +.IP "" 4 +. +.nf + +export http_proxy=http://$USER:$PASSWORD@$HOST:$PORT +. +.fi +. +.IP "" 0 +. +.SH "SEE ALSO" +Homebrew Documentation: \fIhttps://docs\.brew\.sh\fR +. +.P +Homebrew API: \fIhttps://rubydoc\.brew\.sh\fR +. +.P +\fBgit\fR(1), \fBgit\-log\fR(1) +. +.SH "AUTHORS" +Homebrew\'s Project Leader is Mike McQuaid\. +. +.P +Homebrew\'s Project Leadership Committee is Misty De Meo, Shaun Jackman, Jonathan Chang, Sean Molenaar and Markus Reiter\. +. +.P +Homebrew\'s Technical Steering Committee is Michka Popoff, FX Coudert, Markus Reiter, Misty De Meo and Mike McQuaid\. +. +.P +Homebrew/brew\'s Linux maintainers are Michka Popoff, Shaun Jackman, Dawid Dziurla, Issy Long and Maxim Belkin\. +. +.P +Homebrew\'s other current maintainers are Claudia Pellegrino, Zach Auten, Rui Chen, Vitor Galvao, Caleb Xu, Gautham Goli, Steven Peters, Bo Anderson, William Woodruff, Igor Kapkov, Sam Ford, Alexander Bayandin, Izaak Beekman, Eric Knibbe, Viktor Szakats, Thierry Moisan, Steven Peters, Tom Schoonjans, Issy Long, CoreCode, Randall, Rylan Polster, SeekingMeaning, William Ma and Dustin Rodrigues\. +. +.P +Former maintainers with significant contributions include Jan Viljanen, JCount, commitay, Dominyk Tiller, Tim Smith, Baptiste Fontaine, Xu Cheng, Martin Afanasjew, Brett Koonce, Charlie Sharpsteen, Jack Nagel, Adam Vandenberg, Andrew Janke, Alex Dunn, neutric, Tomasz Pajor, Uladzislau Shablinski, Alyssa Ross, ilovezfs, Chongyu Zhu and Homebrew\'s creator: Max Howell\. +. +.SH "BUGS" +See our issues on GitHub: +. +.TP +\fBHomebrew/brew\fR +\fIhttps://github\.com/Homebrew/brew/issues\fR +. +.TP +\fBHomebrew/homebrew\-core\fR +\fIhttps://github\.com/Homebrew/homebrew\-core/issues\fR +. +.TP +\fBHomebrew/homebrew\-cask\fR +\fIhttps://github\.com/Homebrew/homebrew\-cask/issues\fR
true
Other
Homebrew
brew
ee5a2017c75ffeff75b4e768c4fb242339e326cd.json
dev-cmd/sh.rb: update usage banner
Library/Homebrew/dev-cmd/sh.rb
@@ -10,7 +10,7 @@ module Homebrew def sh_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - `sh` [<options>] [<commands>] + `sh` [<options>] [<script>] Homebrew build environment that uses years-battle-hardened build logic to help your `./configure && make && make install`
true
Other
Homebrew
brew
ee5a2017c75ffeff75b4e768c4fb242339e326cd.json
dev-cmd/sh.rb: update usage banner
docs/Manpage.md
@@ -1106,7 +1106,7 @@ Run a Ruby instance with Homebrew's libraries loaded, e.g. * `-e`: Execute the given text string as a script. -### `sh` [*`options`*] [*`commands`*] +### `sh` [*`options`*] [<script>] Homebrew build environment that uses years-battle-hardened build logic to help your `./configure && make && make install`
true
Other
Homebrew
brew
ee5a2017c75ffeff75b4e768c4fb242339e326cd.json
dev-cmd/sh.rb: update usage banner
manpages/brew.1
@@ -1522,851 +1522,5 @@ Load a library using \fBrequire\fR\. \fB\-e\fR Execute the given text string as a script\. . -.SS "\fBsh\fR [\fIoptions\fR] [\fIcommands\fR]" -Homebrew build environment that uses years\-battle\-hardened build logic to help your \fB\./configure && make && make install\fR and even your \fBgem install\fR succeed\. Especially handy if you run Homebrew in an Xcode\-only configuration since it adds tools like \fBmake\fR to your \fBPATH\fR which build systems would not find otherwise\. -. -.TP -\fB\-\-env\fR -Use the standard \fBPATH\fR instead of superenv\'s when \fBstd\fR is passed\. -. -.TP -\fB\-c\fR, \fB\-\-cmd\fR -Execute commands in a non\-interactive shell\. -. -.SS "\fBsponsors\fR" -Print a Markdown summary of Homebrew\'s GitHub Sponsors, suitable for pasting into a README\. -. -.SS "\fBstyle\fR [\fIoptions\fR] [\fIfile\fR|\fItap\fR|\fIformula\fR]" -Check formulae or files for conformance to Homebrew style guidelines\. -. -.P -Lists of \fIfile\fR, \fItap\fR and \fIformula\fR may not be combined\. If none are provided, \fBstyle\fR will run style checks on the whole Homebrew library, including core code and all formulae\. -. -.TP -\fB\-\-fix\fR -Fix style violations automatically using RuboCop\'s auto\-correct feature\. -. -.TP -\fB\-\-display\-cop\-names\fR -Include the RuboCop cop name for each violation in the output\. -. -.TP -\fB\-\-only\-cops\fR -Specify a comma\-separated \fIcops\fR list to check for violations of only the listed RuboCop cops\. -. -.TP -\fB\-\-except\-cops\fR -Specify a comma\-separated \fIcops\fR list to skip checking for violations of the listed RuboCop cops\. -. -.SS "\fBtap\-new\fR \fIuser\fR\fB/\fR\fIrepo\fR" -Generate the template files for a new tap\. -. -.SS "\fBtest\fR [\fIoptions\fR] \fIformula\fR" -Run the test method provided by an installed formula\. There is no standard output or return code, but generally it should notify the user if something is wrong with the installed formula\. -. -.P -\fIExample:\fR \fBbrew install jruby && brew test jruby\fR -. -.TP -\fB\-\-devel\fR -Test the development version of a formula\. -. -.TP -\fB\-\-HEAD\fR -Test the head version of a formula\. -. -.TP -\fB\-\-keep\-tmp\fR -Retain the temporary files created for the test\. -. -.TP -\fB\-\-retry\fR -Retry if a testing fails\. -. -.SS "\fBtests\fR [\fIoptions\fR]" -Run Homebrew\'s unit and integration tests\. -. -.TP -\fB\-\-coverage\fR -Generate code coverage reports\. -. -.TP -\fB\-\-generic\fR -Run only OS\-agnostic tests\. -. -.TP -\fB\-\-no\-compat\fR -Do not load the compatibility layer when running tests\. -. -.TP -\fB\-\-online\fR -Include tests that use the GitHub API and tests that use any of the taps for official external commands\. -. -.TP -\fB\-\-byebug\fR -Enable debugging using byebug\. -. -.TP -\fB\-\-only\fR -Run only \fItest_script\fR\fB_spec\.rb\fR\. Appending \fB:\fR\fIline_number\fR will start at a specific line\. -. -.TP -\fB\-\-seed\fR -Randomise tests with the specified \fIvalue\fR instead of a random seed\. -. -.SS "\fBtypecheck\fR" -Check for typechecking errors using Sorbet\. -. -.TP -\fB\-q\fR, \fB\-\-quiet\fR -Silence all non\-critical errors\. -. -.TP -\fB\-\-update\-definitions\fR -Update Tapioca gem definitions of recently bumped gems -. -.TP -\fB\-\-fail\-if\-not\-changed\fR -Return a failing status code if all gems are up to date and gem definitions do not need a tapioca update -. -.TP -\fB\-\-dir\fR -Typecheck all files in a specific directory\. -. -.TP -\fB\-\-file\fR -Typecheck a single file\. -. -.TP -\fB\-\-ignore\fR -Ignores input files that contain the given string in their paths (relative to the input path passed to Sorbet)\. -. -.SS "\fBunpack\fR [\fIoptions\fR] \fIformula\fR" -Unpack the source files for \fIformula\fR into subdirectories of the current working directory\. -. -.TP -\fB\-\-destdir\fR -Create subdirectories in the directory named by \fIpath\fR instead\. -. -.TP -\fB\-\-patch\fR -Patches for \fIformula\fR will be applied to the unpacked source\. -. -.TP -\fB\-g\fR, \fB\-\-git\fR -Initialise a Git repository in the unpacked source\. This is useful for creating patches for the software\. -. -.TP -\fB\-f\fR, \fB\-\-force\fR -Overwrite the destination directory if it already exists\. -. -.SS "\fBupdate\-license\-data\fR [\fIoptions\fR]" -Update SPDX license data in the Homebrew repository\. -. -.TP -\fB\-\-fail\-if\-not\-changed\fR -Return a failing status code if current license data\'s version is the same as the upstream\. This can be used to notify CI when the SPDX license data is out of date\. -. -.SS "\fBupdate\-python\-resources\fR [\fIoptions\fR] \fIformula\fR" -Update versions for PyPI resource blocks in \fIformula\fR\. -. -.TP -\fB\-p\fR, \fB\-\-print\-only\fR -Print the updated resource blocks instead of changing \fIformula\fR\. -. -.TP -\fB\-s\fR, \fB\-\-silent\fR -Suppress any output\. -. -.TP -\fB\-\-ignore\-non\-pypi\-packages\fR -Don\'t fail if \fIformula\fR is not a PyPI package\. -. -.TP -\fB\-\-version\fR -Use the specified \fIversion\fR when finding resources for \fIformula\fR\. If no version is specified, the current version for \fIformula\fR will be used\. -. -.SS "\fBupdate\-test\fR [\fIoptions\fR]" -Run a test of \fBbrew update\fR with a new repository clone\. If no options are passed, use \fBorigin/master\fR as the start commit\. -. -.TP -\fB\-\-to\-tag\fR -Set \fBHOMEBREW_UPDATE_TO_TAG\fR to test updating between tags\. -. -.TP -\fB\-\-keep\-tmp\fR -Retain the temporary directory containing the new repository clone\. -. -.TP -\fB\-\-commit\fR -Use the specified \fIcommit\fR as the start commit\. -. -.TP -\fB\-\-before\fR -Use the commit at the specified \fIdate\fR as the start commit\. -. -.SS "\fBvendor\-gems\fR" -Install and commit Homebrew\'s vendored gems\. -. -.SH "GLOBAL OPTIONS" -These options are applicable across multiple subcommands\. -. -.TP -\fB\-d\fR, \fB\-\-debug\fR -Display any debugging information\. -. -.TP -\fB\-q\fR, \fB\-\-quiet\fR -Suppress any warnings\. -. -.TP -\fB\-v\fR, \fB\-\-verbose\fR -Make some output more verbose\. -. -.TP -\fB\-h\fR, \fB\-\-help\fR -Show this message\. -. -.SH "OFFICIAL EXTERNAL COMMANDS" -. -.SS "\fBbundle\fR [\fIsubcommand\fR]" -Bundler for non\-Ruby dependencies from Homebrew, Homebrew Cask, Mac App Store and Whalebrew\. -. -.P -\fBbrew bundle\fR [\fBinstall\fR] - Install and upgrade (by default) all dependencies from the \fBBrewfile\fR\. -. -.P -You can skip the installation of dependencies by adding space\-separated values to one or more of the following environment variables: \fBHOMEBREW_BUNDLE_BREW_SKIP\fR, \fBHOMEBREW_BUNDLE_CASK_SKIP\fR, \fBHOMEBREW_BUNDLE_MAS_SKIP\fR, \fBHOMEBREW_BUNDLE_WHALEBREW_SKIP\fR, \fBHOMEBREW_BUNDLE_TAP_SKIP\fR -. -.P -\fBbrew bundle\fR will output a \fBBrewfile\.lock\.json\fR in the same directory as the \fBBrewfile\fR if all dependencies are installed successfully\. This contains dependency and system status information which can be useful in debugging \fBbrew bundle\fR failures and replicating a "last known good build" state\. You can opt\-out of this behaviour by setting the \fBHOMEBREW_BUNDLE_NO_LOCK\fR environment variable or passing the \fB\-\-no\-lock\fR option\. You may wish to check this file into the same version control system as your \fBBrewfile\fR (or ensure your version control system ignores it if you\'d prefer to rely on debugging information from a local machine)\. -. -.P -\fBbrew bundle dump\fR - Write all installed casks/formulae/images/taps into a \fBBrewfile\fR\. -. -.P -\fBbrew bundle cleanup\fR - Uninstall all dependencies not listed from the \fBBrewfile\fR\. -. -.P -This workflow is useful for maintainers or testers who regularly install lots of formulae\. -. -.P -\fBbrew bundle check\fR - Check if all dependencies are installed from the \fBBrewfile\fR \. -. -.P -This provides a successful exit code if everything is up\-to\-date, making it useful for scripting\. -. -.P -\fBbrew bundle list\fR - List all dependencies present in a \fBBrewfile\fR\. -. -.P -By default, only Homebrew dependencies are listed\. -. -.P -\fBbrew bundle exec\fR \fIcommand\fR - Run an external command in an isolated build environment based on the \fBBrewfile\fR dependencies\. -. -.P -This sanitized build environment ignores unrequested dependencies, which makes sure that things you didn\'t specify in your \fBBrewfile\fR won\'t get picked up by commands like \fBbundle install\fR, \fBnpm install\fR, etc\. It will also add compiler flags which will help find keg\-only dependencies like \fBopenssl\fR, \fBicu4c\fR, etc\. -. -.TP -\fB\-\-file\fR -Read the \fBBrewfile\fR from this location\. Use \fB\-\-file=\-\fR to pipe to stdin/stdout\. -. -.TP -\fB\-\-global\fR -Read the \fBBrewfile\fR from \fB~/\.Brewfile\fR\. -. -.TP -\fB\-v\fR, \fB\-\-verbose\fR -\fBinstall\fR prints output from commands as they are run\. \fBcheck\fR lists all missing dependencies\. -. -.TP -\fB\-\-no\-upgrade\fR -\fBinstall\fR won\'t run \fBbrew upgrade\fR on outdated dependencies\. Note they may still be upgraded by \fBbrew install\fR if needed\. -. -.TP -\fB\-f\fR, \fB\-\-force\fR -\fBdump\fR overwrites an existing \fBBrewfile\fR\. \fBcleanup\fR actually performs its cleanup operations\. -. -.TP -\fB\-\-no\-lock\fR -\fBinstall\fR won\'t output a \fBBrewfile\.lock\.json\fR\. -. -.TP -\fB\-\-all\fR -\fBlist\fR all dependencies\. -. -.TP -\fB\-\-formula\fR -\fBlist\fR Homebrew dependencies\. -. -.TP -\fB\-\-cask\fR -\fBlist\fR Homebrew Cask dependencies\. -. -.TP -\fB\-\-tap\fR -\fBlist\fR tap dependencies\. -. -.TP -\fB\-\-mas\fR -\fBlist\fR Mac App Store dependencies\. -. -.TP -\fB\-\-whalebrew\fR -\fBlist\fR Whalebrew dependencies\. -. -.TP -\fB\-\-describe\fR -\fBdump\fR adds a description comment above each line, unless the dependency does not have a description\. -. -.TP -\fB\-\-no\-restart\fR -\fBdump\fR does not add \fBrestart_service\fR to formula lines\. -. -.TP -\fB\-\-zap\fR -\fBcleanup\fR casks using the \fBzap\fR command instead of \fBuninstall\fR\. -. -.SS "\fBservices\fR [\fIsubcommand\fR]" -Manage background services with macOS\' \fBlaunchctl\fR(1) daemon manager\. -. -.P -If \fBsudo\fR is passed, operate on \fB/Library/LaunchDaemons\fR (started at boot)\. Otherwise, operate on \fB~/Library/LaunchAgents\fR (started at login)\. -. -.P -[\fBsudo\fR] \fBbrew services\fR [\fBlist\fR] - List all managed services for the current user (or root)\. -. -.P -[\fBsudo\fR] \fBbrew services run\fR (\fIformula\fR|\fB\-\-all\fR) - Run the service \fIformula\fR without registering to launch at login (or boot)\. -. -.P -[\fBsudo\fR] \fBbrew services start\fR (\fIformula\fR|\fB\-\-all\fR) - Start the service \fIformula\fR immediately and register it to launch at login (or boot)\. -. -.P -[\fBsudo\fR] \fBbrew services stop\fR (\fIformula\fR|\fB\-\-all\fR) - Stop the service \fIformula\fR immediately and unregister it from launching at login (or boot)\. -. -.P -[\fBsudo\fR] \fBbrew services restart\fR (\fIformula\fR|\fB\-\-all\fR) - Stop (if necessary) and start the service \fIformula\fR immediately and register it to launch at login (or boot)\. -. -.P -[\fBsudo\fR] \fBbrew services cleanup\fR - Remove all unused services\. -. -.TP -\fB\-\-all\fR -Run \fIsubcommand\fR on all services\. -. -.SS "\fBtest\-bot\fR [\fIoptions\fR] [\fIformula\fR]:" -Tests the full lifecycle of a Homebrew change to a tap (Git repository)\. For example, for a GitHub Actions pull request that changes a formula \fBbrew test\-bot\fR will ensure the system is cleaned and setup to test the formula, install the formula, run various tests and checks on it, bottle (package) the binaries and test formulae that depend on it to ensure they aren\'t broken by these changes\. -. -.P -Only supports GitHub Actions as a CI provider\. This is because Homebrew uses GitHub Actions and it\'s freely available for public and private use with macOS and Linux workers\. -. -.TP -\fB\-\-dry\-run\fR -print what would be done rather than doing it\. -. -.TP -\fB\-\-cleanup\fR -clean all state from the Homebrew directory\. Use with care! -. -.TP -\fB\-\-skip\-setup\fR -don\'t check if the local system is set up correctly\. -. -.TP -\fB\-\-keep\-old\fR -run \fBbrew bottle \-\-keep\-old\fR to build new bottles for a single platform\. -. -.TP -\fB\-\-skip\-relocation\fR -run \fBbrew bottle \-\-skip\-relocation\fR to build new bottles that don\'t require relocation\. -. -.TP -\fB\-\-local\fR -ask Homebrew to write verbose logs under \fB\./logs/\fR and set \fB$HOME\fR to \fB\./home/\fR -. -.TP -\fB\-\-tap\fR -use the \fBgit\fR repository of the given tap\. Defaults to the core tap for syntax checking\. -. -.TP -\fB\-\-fail\-fast\fR -immediately exit on a failing step\. -. -.TP -\fB\-v\fR, \fB\-\-verbose\fR -print test step output in real time\. Has the side effect of passing output as raw bytes instead of re\-encoding in UTF\-8\. -. -.TP -\fB\-\-test\-default\-formula\fR -use a default testing formula when not building a tap and no other formulae are specified\. -. -.TP -\fB\-\-bintray\-org\fR -upload to the given Bintray organisation\. -. -.TP -\fB\-\-root\-url\fR -use the specified \fIURL\fR as the root of the bottle\'s URL instead of Homebrew\'s default\. -. -.TP -\fB\-\-git\-name\fR -set the Git author/committer names to the given name\. -. -.TP -\fB\-\-git\-email\fR -set the Git author/committer email to the given email\. -. -.TP -\fB\-\-ci\-upload\fR -use the Homebrew CI bottle upload options\. -. -.TP -\fB\-\-publish\fR -publish the uploaded bottles\. -. -.TP -\fB\-\-skip\-recursive\-dependents\fR -only test the direct dependents\. -. -.TP -\fB\-\-only\-cleanup\-before\fR -Only run the pre\-cleanup step\. Needs \fB\-\-cleanup\fR\. -. -.TP -\fB\-\-only\-setup\fR -Only run the local system setup check step\. -. -.TP -\fB\-\-only\-tap\-syntax\fR -Only run the tap syntax check step\. -. -.TP -\fB\-\-only\-formulae\fR -Only run the formulae steps\. -. -.TP -\fB\-\-only\-cleanup\-after\fR -Only run the post\-cleanup step\. Needs \fB\-\-cleanup\fR\. -. -.SH "CUSTOM EXTERNAL COMMANDS" -Homebrew, like \fBgit\fR(1), supports external commands\. These are executable scripts that reside somewhere in the \fBPATH\fR, named \fBbrew\-\fR\fIcmdname\fR or \fBbrew\-\fR\fIcmdname\fR\fB\.rb\fR, which can be invoked like \fBbrew\fR \fIcmdname\fR\. This allows you to create your own commands without modifying Homebrew\'s internals\. -. -.P -Instructions for creating your own commands can be found in the docs: \fIhttps://docs\.brew\.sh/External\-Commands\fR -. -.SH "SPECIFYING FORMULAE" -Many Homebrew commands accept one or more \fIformula\fR arguments\. These arguments can take several different forms: -. -.TP -The name of a formula -e\.g\. \fBgit\fR, \fBnode\fR, \fBwget\fR\. -. -.TP -The fully\-qualified name of a tapped formula -Sometimes a formula from a tapped repository may conflict with one in \fBhomebrew/core\fR\. You can still access these formulae by using a special syntax, e\.g\. \fBhomebrew/dupes/vim\fR or \fBhomebrew/versions/node4\fR\. -. -.TP -An arbitrary file -Homebrew can install formulae from a local path\. It can point to either a formula file or a bottle\. -. -.SH "SPECIFYING CASKS" -Many Homebrew Cask commands accept one or more \fIcask\fR arguments\. These can be specified the same way as the \fIformula\fR arguments described in \fBSPECIFYING FORMULAE\fR above\. -. -.SH "ENVIRONMENT" -Note that environment variables must have a value set to be detected\. For example, run \fBexport HOMEBREW_NO_INSECURE_REDIRECT=1\fR rather than just \fBexport HOMEBREW_NO_INSECURE_REDIRECT\fR\. -. -.TP -\fBHOMEBREW_ARCH\fR -Linux only: Pass the set value to a type name representing the compiler\'s \fB\-march\fR option\. -. -.IP -\fIDefault:\fR \fBnative\fR\. -. -.TP -\fBHOMEBREW_ARTIFACT_DOMAIN\fR -Prefix all download URLs, including those for bottles, with this variable\. For example, \fBHOMEBREW_ARTIFACT_DOMAIN=http://localhost:8080\fR will cause a formula with the URL \fBhttps://example\.com/foo\.tar\.gz\fR to instead download from \fBhttp://localhost:8080/example\.com/foo\.tar\.gz\fR\. -. -.TP -\fBHOMEBREW_AUTO_UPDATE_SECS\fR -Automatically check for updates once per this seconds interval\. -. -.IP -\fIDefault:\fR \fB300\fR\. -. -.TP -\fBHOMEBREW_BAT\fR -If set, use \fBbat\fR for the \fBbrew cat\fR command\. -. -.TP -\fBHOMEBREW_BAT_CONFIG_PATH\fR -Use the \fBbat\fR configuration file\. For example, \fBHOMEBREW_BAT=$HOME/\.bat/config\fR\. -. -.IP -\fIDefault:\fR $HOME/\.bat/config -. -.TP -\fBHOMEBREW_BINTRAY_KEY\fR -Use this API key when accessing the Bintray API (where bottles are stored)\. -. -.TP -\fBHOMEBREW_BINTRAY_USER\fR -Use this username when accessing the Bintray API (where bottles are stored)\. -. -.TP -\fBHOMEBREW_BOTTLE_DOMAIN\fR -Use the specified URL as the download mirror for bottles\. For example, \fBHOMEBREW_BOTTLE_DOMAIN=http://localhost:8080\fR will cause all bottles to download from the prefix \fBhttp://localhost:8080/\fR\. -. -.IP -\fIDefault:\fR macOS: \fBhttps://homebrew\.bintray\.com/\fR, Linux: \fBhttps://linuxbrew\.bintray\.com/\fR\. -. -.TP -\fBHOMEBREW_BREW_GIT_REMOTE\fR -Use the specified URL as the Homebrew/brew \fBgit\fR(1) remote\. -. -.IP -\fIDefault:\fR \fBhttps://github\.com/Homebrew/brew\fR\. -. -.TP -\fBHOMEBREW_BROWSER\fR -Use this as the browser when opening project homepages\. -. -.IP -\fIDefault:\fR \fB$BROWSER\fR or the OS\'s default browser\. -. -.TP -\fBHOMEBREW_CACHE\fR -Use the specified directory as the download cache\. -. -.IP -\fIDefault:\fR macOS: \fB$HOME/Library/Caches/Homebrew\fR, Linux: \fB$XDG_CACHE_HOME/Homebrew\fR or \fB$HOME/\.cache/Homebrew\fR\. -. -.TP -\fBHOMEBREW_CASK_OPTS\fR -Options which should be used for all \fBcask\fR commands\. All \fB\-\-*dir\fR options, \fB\-\-language\fR, \fB\-\-require\-sha\fR, \fB\-\-no\-quarantine\fR and \fB\-\-no\-binaries\fR are supported\. For example, you might add something like the following to your ~/\.profile, ~/\.bash_profile, or ~/\.zshenv: -. -.P -\fBexport HOMEBREW_CASK_OPTS=\'\-\-appdir=~/Applications \-\-fontdir=/Library/Fonts\'\fR -. -.TP -\fBHOMEBREW_CLEANUP_MAX_AGE_DAYS\fR -Cleanup all cached files older than this many days\. -. -.IP -\fIDefault:\fR \fB120\fR\. -. -.TP -\fBHOMEBREW_COLOR\fR -If set, force colour output on non\-TTY outputs\. -. -.TP -\fBHOMEBREW_CORE_GIT_REMOTE\fR -Use the specified URL as the Homebrew/homebrew\-core \fBgit\fR(1) remote\. -. -.IP -\fIDefault:\fR macOS: \fBhttps://github\.com/Homebrew/homebrew\-core\fR, Linux: \fBhttps://github\.com/Homebrew/linuxbrew\-core\fR\. -. -.TP -\fBHOMEBREW_CURLRC\fR -If set, do not pass \fB\-\-disable\fR when invoking \fBcurl\fR(1), which disables the use of \fBcurlrc\fR\. -. -.TP -\fBHOMEBREW_CURL_RETRIES\fR -Pass the given retry count to \fB\-\-retry\fR when invoking \fBcurl\fR(1)\. -. -.IP -\fIDefault:\fR \fB3\fR\. -. -.TP -\fBHOMEBREW_CURL_VERBOSE\fR -If set, pass \fB\-\-verbose\fR when invoking \fBcurl\fR(1)\. -. -.TP -\fBHOMEBREW_DEVELOPER\fR -If set, tweak behaviour to be more relevant for Homebrew developers (active or budding) by e\.g\. turning warnings into errors\. -. -.TP -\fBHOMEBREW_DISABLE_LOAD_FORMULA\fR -If set, refuse to load formulae\. This is useful when formulae are not trusted (such as in pull requests)\. -. -.TP -\fBHOMEBREW_DISPLAY\fR -Use this X11 display when opening a page in a browser, for example with \fBbrew home\fR\. Primarily useful on Linux\. -. -.IP -\fIDefault:\fR \fB$DISPLAY\fR\. -. -.TP -\fBHOMEBREW_DISPLAY_INSTALL_TIMES\fR -If set, print install times for each formula at the end of the run\. -. -.TP -\fBHOMEBREW_EDITOR\fR -Use this editor when editing a single formula, or several formulae in the same directory\. -. -.IP -\fINote:\fR \fBbrew edit\fR will open all of Homebrew as discontinuous files and directories\. Visual Studio Code can handle this correctly in project mode, but many editors will do strange things in this case\. -. -.IP -\fIDefault:\fR \fB$EDITOR\fR or \fB$VISUAL\fR\. -. -.TP -\fBHOMEBREW_FAIL_LOG_LINES\fR -Output this many lines of output on formula \fBsystem\fR failures\. -. -.IP -\fIDefault:\fR \fB15\fR\. -. -.TP -\fBHOMEBREW_FORBIDDEN_LICENSES\fR -A space\-separated list of licenses\. Homebrew will refuse to install a formula if that formula or any of its dependencies has a license on this list\. -. -.TP -\fBHOMEBREW_FORCE_BREWED_CURL\fR -If set, always use a Homebrew\-installed \fBcurl\fR(1) rather than the system version\. Automatically set if the system version of \fBcurl\fR is too old\. -. -.TP -\fBHOMEBREW_FORCE_BREWED_GIT\fR -If set, always use a Homebrew\-installed \fBgit\fR(1) rather than the system version\. Automatically set if the system version of \fBgit\fR is too old\. -. -.TP -\fBHOMEBREW_FORCE_HOMEBREW_ON_LINUX\fR -If set, running Homebrew on Linux will use URLs for macOS\. This is useful when merging pull requests for macOS while on Linux\. -. -.TP -\fBHOMEBREW_FORCE_VENDOR_RUBY\fR -If set, always use Homebrew\'s vendored, relocatable Ruby version even if the system version of Ruby is new enough\. -. -.TP -\fBHOMEBREW_GITHUB_API_PASSWORD\fR -Use this password for authentication with the GitHub API, for features such as \fBbrew search\fR\. We strongly recommend using \fBHOMEBREW_GITHUB_API_TOKEN\fR instead\. -. -.TP -\fBHOMEBREW_GITHUB_API_TOKEN\fR -Use this personal access token for the GitHub API, for features such as \fBbrew search\fR\. You can create one at \fIhttps://github\.com/settings/tokens\fR\. If set, GitHub will allow you a greater number of API requests\. For more information, see: \fIhttps://docs\.github\.com/en/rest/overview/resources\-in\-the\-rest\-api#rate\-limiting\fR\. -. -.IP -\fINote:\fR Homebrew doesn\'t require permissions for any of the scopes, but some developer commands may require additional permissions\. -. -.TP -\fBHOMEBREW_GITHUB_API_USERNAME\fR -Use this username for authentication with the GitHub API, for features such as \fBbrew search\fR\. We strongly recommend using \fBHOMEBREW_GITHUB_API_TOKEN\fR instead\. -. -.TP -\fBHOMEBREW_GIT_EMAIL\fR -Set the Git author and committer name to this value\. -. -.TP -\fBHOMEBREW_GIT_NAME\fR -Set the Git author and committer email to this value\. -. -.TP -\fBHOMEBREW_INSTALL_BADGE\fR -Print this text before the installation summary of each successful build\. -. -.IP -\fIDefault:\fR The "Beer Mug" emoji\. -. -.TP -\fBHOMEBREW_LOGS\fR -Use the specified directory to store log files\. -. -.IP -\fIDefault:\fR macOS: \fB$HOME/Library/Logs/Homebrew\fR, Linux: \fB$XDG_CACHE_HOME/Homebrew/Logs\fR or \fB$HOME/\.cache/Homebrew/Logs\fR\. -. -.TP -\fBHOMEBREW_MAKE_JOBS\fR -Use this value as the number of parallel jobs to run when building with \fBmake\fR(1)\. -. -.IP -\fIDefault:\fR The number of available CPU cores\. -. -.TP -\fBHOMEBREW_NO_ANALYTICS\fR -If set, do not send analytics\. See: \fIhttps://docs\.brew\.sh/Analytics\fR\. -. -.TP -\fBHOMEBREW_NO_AUTO_UPDATE\fR -If set, do not automatically update before running \fBbrew install\fR, \fBbrew upgrade\fR or \fBbrew tap\fR\. -. -.TP -\fBHOMEBREW_NO_BOTTLE_SOURCE_FALLBACK\fR -If set, fail on the failure of installation from a bottle rather than falling back to building from source\. -. -.TP -\fBHOMEBREW_NO_COLOR\fR -If set, do not print text with colour added\. -. -.IP -\fIDefault:\fR \fB$NO_COLOR\fR\. -. -.TP -\fBHOMEBREW_NO_COMPAT\fR -If set, disable all use of legacy compatibility code\. -. -.TP -\fBHOMEBREW_NO_EMOJI\fR -If set, do not print \fBHOMEBREW_INSTALL_BADGE\fR on a successful build\. -. -.IP -\fINote:\fR Only tries to print emoji on OS X Lion or newer\. -. -.TP -\fBHOMEBREW_NO_GITHUB_API\fR -If set, do not use the GitHub API, e\.g\. for searches or fetching relevant issues on a failed install\. -. -.TP -\fBHOMEBREW_NO_INSECURE_REDIRECT\fR -If set, forbid redirects from secure HTTPS to insecure HTTP\. -. -.IP -\fINote:\fR While ensuring your downloads are fully secure, this is likely to cause from\-source SourceForge, some GNU & GNOME based formulae to fail to download\. -. -.TP -\fBHOMEBREW_NO_INSTALL_CLEANUP\fR -If set, \fBbrew install\fR, \fBbrew upgrade\fR and \fBbrew reinstall\fR will never automatically cleanup installed/upgraded/reinstalled formulae or all formulae every 30 days\. -. -.TP -\fBHOMEBREW_PRY\fR -If set, use Pry for the \fBbrew irb\fR command\. -. -.TP -\fBHOMEBREW_SKIP_OR_LATER_BOTTLES\fR -If set with \fBHOMEBREW_DEVELOPER\fR, do not use bottles from older versions of macOS\. This is useful in development on new macOS versions\. -. -.TP -\fBHOMEBREW_SVN\fR -Use this as the \fBsvn\fR(1) binary\. -. -.IP -\fIDefault:\fR A Homebrew\-built Subversion (if installed), or the system\-provided binary\. -. -.TP -\fBHOMEBREW_TEMP\fR -Use this path as the temporary directory for building packages\. Changing this may be needed if your system temporary directory and Homebrew prefix are on different volumes, as macOS has trouble moving symlinks across volumes when the target does not yet exist\. This issue typically occurs when using FileVault or custom SSD configurations\. -. -.IP -\fIDefault:\fR macOS: \fB/private/tmp\fR, Linux: \fB/tmp\fR\. -. -.TP -\fBHOMEBREW_UPDATE_TO_TAG\fR -If set, always use the latest stable tag (even if developer commands have been run)\. -. -.TP -\fBHOMEBREW_VERBOSE\fR -If set, always assume \fB\-\-verbose\fR when running commands\. -. -.TP -\fBHOMEBREW_VERBOSE_USING_DOTS\fR -If set, verbose output will print a \fB\.\fR no more than once a minute\. This can be useful to avoid long\-running Homebrew commands being killed due to no output\. -. -.TP -\fBall_proxy\fR -Use this SOCKS5 proxy for \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\. -. -.TP -\fBftp_proxy\fR -Use this FTP proxy for \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\. -. -.TP -\fBhttp_proxy\fR -Use this HTTP proxy for \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\. -. -.TP -\fBhttps_proxy\fR -Use this HTTPS proxy for \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\. -. -.TP -\fBno_proxy\fR -A comma\-separated list of hostnames and domain names excluded from proxying by \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\. -. -.TP -\fBSUDO_ASKPASS\fR -When this variable is set, the \fB\-A\fR option is passed when calling \fBsudo\fR(8) -. -.SH "USING HOMEBREW BEHIND A PROXY" -Set the \fBhttp_proxy\fR, \fBhttps_proxy\fR, \fBall_proxy\fR, \fBftp_proxy\fR and/or \fBno_proxy\fR environment variables documented above\. -. -.P -For example, to use an unauthenticated HTTP or SOCKS5 proxy: -. -.IP "" 4 -. -.nf - -export http_proxy=http://$HOST:$PORT - -export all_proxy=socks5://$HOST:$PORT -. -.fi -. -.IP "" 0 -. -.P -And for an authenticated HTTP proxy: -. -.IP "" 4 -. -.nf - -export http_proxy=http://$USER:$PASSWORD@$HOST:$PORT -. -.fi -. -.IP "" 0 -. -.SH "SEE ALSO" -Homebrew Documentation: \fIhttps://docs\.brew\.sh\fR -. -.P -Homebrew API: \fIhttps://rubydoc\.brew\.sh\fR -. -.P -\fBgit\fR(1), \fBgit\-log\fR(1) -. -.SH "AUTHORS" -Homebrew\'s Project Leader is Mike McQuaid\. -. -.P -Homebrew\'s Project Leadership Committee is Misty De Meo, Shaun Jackman, Jonathan Chang, Sean Molenaar and Markus Reiter\. -. -.P -Homebrew\'s Technical Steering Committee is Michka Popoff, FX Coudert, Markus Reiter, Misty De Meo and Mike McQuaid\. -. -.P -Homebrew/brew\'s Linux maintainers are Michka Popoff, Shaun Jackman, Dawid Dziurla, Issy Long and Maxim Belkin\. -. -.P -Homebrew\'s other current maintainers are Claudia Pellegrino, Zach Auten, Rui Chen, Vitor Galvao, Caleb Xu, Gautham Goli, Steven Peters, Bo Anderson, William Woodruff, Igor Kapkov, Sam Ford, Alexander Bayandin, Izaak Beekman, Eric Knibbe, Viktor Szakats, Thierry Moisan, Steven Peters, Tom Schoonjans, Issy Long, CoreCode, Randall, Rylan Polster, SeekingMeaning, William Ma and Dustin Rodrigues\. -. -.P -Former maintainers with significant contributions include Jan Viljanen, JCount, commitay, Dominyk Tiller, Tim Smith, Baptiste Fontaine, Xu Cheng, Martin Afanasjew, Brett Koonce, Charlie Sharpsteen, Jack Nagel, Adam Vandenberg, Andrew Janke, Alex Dunn, neutric, Tomasz Pajor, Uladzislau Shablinski, Alyssa Ross, ilovezfs, Chongyu Zhu and Homebrew\'s creator: Max Howell\. -. -.SH "BUGS" -See our issues on GitHub: -. -.TP -\fBHomebrew/brew\fR -\fIhttps://github\.com/Homebrew/brew/issues\fR -. -.TP -\fBHomebrew/homebrew\-core\fR -\fIhttps://github\.com/Homebrew/homebrew\-core/issues\fR -. -.TP -\fBHomebrew/homebrew\-cask\fR -\fIhttps://github\.com/Homebrew/homebrew\-cask/issues\fR +.SS "\fBsh\fR [\fIoptions\fR] [<script>] <p>Homebrew build environment that uses years\-battle\-hardened build logic to help your \fB\./configure && make && make install\fR and even your \fBgem install\fR succeed\. Especially handy if you run Homebrew in an Xcode\-only configuration since it adds tools like \fBmake\fR to your \fBPATH\fR which build systems would not find otherwise\.</p> <ul> <li>\fB\-\-env\fR: Use the standard \fBPATH\fR instead of superenv\'s when \fBstd\fR is passed\.</li> <li>\fB\-c\fR, \fB\-\-cmd\fR: Execute commands in a non\-interactive shell\.</li> </ul> <h3>\fBsponsors\fR</h3> <p>Print a Markdown summary of Homebrew\'s GitHub Sponsors, suitable for pasting into a README\.</p> <h3>\fBstyle\fR [\fIoptions\fR] [\fIfile\fR|\fItap\fR|\fIformula\fR]</h3> <p>Check formulae or files for conformance to Homebrew style guidelines\.</p> <p>Lists of \fIfile\fR, \fItap\fR and \fIformula\fR may not be combined\. If none are provided, \fBstyle\fR will run style checks on the whole Homebrew library, including core code and all formulae\.</p> <ul> <li>\fB\-\-fix\fR: Fix style violations automatically using RuboCop\'s auto\-correct feature\.</li> <li>\fB\-\-display\-cop\-names\fR: Include the RuboCop cop name for each violation in the output\.</li> <li>\fB\-\-only\-cops\fR: Specify a comma\-separated \fIcops\fR list to check for violations of only the listed RuboCop cops\.</li> <li>\fB\-\-except\-cops\fR: Specify a comma\-separated \fIcops\fR list to skip checking for violations of the listed RuboCop cops\.</li> </ul> <h3>\fBtap\-new\fR \fIuser\fR\fB/\fR\fIrepo\fR</h3> <p>Generate the template files for a new tap\.</p> <h3>\fBtest\fR [\fIoptions\fR] \fIformula\fR</h3> <p>Run the test method provided by an installed formula\. There is no standard output or return code, but generally it should notify the user if something is wrong with the installed formula\.</p> <p><em>Example:</em> \fBbrew install jruby && brew test jruby\fR</p> <ul> <li>\fB\-\-devel\fR: Test the development version of a formula\.</li> <li>\fB\-\-HEAD\fR: Test the head version of a formula\.</li> <li>\fB\-\-keep\-tmp\fR: Retain the temporary files created for the test\.</li> <li>\fB\-\-retry\fR: Retry if a testing fails\.</li> </ul> <h3>\fBtests\fR [\fIoptions\fR]</h3> <p>Run Homebrew\'s unit and integration tests\.</p> <ul> <li>\fB\-\-coverage\fR: Generate code coverage reports\.</li> <li>\fB\-\-generic\fR: Run only OS\-agnostic tests\.</li> <li>\fB\-\-no\-compat\fR: Do not load the compatibility layer when running tests\.</li> <li>\fB\-\-online\fR: Include tests that use the GitHub API and tests that use any of the taps for official external commands\.</li> <li>\fB\-\-byebug\fR: Enable debugging using byebug\.</li> <li>\fB\-\-only\fR: Run only \fItest_script\fR\fB_spec\.rb\fR\. Appending \fB:\fR\fIline_number\fR will start at a specific line\.</li> <li>\fB\-\-seed\fR: Randomise tests with the specified \fIvalue\fR instead of a random seed\.</li> </ul> <h3>\fBtypecheck\fR</h3> <p>Check for typechecking errors using Sorbet\.</p> <ul> <li>\fB\-q\fR, \fB\-\-quiet\fR: Silence all non\-critical errors\.</li> <li>\fB\-\-update\-definitions\fR: Update Tapioca gem definitions of recently bumped gems</li> <li>\fB\-\-fail\-if\-not\-changed\fR: Return a failing status code if all gems are up to date and gem definitions do not need a tapioca update</li> <li>\fB\-\-dir\fR: Typecheck all files in a specific directory\.</li> <li>\fB\-\-file\fR: Typecheck a single file\.</li> <li>\fB\-\-ignore\fR: Ignores input files that contain the given string in their paths (relative to the input path passed to Sorbet)\.</li> </ul> <h3>\fBunpack\fR [\fIoptions\fR] \fIformula\fR</h3> <p>Unpack the source files for \fIformula\fR into subdirectories of the current working directory\.</p> <ul> <li>\fB\-\-destdir\fR: Create subdirectories in the directory named by \fIpath\fR instead\.</li> <li>\fB\-\-patch\fR: Patches for \fIformula\fR will be applied to the unpacked source\.</li> <li>\fB\-g\fR, \fB\-\-git\fR: Initialise a Git repository in the unpacked source\. This is useful for creating patches for the software\.</li> <li>\fB\-f\fR, \fB\-\-force\fR: Overwrite the destination directory if it already exists\.</li> </ul> <h3>\fBupdate\-license\-data\fR [\fIoptions\fR]</h3> <p> Update SPDX license data in the Homebrew repository\.</p> <ul> <li>\fB\-\-fail\-if\-not\-changed\fR: Return a failing status code if current license data\'s version is the same as the upstream\. This can be used to notify CI when the SPDX license data is out of date\.</li> </ul> <h3>\fBupdate\-python\-resources\fR [\fIoptions\fR] \fIformula\fR</h3> <p>Update versions for PyPI resource blocks in \fIformula\fR\.</p> <ul> <li>\fB\-p\fR, \fB\-\-print\-only\fR: Print the updated resource blocks instead of changing \fIformula\fR\.</li> <li>\fB\-s\fR, \fB\-\-silent\fR: Suppress any output\.</li> <li>\fB\-\-ignore\-non\-pypi\-packages\fR: Don\'t fail if \fIformula\fR is not a PyPI package\.</li> <li>\fB\-\-version\fR: Use the specified \fIversion\fR when finding resources for \fIformula\fR\. If no version is specified, the current version for \fIformula\fR will be used\.</li> </ul> <h3>\fBupdate\-test\fR [\fIoptions\fR]</h3> <p>Run a test of \fBbrew update\fR with a new repository clone\. If no options are passed, use \fBorigin/master\fR as the start commit\.</p> <ul> <li>\fB\-\-to\-tag\fR: Set \fBHOMEBREW_UPDATE_TO_TAG\fR to test updating between tags\.</li> <li>\fB\-\-keep\-tmp\fR: Retain the temporary directory containing the new repository clone\.</li> <li>\fB\-\-commit\fR: Use the specified \fIcommit\fR as the start commit\.</li> <li>\fB\-\-before\fR: Use the commit at the specified \fIdate\fR as the start commit\.</li> </ul> <h3>\fBvendor\-gems\fR</h3> <p>Install and commit Homebrew\'s vendored gems\.</p> <h2>GLOBAL OPTIONS</h2> <p>These options are applicable across multiple subcommands\.</p> <ul> <li><p>\fB\-d\fR, \fB\-\-debug\fR: Display any debugging information\.</p></li> <li><p>\fB\-q\fR, \fB\-\-quiet\fR: Suppress any warnings\.</p></li> <li><p>\fB\-v\fR, \fB\-\-verbose\fR: Make some output more verbose\.</p></li> <li><p>\fB\-h\fR, \fB\-\-help\fR: Show this message\.</p></li> </ul> <h2>OFFICIAL EXTERNAL COMMANDS</h2> <h3>\fBbundle\fR [\fIsubcommand\fR]</h3> <p>Bundler for non\-Ruby dependencies from Homebrew, Homebrew Cask, Mac App Store and Whalebrew\.</p> <p>\fBbrew bundle\fR [\fBinstall\fR]: Install and upgrade (by default) all dependencies from the \fBBrewfile\fR\.</p> <p>You can skip the installation of dependencies by adding space\-separated values to one or more of the following environment variables: \fBHOMEBREW_BUNDLE_BREW_SKIP\fR, \fBHOMEBREW_BUNDLE_CASK_SKIP\fR, \fBHOMEBREW_BUNDLE_MAS_SKIP\fR, \fBHOMEBREW_BUNDLE_WHALEBREW_SKIP\fR, \fBHOMEBREW_BUNDLE_TAP_SKIP\fR</p> <p>\fBbrew bundle\fR will output a \fBBrewfile\.lock\.json\fR in the same directory as the \fBBrewfile\fR if all dependencies are installed successfully\. This contains dependency and system status information which can be useful in debugging \fBbrew bundle\fR failures and replicating a \"last known good build\" state\. You can opt\-out of this behaviour by setting the \fBHOMEBREW_BUNDLE_NO_LOCK\fR environment variable or passing the \fB\-\-no\-lock\fR option\. You may wish to check this file into the same version control system as your \fBBrewfile\fR (or ensure your version control system ignores it if you\'d prefer to rely on debugging information from a local machine)\.</p> <p>\fBbrew bundle dump\fR: Write all installed casks/formulae/images/taps into a \fBBrewfile\fR\.</p> <p>\fBbrew bundle cleanup\fR: Uninstall all dependencies not listed from the \fBBrewfile\fR\.</p> <p>This workflow is useful for maintainers or testers who regularly install lots of formulae\.</p> <p>\fBbrew bundle check\fR: Check if all dependencies are installed from the \fBBrewfile\fR \.</p> <p>This provides a successful exit code if everything is up\-to\-date, making it useful for scripting\.</p> <p>\fBbrew bundle list\fR: List all dependencies present in a \fBBrewfile\fR\.</p> <p>By default, only Homebrew dependencies are listed\.</p> <p>\fBbrew bundle exec\fR \fIcommand\fR: Run an external command in an isolated build environment based on the \fBBrewfile\fR dependencies\.</p> <p>This sanitized build environment ignores unrequested dependencies, which makes sure that things you didn\'t specify in your \fBBrewfile\fR won\'t get picked up by commands like \fBbundle install\fR, \fBnpm install\fR, etc\. It will also add compiler flags which will help find keg\-only dependencies like \fBopenssl\fR, \fBicu4c\fR, etc\.</p> <ul> <li>\fB\-\-file\fR: Read the \fBBrewfile\fR from this location\. Use \fB\-\-file=\-\fR to pipe to stdin/stdout\.</li> <li>\fB\-\-global\fR: Read the \fBBrewfile\fR from \fB~/\.Brewfile\fR\.</li> <li>\fB\-v\fR, \fB\-\-verbose\fR: \fBinstall\fR prints output from commands as they are run\. \fBcheck\fR lists all missing dependencies\.</li> <li>\fB\-\-no\-upgrade\fR: \fBinstall\fR won\'t run \fBbrew upgrade\fR on outdated dependencies\. Note they may still be upgraded by \fBbrew install\fR if needed\.</li> <li>\fB\-f\fR, \fB\-\-force\fR: \fBdump\fR overwrites an existing \fBBrewfile\fR\. \fBcleanup\fR actually performs its cleanup operations\.</li> <li>\fB\-\-no\-lock\fR: \fBinstall\fR won\'t output a \fBBrewfile\.lock\.json\fR\.</li> <li>\fB\-\-all\fR: \fBlist\fR all dependencies\.</li> <li>\fB\-\-formula\fR: \fBlist\fR Homebrew dependencies\.</li> <li>\fB\-\-cask\fR: \fBlist\fR Homebrew Cask dependencies\.</li> <li>\fB\-\-tap\fR: \fBlist\fR tap dependencies\.</li> <li>\fB\-\-mas\fR: \fBlist\fR Mac App Store dependencies\.</li> <li>\fB\-\-whalebrew\fR: \fBlist\fR Whalebrew dependencies\.</li> <li>\fB\-\-describe\fR: \fBdump\fR adds a description comment above each line, unless the dependency does not have a description\.</li> <li>\fB\-\-no\-restart\fR: \fBdump\fR does not add \fBrestart_service\fR to formula lines\.</li> <li>\fB\-\-zap\fR: \fBcleanup\fR casks using the \fBzap\fR command instead of \fBuninstall\fR\.</li> </ul> <h3>\fBservices\fR [\fIsubcommand\fR]</h3> <p>Manage background services with macOS\' \fBlaunchctl\fR(1) daemon manager\.</p> <p>If \fBsudo\fR is passed, operate on \fB/Library/LaunchDaemons\fR (started at boot)\. Otherwise, operate on \fB~/Library/LaunchAgents\fR (started at login)\.</p> <p>[\fBsudo\fR] \fBbrew services\fR [\fBlist\fR]: List all managed services for the current user (or root)\.</p> <p>[\fBsudo\fR] \fBbrew services run\fR (\fIformula\fR|\fB\-\-all\fR): Run the service \fIformula\fR without registering to launch at login (or boot)\.</p> <p>[\fBsudo\fR] \fBbrew services start\fR (\fIformula\fR|\fB\-\-all\fR): Start the service \fIformula\fR immediately and register it to launch at login (or boot)\.</p> <p>[\fBsudo\fR] \fBbrew services stop\fR (\fIformula\fR|\fB\-\-all\fR): Stop the service \fIformula\fR immediately and unregister it from launching at login (or boot)\.</p> <p>[\fBsudo\fR] \fBbrew services restart\fR (\fIformula\fR|\fB\-\-all\fR): Stop (if necessary) and start the service \fIformula\fR immediately and register it to launch at login (or boot)\.</p> <p>[\fBsudo\fR] \fBbrew services cleanup\fR: Remove all unused services\.</p> <ul> <li>\fB\-\-all\fR: Run \fIsubcommand\fR on all services\.</li> </ul> <h3>\fBtest\-bot\fR [\fIoptions\fR] [\fIformula\fR]:</h3> <p>Tests the full lifecycle of a Homebrew change to a tap (Git repository)\. For example, for a GitHub Actions pull request that changes a formula \fBbrew test\-bot\fR will ensure the system is cleaned and setup to test the formula, install the formula, run various tests and checks on it, bottle (package) the binaries and test formulae that depend on it to ensure they aren\'t broken by these changes\.</p> <p>Only supports GitHub Actions as a CI provider\. This is because Homebrew uses GitHub Actions and it\'s freely available for public and private use with macOS and Linux workers\.</p> <ul> <li>\fB\-\-dry\-run\fR: print what would be done rather than doing it\.</li> <li>\fB\-\-cleanup\fR: clean all state from the Homebrew directory\. Use with care!</li> <li>\fB\-\-skip\-setup\fR: don\'t check if the local system is set up correctly\.</li> <li>\fB\-\-keep\-old\fR: run \fBbrew bottle \-\-keep\-old\fR to build new bottles for a single platform\.</li> <li>\fB\-\-skip\-relocation\fR: run \fBbrew bottle \-\-skip\-relocation\fR to build new bottles that don\'t require relocation\.</li> <li>\fB\-\-local\fR: ask Homebrew to write verbose logs under \fB\./logs/\fR and set \fB$HOME\fR to \fB\./home/\fR</li> <li>\fB\-\-tap\fR: use the \fBgit\fR repository of the given tap\. Defaults to the core tap for syntax checking\.</li> <li>\fB\-\-fail\-fast\fR: immediately exit on a failing step\.</li> <li>\fB\-v\fR, \fB\-\-verbose\fR: print test step output in real time\. Has the side effect of passing output as raw bytes instead of re\-encoding in UTF\-8\.</li> <li>\fB\-\-test\-default\-formula\fR: use a default testing formula when not building a tap and no other formulae are specified\.</li> <li>\fB\-\-bintray\-org\fR: upload to the given Bintray organisation\.</li> <li>\fB\-\-root\-url\fR: use the specified \fIURL\fR as the root of the bottle\'s URL instead of Homebrew\'s default\.</li> <li>\fB\-\-git\-name\fR: set the Git author/committer names to the given name\.</li> <li>\fB\-\-git\-email\fR: set the Git author/committer email to the given email\.</li> <li>\fB\-\-ci\-upload\fR: use the Homebrew CI bottle upload options\.</li> <li>\fB\-\-publish\fR: publish the uploaded bottles\.</li> <li>\fB\-\-skip\-recursive\-dependents\fR: only test the direct dependents\.</li> <li>\fB\-\-only\-cleanup\-before\fR: Only run the pre\-cleanup step\. Needs \fB\-\-cleanup\fR\.</li> <li>\fB\-\-only\-setup\fR: Only run the local system setup check step\.</li> <li>\fB\-\-only\-tap\-syntax\fR: Only run the tap syntax check step\.</li> <li>\fB\-\-only\-formulae\fR: Only run the formulae steps\.</li> <li>\fB\-\-only\-cleanup\-after\fR: Only run the post\-cleanup step\. Needs \fB\-\-cleanup\fR\.</li> </ul> <h2>CUSTOM EXTERNAL COMMANDS</h2> <p>Homebrew, like \fBgit\fR(1), supports external commands\. These are executable scripts that reside somewhere in the \fBPATH\fR, named \fBbrew\-\fR\fIcmdname\fR or \fBbrew\-\fR\fIcmdname\fR\fB\.rb\fR, which can be invoked like \fBbrew\fR \fIcmdname\fR\. This allows you to create your own commands without modifying Homebrew\'s internals\.</p> <p>Instructions for creating your own commands can be found in the docs: <a href=\"https://docs\.brew\.sh/External\-Commands\">https://docs\.brew\.sh/External\-Commands</a></p> <h2>SPECIFYING FORMULAE</h2> <p>Many Homebrew commands accept one or more \fIformula\fR arguments\. These arguments can take several different forms:</p> <ul> <li><p>The name of a formula: e\.g\. \fBgit\fR, \fBnode\fR, \fBwget\fR\.</p></li> <li><p>The fully\-qualified name of a tapped formula: Sometimes a formula from a tapped repository may conflict with one in \fBhomebrew/core\fR\. You can still access these formulae by using a special syntax, e\.g\. \fBhomebrew/dupes/vim\fR or \fBhomebrew/versions/node4\fR\.</p></li> <li><p>An arbitrary file: Homebrew can install formulae from a local path\. It can point to either a formula file or a bottle\.</p></li> </ul> <h2>SPECIFYING CASKS</h2> <p>Many Homebrew Cask commands accept one or more \fIcask\fR arguments\. These can be specified the same way as the \fIformula\fR arguments described in \fBSPECIFYING FORMULAE\fR above\.</p> <h2>ENVIRONMENT</h2> <p>Note that environment variables must have a value set to be detected\. For example, run \fBexport HOMEBREW_NO_INSECURE_REDIRECT=1\fR rather than just \fBexport HOMEBREW_NO_INSECURE_REDIRECT\fR\.</p> <ul> <li><p>\fBHOMEBREW_ARCH\fR: Linux only: Pass the set value to a type name representing the compiler\'s \fB\-march\fR option\.</p> <p><em>Default:</em> \fBnative\fR\.</p></li> <li><p>\fBHOMEBREW_ARTIFACT_DOMAIN\fR: Prefix all download URLs, including those for bottles, with this variable\. For example, \fBHOMEBREW_ARTIFACT_DOMAIN=http://localhost:8080\fR will cause a formula with the URL \fBhttps://example\.com/foo\.tar\.gz\fR to instead download from \fBhttp://localhost:8080/example\.com/foo\.tar\.gz\fR\.</p></li> <li><p>\fBHOMEBREW_AUTO_UPDATE_SECS\fR: Automatically check for updates once per this seconds interval\.</p> <p><em>Default:</em> \fB300\fR\.</p></li> <li><p>\fBHOMEBREW_BAT\fR: If set, use \fBbat\fR for the \fBbrew cat\fR command\.</p></li> <li><p>\fBHOMEBREW_BAT_CONFIG_PATH\fR: Use the \fBbat\fR configuration file\. For example, \fBHOMEBREW_BAT=$HOME/\.bat/config\fR\.</p> <p><em>Default:</em> $HOME/\.bat/config</p></li> <li><p>\fBHOMEBREW_BINTRAY_KEY\fR: Use this API key when accessing the Bintray API (where bottles are stored)\.</p></li> <li><p>\fBHOMEBREW_BINTRAY_USER\fR: Use this username when accessing the Bintray API (where bottles are stored)\.</p></li> <li><p>\fBHOMEBREW_BOTTLE_DOMAIN\fR: Use the specified URL as the download mirror for bottles\. For example, \fBHOMEBREW_BOTTLE_DOMAIN=http://localhost:8080\fR will cause all bottles to download from the prefix \fBhttp://localhost:8080/\fR\.</p> <p><em>Default:</em> macOS: \fBhttps://homebrew\.bintray\.com/\fR, Linux: \fBhttps://linuxbrew\.bintray\.com/\fR\.</p></li> <li><p>\fBHOMEBREW_BREW_GIT_REMOTE\fR: Use the specified URL as the Homebrew/brew \fBgit\fR(1) remote\.</p> <p><em>Default:</em> \fBhttps://github\.com/Homebrew/brew\fR\.</p></li> <li><p>\fBHOMEBREW_BROWSER\fR: Use this as the browser when opening project homepages\.</p> <p><em>Default:</em> \fB$BROWSER\fR or the OS\'s default browser\.</p></li> <li><p>\fBHOMEBREW_CACHE\fR: Use the specified directory as the download cache\.</p> <p><em>Default:</em> macOS: \fB$HOME/Library/Caches/Homebrew\fR, Linux: \fB$XDG_CACHE_HOME/Homebrew\fR or \fB$HOME/\.cache/Homebrew\fR\.</p></li> <li><p>\fBHOMEBREW_CASK_OPTS\fR: Options which should be used for all \fBcask\fR commands\. All \fB\-\-*dir\fR options, \fB\-\-language\fR, \fB\-\-require\-sha\fR, \fB\-\-no\-quarantine\fR and \fB\-\-no\-binaries\fR are supported\. For example, you might add something like the following to your ~/\.profile, ~/\.bash_profile, or ~/\.zshenv:</p></li> </ul> <p>\fBexport HOMEBREW_CASK_OPTS=\'\-\-appdir=~/Applications \-\-fontdir=/Library/Fonts\'\fR</p> <ul> <li><p>\fBHOMEBREW_CLEANUP_MAX_AGE_DAYS\fR: Cleanup all cached files older than this many days\.</p> <p><em>Default:</em> \fB120\fR\.</p></li> <li><p>\fBHOMEBREW_COLOR\fR: If set, force colour output on non\-TTY outputs\.</p></li> <li><p>\fBHOMEBREW_CORE_GIT_REMOTE\fR: Use the specified URL as the Homebrew/homebrew\-core \fBgit\fR(1) remote\.</p> <p><em>Default:</em> macOS: \fBhttps://github\.com/Homebrew/homebrew\-core\fR, Linux: \fBhttps://github\.com/Homebrew/linuxbrew\-core\fR\.</p></li> <li><p>\fBHOMEBREW_CURLRC\fR: If set, do not pass \fB\-\-disable\fR when invoking \fBcurl\fR(1), which disables the use of \fBcurlrc\fR\.</p></li> <li><p>\fBHOMEBREW_CURL_RETRIES\fR: Pass the given retry count to \fB\-\-retry\fR when invoking \fBcurl\fR(1)\.</p> <p><em>Default:</em> \fB3\fR\.</p></li> <li><p>\fBHOMEBREW_CURL_VERBOSE\fR: If set, pass \fB\-\-verbose\fR when invoking \fBcurl\fR(1)\.</p></li> <li><p>\fBHOMEBREW_DEVELOPER\fR: If set, tweak behaviour to be more relevant for Homebrew developers (active or budding) by e\.g\. turning warnings into errors\.</p></li> <li><p>\fBHOMEBREW_DISABLE_LOAD_FORMULA\fR: If set, refuse to load formulae\. This is useful when formulae are not trusted (such as in pull requests)\.</p></li> <li><p>\fBHOMEBREW_DISPLAY\fR: Use this X11 display when opening a page in a browser, for example with \fBbrew home\fR\. Primarily useful on Linux\.</p> <p><em>Default:</em> \fB$DISPLAY\fR\.</p></li> <li><p>\fBHOMEBREW_DISPLAY_INSTALL_TIMES\fR: If set, print install times for each formula at the end of the run\.</p></li> <li><p>\fBHOMEBREW_EDITOR\fR: Use this editor when editing a single formula, or several formulae in the same directory\.</p> <p><em>Note:</em> \fBbrew edit\fR will open all of Homebrew as discontinuous files and directories\. Visual Studio Code can handle this correctly in project mode, but many editors will do strange things in this case\.</p> <p><em>Default:</em> \fB$EDITOR\fR or \fB$VISUAL\fR\.</p></li> <li><p>\fBHOMEBREW_FAIL_LOG_LINES\fR: Output this many lines of output on formula \fBsystem\fR failures\.</p> <p><em>Default:</em> \fB15\fR\.</p></li> <li><p>\fBHOMEBREW_FORBIDDEN_LICENSES\fR: A space\-separated list of licenses\. Homebrew will refuse to install a formula if that formula or any of its dependencies has a license on this list\.</p></li> <li><p>\fBHOMEBREW_FORCE_BREWED_CURL\fR: If set, always use a Homebrew\-installed \fBcurl\fR(1) rather than the system version\. Automatically set if the system version of \fBcurl\fR is too old\.</p></li> <li><p>\fBHOMEBREW_FORCE_BREWED_GIT\fR: If set, always use a Homebrew\-installed \fBgit\fR(1) rather than the system version\. Automatically set if the system version of \fBgit\fR is too old\.</p></li> <li><p>\fBHOMEBREW_FORCE_HOMEBREW_ON_LINUX\fR: If set, running Homebrew on Linux will use URLs for macOS\. This is useful when merging pull requests for macOS while on Linux\.</p></li> <li><p>\fBHOMEBREW_FORCE_VENDOR_RUBY\fR: If set, always use Homebrew\'s vendored, relocatable Ruby version even if the system version of Ruby is new enough\.</p></li> <li><p>\fBHOMEBREW_GITHUB_API_PASSWORD\fR: Use this password for authentication with the GitHub API, for features such as \fBbrew search\fR\. We strongly recommend using \fBHOMEBREW_GITHUB_API_TOKEN\fR instead\.</p></li> <li><p>\fBHOMEBREW_GITHUB_API_TOKEN\fR: Use this personal access token for the GitHub API, for features such as \fBbrew search\fR\. You can create one at <a href=\"https://github\.com/settings/tokens\">https://github\.com/settings/tokens</a>\. If set, GitHub will allow you a greater number of API requests\. For more information, see: <a href=\"https://docs\.github\.com/en/rest/overview/resources\-in\-the\-rest\-api#rate\-limiting\">https://docs\.github\.com/en/rest/overview/resources\-in\-the\-rest\-api#rate\-limiting</a>\.</p> <p><em>Note:</em> Homebrew doesn\'t require permissions for any of the scopes, but some developer commands may require additional permissions\.</p></li> <li><p>\fBHOMEBREW_GITHUB_API_USERNAME\fR: Use this username for authentication with the GitHub API, for features such as \fBbrew search\fR\. We strongly recommend using \fBHOMEBREW_GITHUB_API_TOKEN\fR instead\.</p></li> <li><p>\fBHOMEBREW_GIT_EMAIL\fR: Set the Git author and committer name to this value\.</p></li> <li><p>\fBHOMEBREW_GIT_NAME\fR: Set the Git author and committer email to this value\.</p></li> <li><p>\fBHOMEBREW_INSTALL_BADGE\fR: Print this text before the installation summary of each successful build\.</p> <p><em>Default:</em> The \"Beer Mug\" emoji\.</p></li> <li><p>\fBHOMEBREW_LOGS\fR: Use the specified directory to store log files\.</p> <p><em>Default:</em> macOS: \fB$HOME/Library/Logs/Homebrew\fR, Linux: \fB$XDG_CACHE_HOME/Homebrew/Logs\fR or \fB$HOME/\.cache/Homebrew/Logs\fR\.</p></li> <li><p>\fBHOMEBREW_MAKE_JOBS\fR: Use this value as the number of parallel jobs to run when building with \fBmake\fR(1)\.</p> <p><em>Default:</em> The number of available CPU cores\.</p></li> <li><p>\fBHOMEBREW_NO_ANALYTICS\fR: If set, do not send analytics\. See: <a href=\"https://docs\.brew\.sh/Analytics\">https://docs\.brew\.sh/Analytics</a>\.</p></li> <li><p>\fBHOMEBREW_NO_AUTO_UPDATE\fR: If set, do not automatically update before running \fBbrew install\fR, \fBbrew upgrade\fR or \fBbrew tap\fR\.</p></li> <li><p>\fBHOMEBREW_NO_BOTTLE_SOURCE_FALLBACK\fR: If set, fail on the failure of installation from a bottle rather than falling back to building from source\.</p></li> <li><p>\fBHOMEBREW_NO_COLOR\fR: If set, do not print text with colour added\.</p> <p><em>Default:</em> \fB$NO_COLOR\fR\.</p></li> <li><p>\fBHOMEBREW_NO_COMPAT\fR: If set, disable all use of legacy compatibility code\.</p></li> <li><p>\fBHOMEBREW_NO_EMOJI\fR: If set, do not print \fBHOMEBREW_INSTALL_BADGE\fR on a successful build\.</p> <p><em>Note:</em> Only tries to print emoji on OS X Lion or newer\.</p></li> <li><p>\fBHOMEBREW_NO_GITHUB_API\fR: If set, do not use the GitHub API, e\.g\. for searches or fetching relevant issues on a failed install\.</p></li> <li><p>\fBHOMEBREW_NO_INSECURE_REDIRECT\fR: If set, forbid redirects from secure HTTPS to insecure HTTP\.</p> <p><em>Note:</em> While ensuring your downloads are fully secure, this is likely to cause from\-source SourceForge, some GNU & GNOME based formulae to fail to download\.</p></li> <li><p>\fBHOMEBREW_NO_INSTALL_CLEANUP\fR: If set, \fBbrew install\fR, \fBbrew upgrade\fR and \fBbrew reinstall\fR will never automatically cleanup installed/upgraded/reinstalled formulae or all formulae every 30 days\.</p></li> <li><p>\fBHOMEBREW_PRY\fR: If set, use Pry for the \fBbrew irb\fR command\.</p></li> <li><p>\fBHOMEBREW_SKIP_OR_LATER_BOTTLES\fR: If set with \fBHOMEBREW_DEVELOPER\fR, do not use bottles from older versions of macOS\. This is useful in development on new macOS versions\.</p></li> <li><p>\fBHOMEBREW_SVN\fR: Use this as the \fBsvn\fR(1) binary\.</p> <p><em>Default:</em> A Homebrew\-built Subversion (if installed), or the system\-provided binary\.</p></li> <li><p>\fBHOMEBREW_TEMP\fR: Use this path as the temporary directory for building packages\. Changing this may be needed if your system temporary directory and Homebrew prefix are on different volumes, as macOS has trouble moving symlinks across volumes when the target does not yet exist\. This issue typically occurs when using FileVault or custom SSD configurations\.</p> <p><em>Default:</em> macOS: \fB/private/tmp\fR, Linux: \fB/tmp\fR\.</p></li> <li><p>\fBHOMEBREW_UPDATE_TO_TAG\fR: If set, always use the latest stable tag (even if developer commands have been run)\.</p></li> <li><p>\fBHOMEBREW_VERBOSE\fR: If set, always assume \fB\-\-verbose\fR when running commands\.</p></li> <li><p>\fBHOMEBREW_VERBOSE_USING_DOTS\fR: If set, verbose output will print a \fB\.\fR no more than once a minute\. This can be useful to avoid long\-running Homebrew commands being killed due to no output\.</p></li> <li><p>\fBall_proxy\fR: Use this SOCKS5 proxy for \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\.</p></li> <li><p>\fBftp_proxy\fR: Use this FTP proxy for \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\.</p></li> <li><p>\fBhttp_proxy\fR: Use this HTTP proxy for \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\.</p></li> <li><p>\fBhttps_proxy\fR: Use this HTTPS proxy for \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\.</p></li> <li><p>\fBno_proxy\fR: A comma\-separated list of hostnames and domain names excluded from proxying by \fBcurl\fR(1), \fBgit\fR(1) and \fBsvn\fR(1) when downloading through Homebrew\.</p></li> <li><p>\fBSUDO_ASKPASS\fR: When this variable is set, the \fB\-A\fR option is passed when calling \fBsudo\fR(8)</p></li> </ul> <h2>USING HOMEBREW BEHIND A PROXY</h2> <p>Set the \fBhttp_proxy\fR, \fBhttps_proxy\fR, \fBall_proxy\fR, \fBftp_proxy\fR and/or \fBno_proxy\fR environment variables documented above\.</p> <p>For example, to use an unauthenticated HTTP or SOCKS5 proxy:</p> <pre>\fBexport http_proxy=http://$HOST:$PORT export all_proxy=socks5://$HOST:$PORT \fR</pre> <p>And for an authenticated HTTP proxy:</p> <pre>\fBexport http_proxy=http://$USER:$PASSWORD@$HOST:$PORT \fR</pre> <h2>SEE ALSO</h2> <p>Homebrew Documentation: <a href=\"https://docs\.brew\.sh\">https://docs\.brew\.sh</a></p> <p>Homebrew API: <a href=\"https://rubydoc\.brew\.sh\">https://rubydoc\.brew\.sh</a></p> <p>\fBgit\fR(1), \fBgit\-log\fR(1)</p> <h2>AUTHORS</h2> <p>Homebrew\'s Project Leader is Mike McQuaid\.</p> <p>Homebrew\'s Project Leadership Committee is Misty De Meo, Shaun Jackman, Jonathan Chang, Sean Molenaar and Markus Reiter\.</p> <p>Homebrew\'s Technical Steering Committee is Michka Popoff, FX Coudert, Markus Reiter, Misty De Meo and Mike McQuaid\.</p> <p>Homebrew/brew\'s Linux maintainers are Michka Popoff, Shaun Jackman, Dawid Dziurla, Issy Long and Maxim Belkin\.</p> <p>Homebrew\'s other current maintainers are Claudia Pellegrino, Zach Auten, Rui Chen, Vitor Galvao, Caleb Xu, Gautham Goli, Steven Peters, Bo Anderson, William Woodruff, Igor Kapkov, Sam Ford, Alexander Bayandin, Izaak Beekman, Eric Knibbe, Viktor Szakats, Thierry Moisan, Steven Peters, Tom Schoonjans, Issy Long, CoreCode, Randall, Rylan Polster, SeekingMeaning, William Ma and Dustin Rodrigues\.</p> <p>Former maintainers with significant contributions include Jan Viljanen, JCount, commitay, Dominyk Tiller, Tim Smith, Baptiste Fontaine, Xu Cheng, Martin Afanasjew, Brett Koonce, Charlie Sharpsteen, Jack Nagel, Adam Vandenberg, Andrew Janke, Alex Dunn, neutric, Tomasz Pajor, Uladzislau Shablinski, Alyssa Ross, ilovezfs, Chongyu Zhu and Homebrew\'s creator: Max Howell\.</p> <h2>BUGS</h2> <p>See our issues on GitHub:</p> <ul> <li><p><strong>Homebrew/brew</strong>: <a href=\"https://github\.com/Homebrew/brew/issues\">https://github\.com/Homebrew/brew/issues</a></p></li> <li><p><strong>Homebrew/homebrew\-core</strong>: <a href=\"https://github\.com/Homebrew/homebrew\-core/issues\">https://github\.com/Homebrew/homebrew\-core/issues</a></p></li> <li><p><strong>Homebrew/homebrew\-cask</strong>: <a href=\"https://github\.com/Homebrew/homebrew\-cask/issues\">https://github\.com/Homebrew/homebrew\-cask/issues</a></p></li> </ul></script>"
true
Other
Homebrew
brew
6f311852d6a80e36b1dada514869dc3bd28b98e0.json
Fix unvendored RubyGems - Avoid caching RubyGems in GitHub Actions `tests.yml` to catch this in future. - Run `brew doctor` in GitHub Actions `tests.yml` after installing RubyGems to catch this in future. - Ignore relevant RubyGems (and fix outdated comments) - Never auto-`require` RubyGems that aren't vendored. - Update `bundler/setup.rb`.
.github/workflows/tests.yml
@@ -32,23 +32,16 @@ jobs: - run: brew config - - run: brew doctor - - - name: Cache Bundler RubyGems - id: cache - uses: actions/cache@v1 - with: - path: ${{ steps.set-up-homebrew.outputs.gems-path }} - key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }} - restore-keys: ${{ runner.os }}-rubygems- - + # Can't cache this because we need to check that it doesn't fail the + # "uncommitted RubyGems" step with a cold cache. - name: Install Bundler RubyGems - if: steps.cache.outputs.cache-hit != 'true' run: brew install-bundler-gems - name: Check for uncommitted RubyGems run: git diff --stat --exit-code Library/Homebrew/vendor/bundle/ruby + - run: brew doctor + - name: Set up Homebrew official command taps run: | # Setup taps needed for 'brew tests' and 'brew man'
true
Other
Homebrew
brew
6f311852d6a80e36b1dada514869dc3bd28b98e0.json
Fix unvendored RubyGems - Avoid caching RubyGems in GitHub Actions `tests.yml` to catch this in future. - Run `brew doctor` in GitHub Actions `tests.yml` after installing RubyGems to catch this in future. - Ignore relevant RubyGems (and fix outdated comments) - Never auto-`require` RubyGems that aren't vendored. - Update `bundler/setup.rb`.
.gitignore
@@ -133,18 +133,17 @@ **/vendor/bundle/ruby/*/gems/ruby-progressbar-*/ **/vendor/bundle/ruby/*/gems/simplecov-*/ **/vendor/bundle/ruby/*/gems/simplecov-html-*/ +**/vendor/bundle/ruby/*/gems/sorbet-*/ +**/vendor/bundle/ruby/*/gems/sorbet-runtime-*/ +**/vendor/bundle/ruby/*/gems/spoom-*/ **/vendor/bundle/ruby/*/gems/stackprof-*/ +**/vendor/bundle/ruby/*/gems/tapioca-*/ **/vendor/bundle/ruby/*/gems/thor-*/ **/vendor/bundle/ruby/*/gems/unf_ext-*/ **/vendor/bundle/ruby/*/gems/unf-*/ **/vendor/bundle/ruby/*/gems/unicode-display_width-*/ **/vendor/bundle/ruby/*/gems/webrobots-*/ -# Ignore conditional dependencies we don't wish to vendor -**/vendor/bundle/ruby/*/gems/sorbet-*/ -**/vendor/bundle/ruby/*/gems/sorbet-runtime-*/ -**/vendor/bundle/ruby/*/gems/tapioca-*/ - # Ignore `bin` contents (again). /bin
true
Other
Homebrew
brew
6f311852d6a80e36b1dada514869dc3bd28b98e0.json
Fix unvendored RubyGems - Avoid caching RubyGems in GitHub Actions `tests.yml` to catch this in future. - Run `brew doctor` in GitHub Actions `tests.yml` after installing RubyGems to catch this in future. - Ignore relevant RubyGems (and fix outdated comments) - Never auto-`require` RubyGems that aren't vendored. - Update `bundler/setup.rb`.
Library/Homebrew/Gemfile
@@ -2,20 +2,20 @@ source "https://rubygems.org" -# installed gems -gem "byebug" +# installed gems (should all be require: false) +gem "byebug", require: false gem "codecov", require: false -gem "parallel_tests" +gem "parallel_tests", require: false gem "ronn", require: false -gem "rspec" +gem "rspec", require: false gem "rspec-its", require: false gem "rspec-retry", require: false gem "rspec-wait", require: false -gem "rubocop" +gem "rubocop", require: false gem "simplecov", require: false -gem "sorbet" -gem "sorbet-runtime" -gem "tapioca" +gem "sorbet", require: false +gem "sorbet-runtime", require: false +gem "tapioca", require: false # vendored gems gem "activesupport"
true
Other
Homebrew
brew
6f311852d6a80e36b1dada514869dc3bd28b98e0.json
Fix unvendored RubyGems - Avoid caching RubyGems in GitHub Actions `tests.yml` to catch this in future. - Run `brew doctor` in GitHub Actions `tests.yml` after installing RubyGems to catch this in future. - Ignore relevant RubyGems (and fix outdated comments) - Never auto-`require` RubyGems that aren't vendored. - Update `bundler/setup.rb`.
Library/Homebrew/vendor/bundle/bundler/setup.rb
@@ -22,6 +22,7 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/simplecov-0.19.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/codecov-0.2.8/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/coderay-1.1.3/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/colorize-0.8.1/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/highline-2.0.3/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/commander-4.5.2/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/connection_pool-2.2.3/lib" @@ -50,7 +51,7 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/parallel_tests-3.1.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/parser-2.7.1.4/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rainbow-3.0.0/lib" -$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/sorbet-runtime-0.5.5877/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/sorbet-runtime-0.5.5880/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/parlour-4.0.1/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/patchelf-1.2.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/plist-3.5.0/lib" @@ -75,7 +76,8 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.7.1/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-1.43.2/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-macho-2.2.0/lib" -$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/sorbet-static-0.5.5877-universal-darwin-19/lib" -$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/sorbet-0.5.5877/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/sorbet-static-0.5.5880-universal-darwin-19/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/sorbet-0.5.5880/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/thor-1.0.1/lib" -$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/tapioca-0.4.3/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/spoom-1.0.4/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/tapioca-0.4.4/lib"
true
Other
Homebrew
brew
6e3c272e44c1e8e9490154cce59b59c9ba59e285.json
sorbet: update RBI files using Tapioca. Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml).
Library/Homebrew/sorbet/rbi/gems/json@2.3.1.rbi
@@ -0,0 +1,94 @@ +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `json` gem. +# Please instead update this file by running `tapioca sync`. + +# typed: true + +class Class < ::Module + def json_creatable?; end +end + +module JSON + + private + + def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end + def fast_generate(obj, opts = T.unsafe(nil)); end + def fast_unparse(obj, opts = T.unsafe(nil)); end + def generate(obj, opts = T.unsafe(nil)); end + def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end + def parse(source, opts = T.unsafe(nil)); end + def parse!(source, opts = T.unsafe(nil)); end + def pretty_generate(obj, opts = T.unsafe(nil)); end + def pretty_unparse(obj, opts = T.unsafe(nil)); end + def recurse_proc(result, &proc); end + def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end + def unparse(obj, opts = T.unsafe(nil)); end + + class << self + def [](object, opts = T.unsafe(nil)); end + def create_id; end + def create_id=(_); end + def deep_const_get(path); end + def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end + def dump_default_options; end + def dump_default_options=(_); end + def fast_generate(obj, opts = T.unsafe(nil)); end + def fast_unparse(obj, opts = T.unsafe(nil)); end + def generate(obj, opts = T.unsafe(nil)); end + def generator; end + def generator=(generator); end + def iconv(to, from, string); end + def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end + def load_default_options; end + def load_default_options=(_); end + def parse(source, opts = T.unsafe(nil)); end + def parse!(source, opts = T.unsafe(nil)); end + def parser; end + def parser=(parser); end + def pretty_generate(obj, opts = T.unsafe(nil)); end + def pretty_unparse(obj, opts = T.unsafe(nil)); end + def recurse_proc(result, &proc); end + def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end + def state; end + def state=(_); end + def unparse(obj, opts = T.unsafe(nil)); end + end +end + +class JSON::GenericObject < ::OpenStruct + def as_json(*_); end + def to_hash; end + def to_json(*a); end + def |(other); end + + class << self + def dump(obj, *args); end + def from_hash(object); end + def json_creatable=(_); end + def json_creatable?; end + def json_create(data); end + def load(source, proc = T.unsafe(nil), opts = T.unsafe(nil)); end + end +end + +class JSON::JSONError < ::StandardError + class << self + def wrap(exception); end + end +end + +JSON::Parser = JSON::Ext::Parser + +JSON::State = JSON::Ext::Generator::State + +JSON::UnparserError = JSON::GeneratorError + +module Kernel + + private + + def JSON(object, *args); end + def j(*objs); end + def jj(*objs); end +end
true
Other
Homebrew
brew
6e3c272e44c1e8e9490154cce59b59c9ba59e285.json
sorbet: update RBI files using Tapioca. Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml).
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -3019,6 +3019,28 @@ class Binding def irb(); end end +class Bottle + def cached_download(*args, &block); end + + def clear_cache(*args, &block); end + + def fetch(*args, &block); end + + def url(*args, &block); end + + def verify_download_integrity(*args, &block); end +end + +class BottleSpecification + def cellar(val=T.unsafe(nil)); end + + def prefix(val=T.unsafe(nil)); end + + def rebuild(val=T.unsafe(nil)); end + + def sha256(val); end +end + Bundler::Deprecate = Gem::Deprecate class Bundler::Env @@ -3520,7 +3542,6 @@ class Bundler::Retry end class Bundler::RubyGemsGemInstaller - def initialize(gem, options=T.unsafe(nil)); end end class Bundler::RubyGemsGemInstaller @@ -5756,6 +5777,32 @@ class Cask::DSL::Version def underscores_to_hyphens(); end end +class Cask::Installer + def binaries?(); end + + def force?(); end + + def installed_as_dependency?(); end + + def quarantine?(); end + + def reinstall?(); end + + def require_sha?(); end + + def skip_cask_deps?(); end + + def upgrade?(); end + + def verbose?(); end +end + +class Caveats + def empty?(*args, &block); end + + def to_s(*args, &block); end +end + class Checksum def empty?(*args, &block); end @@ -5766,8 +5813,6 @@ class Class def any_instance(); end def class_attribute(*attrs, instance_accessor: T.unsafe(nil), instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_predicate: T.unsafe(nil), default: T.unsafe(nil)); end - - def json_creatable?(); end end module CodeRay @@ -6653,10 +6698,34 @@ class DateTime def self.civil_from_format(utc_or_local, year, month=T.unsafe(nil), day=T.unsafe(nil), hour=T.unsafe(nil), min=T.unsafe(nil), sec=T.unsafe(nil)); end end +class Debrew::Menu::Entry + def self.[](*_); end + + def self.members(); end +end + +module Debrew + def self.active?(); end + + def self.lock(); end + + def self.locked?(); end + + def self.synchronize(&block); end + + def self.try_lock(); end + + def self.unlock(); end +end + class Delegator include ::ActiveSupport::Tryable end +module DependenciesHelpers + include ::DependenciesHelpers::Compat +end + class Dir def children(); end @@ -7098,6 +7167,18 @@ class Fiber def self.current(); end end +module Fiddle + NULL = ::T.let(nil, ::T.untyped) + RTLD_GLOBAL = ::T.let(nil, ::T.untyped) + RTLD_LAZY = ::T.let(nil, ::T.untyped) + RTLD_NOW = ::T.let(nil, ::T.untyped) + WINDOWS = ::T.let(nil, ::T.untyped) +end + +class Fiddle::Function + STDCALL = ::T.let(nil, ::T.untyped) +end + class File def self.atomic_write(file_name, temp_dir=T.unsafe(nil)); end @@ -7152,7 +7233,97 @@ module FileUtils end class Formula + include ::FileUtils::StreamUtils_ include ::Formula::Compat + def bottle_defined?(*args, &block); end + + def bottle_disable_reason(*args, &block); end + + def bottle_disabled?(*args, &block); end + + def bottle_specification(*args, &block); end + + def bottle_unneeded?(*args, &block); end + + def bottled?(*args, &block); end + + def cached_download(*args, &block); end + + def clear_cache(*args, &block); end + + def compiler_failures(*args, &block); end + + def conflicts(*args, &block); end + + def deprecated?(*args, &block); end + + def deprecated_flags(*args, &block); end + + def deprecated_options(*args, &block); end + + def deps(*args, &block); end + + def desc(*args, &block); end + + def disabled?(*args, &block); end + + def downloader(*args, &block); end + + def env(*args, &block); end + + def homepage(*args, &block); end + + def keg_only_reason(*args, &block); end + + def license(*args, &block); end + + def livecheck(*args, &block); end + + def livecheckable?(*args, &block); end + + def option_defined?(*args, &block); end + + def options(*args, &block); end + + def patchlist(*args, &block); end + + def pin(*args, &block); end + + def pinnable?(*args, &block); end + + def pinned?(*args, &block); end + + def pinned_version(*args, &block); end + + def plist_manual(*args, &block); end + + def plist_startup(*args, &block); end + + def pour_bottle_check_unsatisfied_reason(*args, &block); end + + def requirements(*args, &block); end + + def resource(*args, &block); end + + def resources(*args, &block); end + + def unpin(*args, &block); end + + def uses_from_macos_elements(*args, &block); end + + def version(*args, &block); end +end + +class Formula + def self.desc(val=T.unsafe(nil)); end + + def self.homepage(val=T.unsafe(nil)); end + + def self.revision(val=T.unsafe(nil)); end + + def self.sha256(val); end + + def self.version_scheme(val=T.unsafe(nil)); end end class FormulaConflict @@ -7161,6 +7332,34 @@ class FormulaConflict def self.members(); end end +class FormulaInstaller + def debug=(debug); end + + def force=(force); end + + def force_bottle=(force_bottle); end + + def git=(git); end + + def hold_locks?(); end + + def ignore_deps=(ignore_deps); end + + def interactive=(interactive); end + + def keep_tmp=(keep_tmp); end + + def only_deps=(only_deps); end + + def quiet=(quiet); end + + def show_header=(show_header); end + + def show_summary_heading=(show_summary_heading); end + + def verbose=(verbose); end +end + module Forwardable VERSION = ::T.let(nil, ::T.untyped) end @@ -7858,6 +8057,12 @@ class Homebrew::CLI::Parser include ::Homebrew::CLI::Parser::Compat end +class Homebrew::Cleanup + def dry_run?(); end + + def scrub?(); end +end + module Homebrew::EnvConfig def self.all_proxy(); end @@ -7974,6 +8179,12 @@ module Homebrew::EnvConfig def self.verbose_using_dots?(); end end +module Homebrew + extend ::FileUtils::StreamUtils_ + extend ::DependenciesHelpers::Compat + def self.default_prefix?(prefix=T.unsafe(nil)); end +end + module HostEnvironmentSimulatorHelper def in_its_own_process_with(*files); end end @@ -10074,12 +10285,6 @@ class JSON::Ext::Parser def initialize(*_); end end -JSON::Parser = JSON::Ext::Parser - -JSON::State = JSON::Ext::Generator::State - -JSON::UnparserError = JSON::GeneratorError - class JavaRequirement::CaskSuggestion def self.[](*_); end @@ -10092,6 +10297,30 @@ module Kconv UNKNOWN = ::T.let(nil, ::T.untyped) end +class Keg + def /(*args, &block); end + + def abv(*args, &block); end + + def directory?(*args, &block); end + + def disk_usage(*args, &block); end + + def exist?(*args, &block); end + + def file_count(*args, &block); end + + def find(*args, &block); end + + def hash(*args, &block); end + + def join(*args, &block); end + + def rename(*args, &block); end + + def to_s(*args, &block); end +end + class Keg::Relocation def self.[](*_); end @@ -12374,8 +12603,6 @@ end module MonitorMixin def initialize(*args); end - EXCEPTION_IMMEDIATE = ::T.let(nil, ::T.untyped) - EXCEPTION_NEVER = ::T.let(nil, ::T.untyped) end class MonitorMixin::ConditionVariable @@ -13118,36 +13345,94 @@ class Object def to_query(key); end def to_yaml(options=T.unsafe(nil)); end + APPLY_A = ::T.let(nil, ::T.untyped) + APPLY_B = ::T.let(nil, ::T.untyped) + APPLY_C = ::T.let(nil, ::T.untyped) ARGF = ::T.let(nil, ::T.untyped) ARGV = ::T.let(nil, ::T.untyped) + BOTTLE_ERB = ::T.let(nil, ::T.untyped) BUG_REPORTS_URL = ::T.let(nil, ::T.untyped) + COMMAND_DESC_WIDTH = ::T.let(nil, ::T.untyped) CROSS_COMPILING = ::T.let(nil, ::T.untyped) DEPRECATED_OFFICIAL_TAPS = ::T.let(nil, ::T.untyped) ENV = ::T.let(nil, ::T.untyped) + HEAD_URL = ::T.let(nil, ::T.untyped) HOMEBREW_BOTTLE_DEFAULT_DOMAIN = ::T.let(nil, ::T.untyped) HOMEBREW_BREW_DEFAULT_GIT_REMOTE = ::T.let(nil, ::T.untyped) + HOMEBREW_BREW_FILE = ::T.let(nil, ::T.untyped) + HOMEBREW_CACHE = ::T.let(nil, ::T.untyped) + HOMEBREW_CACHE_FORMULA = ::T.let(nil, ::T.untyped) + HOMEBREW_CASK_TAP_CASK_REGEX = ::T.let(nil, ::T.untyped) + HOMEBREW_CELLAR = ::T.let(nil, ::T.untyped) HOMEBREW_CORE_DEFAULT_GIT_REMOTE = ::T.let(nil, ::T.untyped) + HOMEBREW_DATA_PATH = ::T.let(nil, ::T.untyped) HOMEBREW_DEFAULT_CACHE = ::T.let(nil, ::T.untyped) HOMEBREW_DEFAULT_LOGS = ::T.let(nil, ::T.untyped) + HOMEBREW_DEFAULT_PREFIX = ::T.let(nil, ::T.untyped) HOMEBREW_DEFAULT_TEMP = ::T.let(nil, ::T.untyped) + HOMEBREW_LIBRARY = ::T.let(nil, ::T.untyped) HOMEBREW_LIBRARY_PATH = ::T.let(nil, ::T.untyped) + HOMEBREW_LINKED_KEGS = ::T.let(nil, ::T.untyped) + HOMEBREW_LOCKS = ::T.let(nil, ::T.untyped) + HOMEBREW_LOGS = ::T.let(nil, ::T.untyped) + HOMEBREW_OFFICIAL_REPO_PREFIXES_REGEX = ::T.let(nil, ::T.untyped) + HOMEBREW_PINNED_KEGS = ::T.let(nil, ::T.untyped) + HOMEBREW_PREFIX = ::T.let(nil, ::T.untyped) + HOMEBREW_PRODUCT = ::T.let(nil, ::T.untyped) + HOMEBREW_PULL_API_REGEX = ::T.let(nil, ::T.untyped) + HOMEBREW_PULL_OR_COMMIT_URL_REGEX = ::T.let(nil, ::T.untyped) + HOMEBREW_REPOSITORY = ::T.let(nil, ::T.untyped) + HOMEBREW_SHIMS_PATH = ::T.let(nil, ::T.untyped) HOMEBREW_TAP_CASK_REGEX = ::T.let(nil, ::T.untyped) + HOMEBREW_TAP_DIR_REGEX = ::T.let(nil, ::T.untyped) HOMEBREW_TAP_FORMULA_REGEX = ::T.let(nil, ::T.untyped) + HOMEBREW_TAP_PATH_REGEX = ::T.let(nil, ::T.untyped) + HOMEBREW_TEMP = ::T.let(nil, ::T.untyped) + HOMEBREW_USER_AGENT_CURL = ::T.let(nil, ::T.untyped) + HOMEBREW_USER_AGENT_FAKE_SAFARI = ::T.let(nil, ::T.untyped) + HOMEBREW_USER_AGENT_RUBY = ::T.let(nil, ::T.untyped) + HOMEBREW_VERSION = ::T.let(nil, ::T.untyped) + HOMEBREW_WWW = ::T.let(nil, ::T.untyped) + HOMEPAGE_URL = ::T.let(nil, ::T.untyped) + LINUXBREW_DEFAULT_PREFIX = ::T.let(nil, ::T.untyped) + MAXIMUM_STRING_MATCHES = ::T.let(nil, ::T.untyped) OFFICIAL_CASK_TAPS = ::T.let(nil, ::T.untyped) OFFICIAL_CMD_TAPS = ::T.let(nil, ::T.untyped) + OPTION_DESC_WIDTH = ::T.let(nil, ::T.untyped) + ORIGINAL_PATHS = ::T.let(nil, ::T.untyped) OS_VERSION = ::T.let(nil, ::T.untyped) + PATCH_A_CONTENTS = ::T.let(nil, ::T.untyped) + PATCH_A_SHA256 = ::T.let(nil, ::T.untyped) + PATCH_B_CONTENTS = ::T.let(nil, ::T.untyped) + PATCH_B_SHA256 = ::T.let(nil, ::T.untyped) + PATCH_URL_A = ::T.let(nil, ::T.untyped) + PATCH_URL_B = ::T.let(nil, ::T.untyped) + RUBY_BIN = ::T.let(nil, ::T.untyped) RUBY_COPYRIGHT = ::T.let(nil, ::T.untyped) RUBY_DESCRIPTION = ::T.let(nil, ::T.untyped) RUBY_ENGINE = ::T.let(nil, ::T.untyped) RUBY_ENGINE_VERSION = ::T.let(nil, ::T.untyped) RUBY_PATCHLEVEL = ::T.let(nil, ::T.untyped) + RUBY_PATH = ::T.let(nil, ::T.untyped) RUBY_PLATFORM = ::T.let(nil, ::T.untyped) RUBY_RELEASE_DATE = ::T.let(nil, ::T.untyped) RUBY_REVISION = ::T.let(nil, ::T.untyped) RUBY_VERSION = ::T.let(nil, ::T.untyped) + RUBY_X = ::T.let(nil, ::T.untyped) + RUBY_Y = ::T.let(nil, ::T.untyped) + STABLE_URL = ::T.let(nil, ::T.untyped) STDERR = ::T.let(nil, ::T.untyped) STDIN = ::T.let(nil, ::T.untyped) STDOUT = ::T.let(nil, ::T.untyped) + TESTBALL_PATCHES_SHA256 = ::T.let(nil, ::T.untyped) + TESTBALL_PATCHES_URL = ::T.let(nil, ::T.untyped) + TESTBALL_SHA256 = ::T.let(nil, ::T.untyped) + TESTBALL_URL = ::T.let(nil, ::T.untyped) + TEST_DIRECTORIES = ::T.let(nil, ::T.untyped) + TEST_FIXTURE_DIR = ::T.let(nil, ::T.untyped) + TEST_SHA1 = ::T.let(nil, ::T.untyped) + TEST_SHA256 = ::T.let(nil, ::T.untyped) + TEST_TMPDIR = ::T.let(nil, ::T.untyped) TOPLEVEL_BINDING = ::T.let(nil, ::T.untyped) end @@ -15568,6 +15853,7 @@ end class Pathname include ::ELFShim + include ::MachOShim def fnmatch?(*_); end def glob(*_); end @@ -19152,6 +19438,18 @@ end module RSpec::Its end +module RSpec::Matchers + def a_json_string(*expected, &block_arg); end + + def a_string_containing(*args, &block); end + + def be_a_failure(*args, &block); end + + def have_failed(*args, &block); end + + def not_to_output(*args, &block); end +end + class RSpec::Retry def attempts(); end @@ -19303,6 +19601,10 @@ module Readline def self.completion_quote_character(); end end +class ReporterHub + def empty?(*args, &block); end +end + class Requirement def self.cask(val=T.unsafe(nil)); end @@ -21733,18 +22035,36 @@ module Singleton def self.__init__(klass); end end -class Socket - IPV6_DONTFRAG = ::T.let(nil, ::T.untyped) - IPV6_PATHMTU = ::T.let(nil, ::T.untyped) - IPV6_RECVPATHMTU = ::T.let(nil, ::T.untyped) - SO_BPF_EXTENSIONS = ::T.let(nil, ::T.untyped) -end +class SoftwareSpec + def cached_download(*args, &block); end + + def checksum(*args, &block); end + + def clear_cache(*args, &block); end + + def download_name(*args, &block); end + + def downloader(*args, &block); end + + def fetch(*args, &block); end + + def mirror(*args, &block); end + + def mirrors(*args, &block); end -module Socket::Constants - IPV6_DONTFRAG = ::T.let(nil, ::T.untyped) - IPV6_PATHMTU = ::T.let(nil, ::T.untyped) - IPV6_RECVPATHMTU = ::T.let(nil, ::T.untyped) - SO_BPF_EXTENSIONS = ::T.let(nil, ::T.untyped) + def sha256(*args, &block); end + + def source_modified_time(*args, &block); end + + def specs(*args, &block); end + + def stage(*args, &block); end + + def using(*args, &block); end + + def verify_download_integrity(*args, &block); end + + def version(*args, &block); end end class SortedSet
true
Other
Homebrew
brew
c5f3afa992320c0a9a7b416afd3d319e2fc59559.json
workflows/tapioca: remove unnecessary steps.
.github/workflows/tapioca.yml
@@ -21,13 +21,6 @@ jobs: with: username: BrewTestBot - - name: Set up Ruby - uses: actions/setup-ruby@main - with: - ruby-version: '2.6' - - name: Install RubyGems - run: brew typecheck --update-definitions - - name: Update Tapioca definitions id: update run: |
false
Other
Homebrew
brew
2468fb127df506ac70a77ea83796f85183a4b8a7.json
dev-cmd: add brew typecheck cmd This PR adds a new `brew typecheck` developer command which checks for typechecking errors in the current code with Sorbet.
Library/Homebrew/dev-cmd/typecheck.rb
@@ -0,0 +1,62 @@ +# frozen_string_literal: true + +require "cli/parser" + +module Homebrew + module_function + + def typecheck_args + Homebrew::CLI::Parser.new do + usage_banner <<~EOS + `typecheck` + + Check for typechecking errors using Sorbet. + EOS + switch "-q", "--quiet", + description: "Silence all non-critical errors." + switch "--update-definitions", + description: "Update Tapioca gem definitions of recently bumped gems" + switch "--fail-if-not-changed", + description: "Return a failing status code if all gems are up to date " \ + "and gem definitions do not need a tapioca update" + flag "--dir=", + description: "Typecheck all files in a specific directory." + flag "--file=", + description: "Typecheck a single file." + flag "--ignore=", + description: "Ignores input files that contain the given string " \ + "in their paths (relative to the input path passed to Sorbet)." + conflicts "--dir", "--file" + max_named 0 + end + end + + def typecheck + args = typecheck_args.parse + + Homebrew.install_bundler_gems! + + HOMEBREW_LIBRARY_PATH.cd do + if args.update_definitions? + system "bundle", "exec", "tapioca", "sync" + system "bundle", "exec", "srb", "rbi", "hidden-definitions" + + Homebrew.failed = system("git", "diff", "--stat", "--exit-code") if args.fail_if_not_changed? + + return + end + + srb_exec = %w[bundle exec srb tc] + srb_exec << "--quiet" if args.quiet? + srb_exec += ["--ignore", args.ignore] if args.ignore.present? + if args.file.present? || args.dir.present? + cd("sorbet") + srb_exec += ["--file", "../#{args.file}"] if args.file + srb_exec += ["--dir", "../#{args.dir}"] if args.dir + else + srb_exec += ["--typed-override", "sorbet/files.yaml"] + end + Homebrew.failed = !system(*srb_exec) + end + end +end
true
Other
Homebrew
brew
2468fb127df506ac70a77ea83796f85183a4b8a7.json
dev-cmd: add brew typecheck cmd This PR adds a new `brew typecheck` developer command which checks for typechecking errors in the current code with Sorbet.
Library/Homebrew/test/dev-cmd/typecheck_spec.rb
@@ -0,0 +1,7 @@ +# frozen_string_literal: true + +require "cmd/shared_examples/args_parse" + +describe "Homebrew.typecheck_args" do + it_behaves_like "parseable arguments" +end
true
Other
Homebrew
brew
2468fb127df506ac70a77ea83796f85183a4b8a7.json
dev-cmd: add brew typecheck cmd This PR adds a new `brew typecheck` developer command which checks for typechecking errors in the current code with Sorbet.
completions/internal_commands_list.txt
@@ -81,6 +81,7 @@ tap-info tap-new test tests +typecheck uninstal uninstall unlink
true
Other
Homebrew
brew
2468fb127df506ac70a77ea83796f85183a4b8a7.json
dev-cmd: add brew typecheck cmd This PR adds a new `brew typecheck` developer command which checks for typechecking errors in the current code with Sorbet.
docs/Manpage.md
@@ -1178,6 +1178,23 @@ Run Homebrew's unit and integration tests. * `--seed`: Randomise tests with the specified *`value`* instead of a random seed. +### `typecheck` + +Check for typechecking errors using Sorbet. + +* `-q`, `--quiet`: + Silence all non-critical errors. +* `--update-definitions`: + Update Tapioca gem definitions of recently bumped gems +* `--fail-if-not-changed`: + Return a failing status code if all gems are up to date and gem definitions do not need a tapioca update +* `--dir`: + Typecheck all files in a specific directory. +* `--file`: + Typecheck a single file. +* `--ignore`: + Ignores input files that contain the given string in their paths (relative to the input path passed to Sorbet). + ### `unpack` [*`options`*] *`formula`* Unpack the source files for *`formula`* into subdirectories of the current
true
Other
Homebrew
brew
2468fb127df506ac70a77ea83796f85183a4b8a7.json
dev-cmd: add brew typecheck cmd This PR adds a new `brew typecheck` developer command which checks for typechecking errors in the current code with Sorbet.
manpages/brew.1
@@ -1610,6 +1610,33 @@ Run only \fItest_script\fR\fB_spec\.rb\fR\. Appending \fB:\fR\fIline_number\fR w \fB\-\-seed\fR Randomise tests with the specified \fIvalue\fR instead of a random seed\. . +.SS "\fBtypecheck\fR" +Check for typechecking errors using Sorbet\. +. +.TP +\fB\-q\fR, \fB\-\-quiet\fR +Silence all non\-critical errors\. +. +.TP +\fB\-\-update\-definitions\fR +Update Tapioca gem definitions of recently bumped gems +. +.TP +\fB\-\-fail\-if\-not\-changed\fR +Return a failing status code if all gems are up to date and gem definitions do not need a tapioca update +. +.TP +\fB\-\-dir\fR +Typecheck all files in a specific directory\. +. +.TP +\fB\-\-file\fR +Typecheck a single file\. +. +.TP +\fB\-\-ignore\fR +Ignores input files that contain the given string in their paths (relative to the input path passed to Sorbet)\. +. .SS "\fBunpack\fR [\fIoptions\fR] \fIformula\fR" Unpack the source files for \fIformula\fR into subdirectories of the current working directory\. .
true
Other
Homebrew
brew
7c1af56e43929ec004b02632c401be81b802433a.json
metafiles: copy all license files
Library/Homebrew/metafiles.rb
@@ -4,15 +4,13 @@ # # @api private module Metafiles + LICENSES = Set.new(%w[copying copyright license licence]).freeze # https://github.com/github/markup#markups EXTENSIONS = Set.new(%w[ .adoc .asc .asciidoc .creole .html .markdown .md .mdown .mediawiki .mkdn .org .pod .rdoc .rst .rtf .textile .txt .wiki ]).freeze - BASENAMES = Set.new(%w[ - about authors changelog changes copying copyright history license licence - news notes notice readme todo - ]).freeze + BASENAMES = Set.new(%w[about authors changelog changes history news notes notice readme todo]).freeze module_function @@ -24,6 +22,8 @@ def list?(file) def copy?(file) file = file.downcase + return true if LICENSES.include? file.split(".").first + ext = File.extname(file) file = File.basename(file, ext) if EXTENSIONS.include?(ext) BASENAMES.include?(file)
false
Other
Homebrew
brew
12070b4c0fd0f41151c10ad2322168e7aa30fa9e.json
upgrade: fix undefined method Add the `Homebrew.` module prefix to fix an undefined method. Also, use `uniq` to deduplicate the list of broken dependents.
Library/Homebrew/upgrade.rb
@@ -170,6 +170,7 @@ def check_installed_dependents(args:) oh1 "Checking for dependents of upgraded formulae..." unless args.dry_run? broken_dependents = CacheStoreDatabase.use(:linkage) do |db| installed_formulae.flat_map(&:runtime_installed_formula_dependents) + .uniq .select do |f| keg = f.opt_or_installed_prefix_keg next unless keg @@ -221,7 +222,7 @@ def check_installed_dependents(args:) return if args.dry_run? reinstallable_broken_dependents.each do |f| - reinstall_formula(f, build_from_source: true, args: args) + Homebrew.reinstall_formula(f, build_from_source: true, args: args) rescue FormulaInstallationAlreadyAttemptedError # We already attempted to reinstall f as part of the dependency tree of # another formula. In that case, don't generate an error, just move on.
false
Other
Homebrew
brew
9ae020834736dab32fc12d3a9e5b2e09352ca12f.json
workflows: improve scheduled behaviour.
.github/workflows/spdx.yml
@@ -27,26 +27,38 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - git fetch origin master - git reset origin/master - git checkout -B spdx-update + git fetch origin + + BRANCH="spdx-update" + echo "::set-output name=branch::${BRANCH}" + + if git ls-remote --exit-code --heads origin "$BRANCH"; then + git checkout "$BRANCH" + git reset origin/master + else + git checkout -B "$BRANCH" origin/master + BRANCH_EXISTS="1" + fi if brew update-license-data --fail-if-not-changed; then git add "$GITHUB_WORKSPACE/Library/Homebrew/data/spdx" git commit -m "spdx: update license data." -m "Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/spdx.yml)." echo "::set-output name=committed::true" + if [ -n "$BRANCH_EXISTS" ]; then + echo "::set-output name=pull_request::true" + fi fi - name: Push commits if: steps.update.outputs.committed == 'true' uses: Homebrew/actions/git-try-push@master with: token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }} - branch: spdx-update + branch: ${{ steps.update.outputs.branch }} force: true - name: Open a pull request - if: steps.update.outputs.committed == 'true' + if: steps.update.outputs.pull_request == 'true' run: hub pull-request --no-edit env: GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
true
Other
Homebrew
brew
9ae020834736dab32fc12d3a9e5b2e09352ca12f.json
workflows: improve scheduled behaviour.
.github/workflows/tapioca.yml
@@ -35,9 +35,18 @@ jobs: - name: Update Tapioca definitions id: update run: | - git fetch origin master - git reset origin/master - git checkout -B tapioca-update + git fetch origin + + BRANCH="tapioca-update" + echo "::set-output name=branch::${BRANCH}" + + if git ls-remote --exit-code --heads origin "$BRANCH"; then + git checkout "$BRANCH" + git reset origin/master + else + git checkout -B "$BRANCH" origin/master + BRANCH_EXISTS="1" + fi # TODO: replace with `brew typecheck` cd "$GITHUB_WORKSPACE/Library/Homebrew" @@ -49,18 +58,21 @@ jobs: git add "$GITHUB_WORKSPACE/Library/Homebrew/sorbet" git commit -m "sorbet: update RBI files using Tapioca." -m "Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml)." echo "::set-output name=committed::true" + if [ -n "$BRANCH_EXISTS" ]; then + echo "::set-output name=pull_request::true" + fi fi - name: Push commits if: steps.update.outputs.committed == 'true' uses: Homebrew/actions/git-try-push@master with: token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }} - branch: tapioca-update + branch: ${{ steps.update.outputs.branch }} force: true - name: Open a pull request - if: steps.update.outputs.committed == 'true' + if: steps.update.outputs.pull_request == 'true' run: hub pull-request --no-edit env: GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
true
Other
Homebrew
brew
3fb7c3a2f3825984ed3bc1da0595864404338bf6.json
Use installed cask file for `brew cask zap`.
Library/Homebrew/cask/cmd/uninstall.rb
@@ -40,11 +40,13 @@ def self.uninstall_casks(*casks, binaries: nil, force: false, verbose: false) casks.each do |cask| odebug "Uninstalling Cask #{cask}" - raise CaskNotInstalledError, cask unless cask.installed? || force - - if cask.installed? && !cask.installed_caskfile.nil? - # use the same cask file that was used for installation, if possible - cask = CaskLoader.load(cask.installed_caskfile) if cask.installed_caskfile.exist? + if cask.installed? + if installed_caskfile = cask.installed_caskfile + # Use the same cask file that was used for installation, if possible. + cask = CaskLoader.load(installed_caskfile) if installed_caskfile.exist? + end + else + raise CaskNotInstalledError, cask unless force end Installer.new(cask, **options).uninstall
true
Other
Homebrew
brew
3fb7c3a2f3825984ed3bc1da0595864404338bf6.json
Use installed cask file for `brew cask zap`.
Library/Homebrew/cask/cmd/zap.rb
@@ -28,7 +28,14 @@ def run casks.each do |cask| odebug "Zapping Cask #{cask}" - raise CaskNotInstalledError, cask unless cask.installed? || args.force? + if cask.installed? + if installed_caskfile = cask.installed_caskfile + # Use the same cask file that was used for installation, if possible. + cask = CaskLoader.load(installed_caskfile) if installed_caskfile.exist? + end + else + raise CaskNotInstalledError, cask unless args.force? + end Installer.new(cask, verbose: args.verbose?, force: args.force?).zap end
true
Other
Homebrew
brew
3c55d8e528a2eed012a7b73bb46839bbe44d6aa0.json
docs: update license documentation
Library/Homebrew/formula.rb
@@ -2219,19 +2219,26 @@ def method_added(method) # @!attribute [w] # The SPDX ID of the open-source license that the formula uses. # Shows when running `brew info`. - # Use `:any`, `:all` or `:with` to describe complex license expressions. - # `:any` should be used when the user can choose which license to use. - # `:all` should be used when the user must use all licenses. + # Use `:any_of`, `:all_of` or `:with` to describe complex license expressions. + # `:any_of` should be used when the user can choose which license to use. + # `:all_of` should be used when the user must use all licenses. # `:with` should be used to specify a valid SPDX exception. # Add `+` to an identifier to indicate that the formulae can be # licensed under later versions of the same license. + # @see https://docs.brew.sh/License-Guidelines Homebrew License Guidelines # @see https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/ SPDX license expression guide # <pre>license "BSD-2-Clause"</pre> # <pre>license "EPL-1.0+"</pre> # <pre>license any_of: ["MIT", "GPL-2.0-only"]</pre> # <pre>license all_of: ["MIT", "GPL-2.0-only"]</pre> # <pre>license "GPL-2.0-only" => { with: "LLVM-exception" }</pre> # <pre>license :public_domain</pre> + # <pre>license any_of: [ + # "MIT", + # :public_domain, + # all_of: ["0BSD", "Zlib", "Artistic-1.0+"], + # "Apache-2.0" => { with: "LLVM-exception" }, + # ]</pre> def license(args = nil) if args.nil? @licenses
true
Other
Homebrew
brew
3c55d8e528a2eed012a7b73bb46839bbe44d6aa0.json
docs: update license documentation
docs/Formula-Cookbook.md
@@ -95,13 +95,9 @@ We only accept formulae that use a [Debian Free Software Guidelines license](htt Use the license identifier from the [SPDX License List](https://spdx.org/licenses/) e.g. `license "BSD-2-Clause"`, or use `license :public_domain` for public domain software. -If the software is available under multiple licenses, you should list them all in an array: +Use `:any_of`, `:all_of` or `:with` to describe complex license expressions. `:any_of` should be used when the user can choose which license to use. `:all_of` should be used when the user must use all licenses. `:with` should be used to specify a valid SPDX exception. Add `+` to an identifier to indicate that the formulae can be licensed under later versions of the same license. -```ruby -license ["MIT", "GPL-2.0"] -``` - -Note: only specify multiple licenses if the formula gives the user a choice between the licenses. Formulae that have different licenses for different parts of their software should specify only the more restrictive license. For help determining which license is more restrictive, take a look [https://choosealicense.com](https://choosealicense.com/licenses/) or the [Comparison of free and open-source software licences Wikipedia page](https://en.wikipedia.org/wiki/Comparison_of_free_and_open-source_software_licences). +Check out the [License Guidelines](License-Guidelines.md) for examples of complex license expressions in Homebrew formulae. ### Check the build system
true
Other
Homebrew
brew
3c55d8e528a2eed012a7b73bb46839bbe44d6aa0.json
docs: update license documentation
docs/License-Guidelines.md
@@ -0,0 +1,110 @@ +# License Guidelines + +We only accept formulae that use a [Debian Free Software Guidelines license](https://wiki.debian.org/DFSGLicenses) or are released into the public domain following [DFSG Guidelines on Public Domain software](https://wiki.debian.org/DFSGLicenses#Public_Domain). + +## Specifying a License + +All licenses are identified by their license identifier from the [SPDX License List](https://spdx.org/licenses/). + +Specify a license by passing it to the `license` method: + +```ruby +license "MIT" +``` + +The public domain can be indicated using a symbol: + +```ruby +license :public_domain +``` + +## Complex SPDX License Expressions + +Some formulae have multiple licenses that need to be combined in different ways. In these cases, a more complex license expression can be used. These expressions are based on the [SPDX License Expression Guidelines](https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/). + +Add a `+` to indicate that the user can choose a later version of the same license: + +```ruby +license "EPL-1.0+" +``` + +GNU licenses (`GPL`, `LGPL`, `AGPL` and `GFDL`) require either the `-only` or the `-or-later` suffix to indicate whether a later version of the license is allowed: + +```ruby +license "LGPL-2.1-only" +``` + +```ruby +license "GPL-1.0-or-later" +``` + +Use `:any_of` to indicate that the user can choose which license applies: + +```ruby +license any_of: ["MIT", "0BSD"] +``` + +Use `:all_of` to indicate that the user must comply with multiple licenses: + +```ruby +license all_of: ["MIT", "0BSD"] +``` + +Use `:with` to indicate a license exception: + +```ruby +license "MIT" => { with: "LLVM-exception" } +``` + +These expressions can be nested as needed: + +```ruby +license any_of: [ + "MIT", + :public_domain, + all_of: ["0BSD", "Zlib", "Artistic-1.0+"], + "Apache-2.0" => { with: "LLVM-exception" }, +] +``` + +## Specifying Forbidden Licenses + +The `HOMEBREW_FORBIDDEN_LICENSES` environment variable can be set to forbid installation of formulae that require or have dependencies that require certain licenses. + +The `HOMEBREW_FORBIDDEN_LICENSES` should be set to a space separated list of licenses. Use `public_domain` to forbid installation of formulae with a `:public_domain` license. + +For example, the following forbids installation of `MIT`, `Artistic-1.0` and `:public_domain` licenses: + +```bash +export HOMEBREW_FORBIDDEN_LICENSES="MIT Artistic-1.0 public_domain" +``` + +In this example Homebrew would refuse to install any formula that specifies the `MIT` license. Homebrew would also forbid installation of any formula that declares a dependency on a formula that specifies `MIT`, even if the original formula has an allowed license. + +Homebrew interprets complex license expressions and determines whether the licenses allow installation. To continue the above example, Homebrew would not allow installation of a formula with the following license declarations: + +```ruby +license any_of: ["MIT", "Artistic-1.0"] +``` + +```ruby +license all_of: ["MIT", "0BSD"] +``` + +Homebrew _would_ allow formulae with the following declaration to be installed: + +```ruby +license any_of: ["MIT", "0BSD"] +``` + +`HOMEBREW_FORBIDDEN_LICENSES` can also forbid future versions of specific licenses. For example, to forbid `Artistic-1.0`, `Artistic-2.0` and any future Artistic licenses, use: + +```bash +export HOMEBREW_FORBIDDEN_LICENSES="Artistic-1.0+" +``` + +For GNU licenses (such as `GPL`, `LGPL`, `AGPL` and `GFDL`), use `-only` or `-or-later`. For example, the following would forbid `GPL-2.0`, `LGPL-2.1` and `LGPL-3.0` formulae from being installed, but would allow `GPL-3.0` + +```bash +export HOMEBREW_FORBIDDEN_LICENSES="GPL-2.0-only LGPL-2.1-or-later" +```
true
Other
Homebrew
brew
3c55d8e528a2eed012a7b73bb46839bbe44d6aa0.json
docs: update license documentation
docs/README.md
@@ -37,6 +37,7 @@ - [How To Open A Pull Request (and get it merged)](How-To-Open-a-Homebrew-Pull-Request.md) - [Formula Cookbook](Formula-Cookbook.md) - [Acceptable Formulae](Acceptable-Formulae.md) +- [License Guidelines](License-Guidelines.md) - [Formulae Versions](Versions.md) - [Node for Formula Authors](Node-for-Formula-Authors.md) - [Python for Formula Authors](Python-for-Formula-Authors.md)
true
Other
Homebrew
brew
2bdf0d60683111c96cb96d7cccfee4cf8ae8b372.json
spec_helper: increase tests timeout. When GitHub Actions is congested some tests can take longer than this (particularly as we're running in parallel). Globally double the time we allow for all tests.
Library/Homebrew/test/cmd/reinstall_spec.rb
@@ -7,7 +7,7 @@ it_behaves_like "parseable arguments" end -describe "brew reinstall", :integration_test, timeout: 120 do +describe "brew reinstall", :integration_test do it "reinstalls a Formula" do install_test_formula "testball" foo_dir = HOMEBREW_CELLAR/"testball/0.1/bin"
true
Other
Homebrew
brew
2bdf0d60683111c96cb96d7cccfee4cf8ae8b372.json
spec_helper: increase tests timeout. When GitHub Actions is congested some tests can take longer than this (particularly as we're running in parallel). Globally double the time we allow for all tests.
Library/Homebrew/test/dev-cmd/test_spec.rb
@@ -7,7 +7,7 @@ end # randomly segfaults on Linux with portable-ruby. -describe "brew test", :integration_test, :needs_macos, timeout: 120 do +describe "brew test", :integration_test, :needs_macos do it "tests a given Formula" do install_test_formula "testball", <<~'RUBY' test do
true
Other
Homebrew
brew
2bdf0d60683111c96cb96d7cccfee4cf8ae8b372.json
spec_helper: increase tests timeout. When GitHub Actions is congested some tests can take longer than this (particularly as we're running in parallel). Globally double the time we allow for all tests.
Library/Homebrew/test/spec_helper.rb
@@ -181,7 +181,7 @@ def find_files end begin - timeout = example.metadata.fetch(:timeout, 60) + timeout = example.metadata.fetch(:timeout, 120) inner_timeout = nil Timeout.timeout(timeout) do example.run
true
Other
Homebrew
brew
9dbe0e7b027962558cb5e194a4695939c29edae2.json
README: update maintainer list
README.md
@@ -58,7 +58,7 @@ Homebrew's [Technical Steering Committee](https://docs.brew.sh/Homebrew-Governan Homebrew/brew's Linux maintainers are [Michka Popoff](https://github.com/imichka), [Shaun Jackman](https://github.com/sjackman), [Dawid Dziurla](https://github.com/dawidd6), [Issy Long](https://github.com/issyl0) and [Maxim Belkin](https://github.com/maxim-belkin). -Homebrew's other current maintainers are [Claudia Pellegrino](https://github.com/claui), [Zach Auten](https://github.com/zachauten), [Rui Chen](https://github.com/chenrui333), [Vitor Galvao](https://github.com/vitorgalvao), [Caleb Xu](https://github.com/alebcay), [Gautham Goli](https://github.com/GauthamGoli), [Steven Peters](https://github.com/scpeters), [Bo Anderson](https://github.com/Bo98), [William Woodruff](https://github.com/woodruffw), [Igor Kapkov](https://github.com/igas), [Sam Ford](https://github.com/samford), [Alexander Bayandin](https://github.com/bayandin), [Izaak Beekman](https://github.com/zbeekman), [Eric Knibbe](https://github.com/EricFromCanada), [Viktor Szakats](https://github.com/vszakats), [Thierry Moisan](https://github.com/moisan), [Steven Peters](https://github.com/scpeters), [Tom Schoonjans](https://github.com/tschoonj), [Issy Long](https://github.com/issyl0), [CoreCode](https://github.com/core-code), [Randall](https://github.com/ran-dall), [Rylan Polster](https://github.com/Rylan12), [SeekingMeaning](https://github.com/SeekingMeaning) and [William Ma](https://github.com/whoiswillma). +Homebrew's other current maintainers are [Claudia Pellegrino](https://github.com/claui), [Zach Auten](https://github.com/zachauten), [Rui Chen](https://github.com/chenrui333), [Vitor Galvao](https://github.com/vitorgalvao), [Caleb Xu](https://github.com/alebcay), [Gautham Goli](https://github.com/GauthamGoli), [Steven Peters](https://github.com/scpeters), [Bo Anderson](https://github.com/Bo98), [William Woodruff](https://github.com/woodruffw), [Igor Kapkov](https://github.com/igas), [Sam Ford](https://github.com/samford), [Alexander Bayandin](https://github.com/bayandin), [Izaak Beekman](https://github.com/zbeekman), [Eric Knibbe](https://github.com/EricFromCanada), [Viktor Szakats](https://github.com/vszakats), [Thierry Moisan](https://github.com/moisan), [Steven Peters](https://github.com/scpeters), [Tom Schoonjans](https://github.com/tschoonj), [Issy Long](https://github.com/issyl0), [CoreCode](https://github.com/core-code), [Randall](https://github.com/ran-dall), [Rylan Polster](https://github.com/Rylan12), [SeekingMeaning](https://github.com/SeekingMeaning), [William Ma](https://github.com/whoiswillma) and [Dustin Rodrigues](https://github.com/dtrodrigues). Former maintainers with significant contributions include [Jan Viljanen](https://github.com/javian), [JCount](https://github.com/jcount), [commitay](https://github.com/commitay), [Dominyk Tiller](https://github.com/DomT4), [Tim Smith](https://github.com/tdsmith), [Baptiste Fontaine](https://github.com/bfontaine), [Xu Cheng](https://github.com/xu-cheng), [Martin Afanasjew](https://github.com/UniqMartin), [Brett Koonce](https://github.com/asparagui), [Charlie Sharpsteen](https://github.com/Sharpie), [Jack Nagel](https://github.com/jacknagel), [Adam Vandenberg](https://github.com/adamv), [Andrew Janke](https://github.com/apjanke), [Alex Dunn](https://github.com/dunn), [neutric](https://github.com/neutric), [Tomasz Pajor](https://github.com/nijikon), [Uladzislau Shablinski](https://github.com/vladshablinsky), [Alyssa Ross](https://github.com/alyssais), [ilovezfs](https://github.com/ilovezfs), [Chongyu Zhu](https://github.com/lembacon) and Homebrew's creator: [Max Howell](https://github.com/mxcl).
true
Other
Homebrew
brew
9dbe0e7b027962558cb5e194a4695939c29edae2.json
README: update maintainer list
docs/Manpage.md
@@ -1691,7 +1691,7 @@ Homebrew's Technical Steering Committee is Michka Popoff, FX Coudert, Markus Rei Homebrew/brew's Linux maintainers are Michka Popoff, Shaun Jackman, Dawid Dziurla, Issy Long and Maxim Belkin. -Homebrew's other current maintainers are Claudia Pellegrino, Zach Auten, Rui Chen, Vitor Galvao, Caleb Xu, Gautham Goli, Steven Peters, Bo Anderson, William Woodruff, Igor Kapkov, Sam Ford, Alexander Bayandin, Izaak Beekman, Eric Knibbe, Viktor Szakats, Thierry Moisan, Steven Peters, Tom Schoonjans, Issy Long, CoreCode, Randall, Rylan Polster, SeekingMeaning and William Ma. +Homebrew's other current maintainers are Claudia Pellegrino, Zach Auten, Rui Chen, Vitor Galvao, Caleb Xu, Gautham Goli, Steven Peters, Bo Anderson, William Woodruff, Igor Kapkov, Sam Ford, Alexander Bayandin, Izaak Beekman, Eric Knibbe, Viktor Szakats, Thierry Moisan, Steven Peters, Tom Schoonjans, Issy Long, CoreCode, Randall, Rylan Polster, SeekingMeaning, William Ma and Dustin Rodrigues. Former maintainers with significant contributions include Jan Viljanen, JCount, commitay, Dominyk Tiller, Tim Smith, Baptiste Fontaine, Xu Cheng, Martin Afanasjew, Brett Koonce, Charlie Sharpsteen, Jack Nagel, Adam Vandenberg, Andrew Janke, Alex Dunn, neutric, Tomasz Pajor, Uladzislau Shablinski, Alyssa Ross, ilovezfs, Chongyu Zhu and Homebrew's creator: Max Howell.
true
Other
Homebrew
brew
9dbe0e7b027962558cb5e194a4695939c29edae2.json
README: update maintainer list
manpages/brew.1
@@ -2319,7 +2319,7 @@ Homebrew\'s Technical Steering Committee is Michka Popoff, FX Coudert, Markus Re Homebrew/brew\'s Linux maintainers are Michka Popoff, Shaun Jackman, Dawid Dziurla, Issy Long and Maxim Belkin\. . .P -Homebrew\'s other current maintainers are Claudia Pellegrino, Zach Auten, Rui Chen, Vitor Galvao, Caleb Xu, Gautham Goli, Steven Peters, Bo Anderson, William Woodruff, Igor Kapkov, Sam Ford, Alexander Bayandin, Izaak Beekman, Eric Knibbe, Viktor Szakats, Thierry Moisan, Steven Peters, Tom Schoonjans, Issy Long, CoreCode, Randall, Rylan Polster, SeekingMeaning and William Ma\. +Homebrew\'s other current maintainers are Claudia Pellegrino, Zach Auten, Rui Chen, Vitor Galvao, Caleb Xu, Gautham Goli, Steven Peters, Bo Anderson, William Woodruff, Igor Kapkov, Sam Ford, Alexander Bayandin, Izaak Beekman, Eric Knibbe, Viktor Szakats, Thierry Moisan, Steven Peters, Tom Schoonjans, Issy Long, CoreCode, Randall, Rylan Polster, SeekingMeaning, William Ma and Dustin Rodrigues\. . .P Former maintainers with significant contributions include Jan Viljanen, JCount, commitay, Dominyk Tiller, Tim Smith, Baptiste Fontaine, Xu Cheng, Martin Afanasjew, Brett Koonce, Charlie Sharpsteen, Jack Nagel, Adam Vandenberg, Andrew Janke, Alex Dunn, neutric, Tomasz Pajor, Uladzislau Shablinski, Alyssa Ross, ilovezfs, Chongyu Zhu and Homebrew\'s creator: Max Howell\.
true
Other
Homebrew
brew
21c502e05fca16948329c600fcb94fcc74243e0b.json
Remove unused metadata from `bundle` spec.
Library/Homebrew/test/cmd/bundle_spec.rb
@@ -1,6 +1,6 @@ # frozen_string_literal: true -describe "brew bundle", :integration_test, :needs_test_cmd_taps do +describe "brew bundle", :integration_test do describe "check" do it "checks if a Brewfile's dependencies are satisfied", :needs_network do setup_remote_tap "homebrew/bundle"
true
Other
Homebrew
brew
21c502e05fca16948329c600fcb94fcc74243e0b.json
Remove unused metadata from `bundle` spec.
Library/Homebrew/test/spec_helper.rb
@@ -97,10 +97,6 @@ skip "Requires compatibility layer." if ENV["HOMEBREW_NO_COMPAT"] end - config.before(:each, :needs_official_cmd_taps) do - skip "Needs official command Taps." unless ENV["HOMEBREW_TEST_OFFICIAL_CMD_TAPS"] - end - config.before(:each, :needs_linux) do skip "Not on Linux." unless OS.linux? end
true
Other
Homebrew
brew
fc0ae875e35769ee0459ee4788727e5935356708.json
sorbet: update RBI files using Tapioca. Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml).
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -13172,7 +13172,6 @@ class Object HOMEBREW_DEFAULT_CACHE = ::T.let(nil, ::T.untyped) HOMEBREW_DEFAULT_LOGS = ::T.let(nil, ::T.untyped) HOMEBREW_DEFAULT_TEMP = ::T.let(nil, ::T.untyped) - HOMEBREW_HELP = ::T.let(nil, ::T.untyped) HOMEBREW_LIBRARY_PATH = ::T.let(nil, ::T.untyped) HOMEBREW_TAP_CASK_REGEX = ::T.let(nil, ::T.untyped) HOMEBREW_TAP_FORMULA_REGEX = ::T.let(nil, ::T.untyped)
false
Other
Homebrew
brew
0cfb3982f28db801f03b4d53f1297aff0a54d284.json
sorbet: update RBI files using Tapioca. Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml).
Library/Homebrew/sorbet/rbi/gems/codecov@0.2.6.rbi
@@ -1,7 +0,0 @@ -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `codecov` gem. -# Please instead update this file by running `tapioca sync --exclude json`. - -# typed: true - -
true
Other
Homebrew
brew
0cfb3982f28db801f03b4d53f1297aff0a54d284.json
sorbet: update RBI files using Tapioca. Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml).
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -5464,6 +5464,22 @@ class Cask::Audit def strict?(); end end +class Cask::Auditor + def audit_appcast?(); end + + def audit_download?(); end + + def audit_new_cask?(); end + + def audit_online?(); end + + def audit_strict?(); end + + def audit_token_conflicts?(); end + + def quarantine?(); end +end + class Cask::Cask def app(&block); end @@ -5740,12 +5756,6 @@ class Cask::DSL::Version def underscores_to_hyphens(); end end -class Caveats - def empty?(*args, &block); end - - def to_s(*args, &block); end -end - class Checksum def empty?(*args, &block); end @@ -12938,13 +12948,6 @@ end Net::HTTPFatalErrorCode = Net::HTTPClientError -class Net::HTTPGatewayTimeout - HAS_BODY = ::T.let(nil, ::T.untyped) -end - -class Net::HTTPGatewayTimeout -end - Net::HTTPInformation::EXCEPTION_TYPE = Net::HTTPError Net::HTTPInformationCode = Net::HTTPInformation @@ -12999,13 +13002,6 @@ Net::HTTPRedirection::EXCEPTION_TYPE = Net::HTTPRetriableError Net::HTTPRedirectionCode = Net::HTTPRedirection -class Net::HTTPRequestTimeout - HAS_BODY = ::T.let(nil, ::T.untyped) -end - -class Net::HTTPRequestTimeout -end - Net::HTTPRequestURITooLarge = Net::HTTPURITooLong Net::HTTPResponceReceiver = Net::HTTPResponse @@ -13341,19 +13337,53 @@ module ParallelTests WINDOWS = ::T.let(nil, ::T.untyped) end +module Parlour + VERSION = ::T.let(nil, ::T.untyped) +end + class Parlour::ConflictResolver + def resolve_conflicts(*args, &blk); end +end + +class Parlour::ConflictResolver + extend ::T::Sig extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks end +module Parlour::Debugging +end + module Parlour::Debugging::Tree + INDENT_SPACES = ::T.let(nil, ::T.untyped) +end + +module Parlour::Debugging::Tree + extend ::T::Sig extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks + def self.begin(*args, &blk); end + + def self.end(*args, &blk); end + + def self.here(*args, &blk); end + + def self.line_prefix(); end + + def self.text_prefix(); end end module Parlour::Debugging + extend ::T::Sig extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks + def self.debug_mode=(*args, &blk); end + + def self.debug_mode?(*args, &blk); end + + def self.debug_puts(*args, &blk); end + + def self.name_for_debug_caller(*args, &blk); end end class Parlour::DetachedRbiGenerator @@ -13364,69 +13394,451 @@ class Parlour::DetachedRbiGenerator end class Parlour::ParseError + def buffer(*args, &blk); end + + def initialize(buffer, range); end + + def range(*args, &blk); end +end + +class Parlour::ParseError + extend ::T::Sig extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks end class Parlour::Plugin + def generate(*args, &blk); end + + def initialize(*args, &blk); end + + def strictness(*args, &blk); end + + def strictness=(strictness); end +end + +class Parlour::Plugin + extend ::T::Sig + extend ::T::Helpers extend ::T::Private::Abstract::Hooks extend ::T::InterfaceWrapper::Helpers extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks + def self.inherited(*args, &blk); end + + def self.registered_plugins(*args, &blk); end + + def self.run_plugins(*args, &blk); end +end + +class Parlour::RbiGenerator + def current_plugin(*args, &blk); end + + def current_plugin=(current_plugin); end + + def initialize(*args, &blk); end + + def options(*args, &blk); end + + def rbi(*args, &blk); end + + def root(*args, &blk); end +end + +class Parlour::RbiGenerator::Arbitrary + def ==(*args, &blk); end + + def code(*args, &blk); end + + def code=(code); end +end + +class Parlour::RbiGenerator::Arbitrary +end + +class Parlour::RbiGenerator::Attribute + def class_attribute(*args, &blk); end + + def kind(*args, &blk); end +end + +class Parlour::RbiGenerator::Attribute +end + +class Parlour::RbiGenerator::ClassNamespace + def abstract(*args, &blk); end + + def superclass(*args, &blk); end +end + +class Parlour::RbiGenerator::ClassNamespace +end + +class Parlour::RbiGenerator::Constant + def ==(*args, &blk); end + + def eigen_constant(); end + + def value(*args, &blk); end +end + +class Parlour::RbiGenerator::Constant +end + +class Parlour::RbiGenerator::EnumClassNamespace + def enums(*args, &blk); end +end + +class Parlour::RbiGenerator::EnumClassNamespace +end + +class Parlour::RbiGenerator::Extend + def ==(*args, &blk); end +end + +class Parlour::RbiGenerator::Extend +end + +class Parlour::RbiGenerator::Include + def ==(*args, &blk); end +end + +class Parlour::RbiGenerator::Include +end + +class Parlour::RbiGenerator::Method + def ==(*args, &blk); end + + def abstract(*args, &blk); end + + def class_method(*args, &blk); end + + def final(*args, &blk); end + + def implementation(*args, &blk); end + + def overridable(*args, &blk); end + + def override(*args, &blk); end + + def parameters(*args, &blk); end + + def return_type(*args, &blk); end + + def type_parameters(*args, &blk); end +end + +class Parlour::RbiGenerator::Method +end + +class Parlour::RbiGenerator::ModuleNamespace + def interface(*args, &blk); end +end + +class Parlour::RbiGenerator::ModuleNamespace end class Parlour::RbiGenerator::Namespace + def add_comment_to_next_child(*args, &blk); end + + def children(*args, &blk); end + + def constants(*args, &blk); end + + def create_arbitrary(code:, &block); end + def create_attr(*args, &blk); end + + def create_attr_accessor(*args, &blk); end + + def create_attr_reader(*args, &blk); end + + def create_attr_writer(*args, &blk); end + + def create_attribute(*args, &blk); end + + def create_class(*args, &blk); end + + def create_constant(*args, &blk); end + + def create_enum_class(*args, &blk); end + + def create_extend(*args, &blk); end + + def create_extends(*args, &blk); end + + def create_include(*args, &blk); end + + def create_includes(*args, &blk); end + + def create_method(*args, &blk); end + + def create_module(*args, &blk); end + + def create_struct_class(*args, &blk); end + + def create_type_alias(*args, &blk); end + + def extends(*args, &blk); end + + def final(*args, &blk); end + + def includes(*args, &blk); end + + def path(*args, &blk); end +end + +class Parlour::RbiGenerator::Namespace end class Parlour::RbiGenerator::Options + def break_params(*args, &blk); end + + def indented(*args, &blk); end + + def initialize(*args, &blk); end + + def sort_namespaces(*args, &blk); end + + def tab_size(*args, &blk); end +end + +class Parlour::RbiGenerator::Options + extend ::T::Sig extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks end class Parlour::RbiGenerator::Parameter + def ==(*args, &blk); end + + def default(*args, &blk); end + + def initialize(*args, &blk); end + + def kind(*args, &blk); end + + def name(*args, &blk); end + + def name_without_kind(*args, &blk); end + + def to_def_param(*args, &blk); end + + def to_sig_param(*args, &blk); end + + def type(*args, &blk); end + PREFIXES = ::T.let(nil, ::T.untyped) +end + +class Parlour::RbiGenerator::Parameter + extend ::T::Sig extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks end class Parlour::RbiGenerator::RbiObject + def add_comment(*args, &blk); end + def add_comments(*args, &blk); end + + def comments(*args, &blk); end + + def describe(*args, &blk); end + + def generate_rbi(*args, &blk); end + + def generated_by(*args, &blk); end + + def generator(*args, &blk); end + + def initialize(*args, &blk); end + + def merge_into_self(*args, &blk); end + + def mergeable?(*args, &blk); end + + def name(*args, &blk); end end class Parlour::RbiGenerator::RbiObject + extend ::T::Helpers + extend ::T::Sig extend ::T::Private::Abstract::Hooks extend ::T::InterfaceWrapper::Helpers extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks end +class Parlour::RbiGenerator::StructClassNamespace + def props(*args, &blk); end +end + +class Parlour::RbiGenerator::StructClassNamespace +end + +class Parlour::RbiGenerator::StructProp + def ==(*args, &blk); end + + def array(*args, &blk); end + + def default(*args, &blk); end + + def dont_store(*args, &blk); end + + def enum(*args, &blk); end + + def factory(*args, &blk); end + + def foreign(*args, &blk); end + + def immutable(*args, &blk); end + + def initialize(*args, &blk); end + + def name(*args, &blk); end + + def optional(*args, &blk); end + + def override(*args, &blk); end + + def redaction(*args, &blk); end + + def to_prop_call(*args, &blk); end + + def type(*args, &blk); end + EXTRA_PROPERTIES = ::T.let(nil, ::T.untyped) +end + class Parlour::RbiGenerator::StructProp + extend ::T::Sig extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks end class Parlour::RbiGenerator + extend ::T::Sig extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks end module Parlour::TypeLoader +end + +module Parlour::TypeLoader + extend ::T::Sig extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks + def self.load_file(*args, &blk); end + + def self.load_project(*args, &blk); end + + def self.load_source(*args, &blk); end +end + +class Parlour::TypeParser + def ast(*args, &blk); end + + def ast=(ast); end + + def body_has_modifier?(*args, &blk); end + + def body_includes_and_extends(*args, &blk); end + + def constant_names(*args, &blk); end + + def generator(*args, &blk); end + + def generator=(generator); end + + def initialize(*args, &blk); end + + def node_to_s(*args, &blk); end + + def parse_all(*args, &blk); end + + def parse_err(*args, &blk); end + + def parse_method_into_methods(*args, &blk); end + + def parse_path_to_object(*args, &blk); end + + def parse_sig_into_methods(*args, &blk); end + + def parse_sig_into_sig(*args, &blk); end + + def previous_sibling_sig_node?(*args, &blk); end + + def sig_node?(*args, &blk); end + + def unknown_node_errors(*args, &blk); end + + def zip_by(*args, &blk); end +end + +class Parlour::TypeParser::IntermediateSig + def abstract(); end + + def abstract=(val); end + + def final(); end + + def final=(val); end + + def initialize(*args, &blk); end + + def overridable(); end + + def overridable=(val); end + + def override(); end + + def override=(val); end + + def params(); end + + def params=(val); end + + def return_type(); end + + def return_type=(val); end + + def type_parameters(); end + + def type_parameters=(val); end end class Parlour::TypeParser::IntermediateSig def self.inherited(s); end end class Parlour::TypeParser::NodePath + def child(*args, &blk); end + + def indices(*args, &blk); end + + def initialize(*args, &blk); end + + def parent(*args, &blk); end + + def sibling(*args, &blk); end + + def traverse(*args, &blk); end +end + +class Parlour::TypeParser::NodePath + extend ::T::Sig extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks end class Parlour::TypeParser + extend ::T::Sig extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks + def self.from_source(*args, &blk); end +end + +module Parlour end ParseError = Racc::ParseError @@ -22354,49 +22766,6 @@ end module TZInfo end -module Tapioca - VERSION = ::T.let(nil, ::T.untyped) -end - -class Tapioca::Cli - include ::Thor::Actions - def dsl(*constants); end - - def generate(*gems); end - - def generator(); end - - def init(); end - - def require(); end - - def sync(); end - - def todo(); end -end - -class Tapioca::Cli -end - -module Tapioca::Compilers -end - -module Tapioca::Compilers::Dsl -end - -class Tapioca::Compilers::Dsl::Base - def decorate(*args, &blk); end - - def gather_constants(*args, &blk); end - - def handles?(*args, &blk); end - - def initialize(*args, &blk); end - - def processable_constants(*args, &blk); end - SPECIAL_METHOD_NAMES = ::T.let(nil, ::T.untyped) -end - class Tapioca::Compilers::Dsl::Base extend ::T::Sig extend ::T::Helpers @@ -22406,64 +22775,20 @@ class Tapioca::Compilers::Dsl::Base extend ::T::Private::Methods::SingletonMethodHooks end -module Tapioca::Compilers::Dsl -end - -class Tapioca::Compilers::DslCompiler - def error_handler(*args, &blk); end - - def generators(*args, &blk); end - - def initialize(*args, &blk); end - - def requested_constants(*args, &blk); end - - def run(*args, &blk); end -end - class Tapioca::Compilers::DslCompiler extend ::T::Sig extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks end -class Tapioca::Compilers::RequiresCompiler - def compile(*args, &blk); end - - def initialize(*args, &blk); end -end - class Tapioca::Compilers::RequiresCompiler extend ::T::Sig extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks end -module Tapioca::Compilers::Sorbet - SORBET = ::T.let(nil, ::T.untyped) -end - module Tapioca::Compilers::Sorbet extend ::T::Private::Methods::SingletonMethodHooks - def self.run(*args, &blk); end - - def self.sorbet_path(*args, &blk); end -end - -module Tapioca::Compilers::SymbolTable -end - -class Tapioca::Compilers::SymbolTable::SymbolGenerator - def gem(); end - - def generate(*args, &blk); end - - def indent(); end - - def initialize(*args, &blk); end - IGNORED_SYMBOLS = ::T.let(nil, ::T.untyped) - SPECIAL_METHOD_NAMES = ::T.let(nil, ::T.untyped) - TYPE_PARAMETER_MATCHER = ::T.let(nil, ::T.untyped) end class Tapioca::Compilers::SymbolTable::SymbolGenerator @@ -22472,28 +22797,8 @@ class Tapioca::Compilers::SymbolTable::SymbolGenerator extend ::T::Private::Methods::SingletonMethodHooks end -module Tapioca::Compilers::SymbolTable::SymbolLoader -end - -class Tapioca::Compilers::SymbolTable::SymbolLoader::SymbolTableParser -end - -class Tapioca::Compilers::SymbolTable::SymbolLoader::SymbolTableParser - def self.parse(object, parents=T.unsafe(nil)); end -end - module Tapioca::Compilers::SymbolTable::SymbolLoader extend ::T::Private::Methods::SingletonMethodHooks - def self.ignore_symbol?(symbol); end - - def self.list_from_paths(*args, &blk); end -end - -module Tapioca::Compilers::SymbolTable -end - -class Tapioca::Compilers::SymbolTableCompiler - def compile(*args, &blk); end end class Tapioca::Compilers::SymbolTableCompiler @@ -22502,110 +22807,26 @@ class Tapioca::Compilers::SymbolTableCompiler extend ::T::Private::Methods::SingletonMethodHooks end -class Tapioca::Compilers::TodosCompiler - def compile(*args, &blk); end -end - class Tapioca::Compilers::TodosCompiler extend ::T::Sig extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks end -module Tapioca::Compilers -end - -class Tapioca::Config - def exclude(); end - - def generate_command(); end - - def generators(); end - - def initialize(*args, &blk); end - - def outdir(); end - - def outpath(*args, &blk); end - - def postrequire(); end - - def prerequire(); end - - def todos_path(); end - - def typed_overrides(); end - DEFAULT_DSLDIR = ::T.let(nil, ::T.untyped) - DEFAULT_GEMDIR = ::T.let(nil, ::T.untyped) - DEFAULT_OVERRIDES = ::T.let(nil, ::T.untyped) - DEFAULT_POSTREQUIRE = ::T.let(nil, ::T.untyped) - DEFAULT_RBIDIR = ::T.let(nil, ::T.untyped) - DEFAULT_TODOSPATH = ::T.let(nil, ::T.untyped) - SORBET_CONFIG = ::T.let(nil, ::T.untyped) - SORBET_PATH = ::T.let(nil, ::T.untyped) - TAPIOCA_CONFIG = ::T.let(nil, ::T.untyped) - TAPIOCA_PATH = ::T.let(nil, ::T.untyped) -end - class Tapioca::Config extend ::T::Sig extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks - def self.inherited(s); end -end - -class Tapioca::ConfigBuilder - DEFAULT_OPTIONS = ::T.let(nil, ::T.untyped) end class Tapioca::ConfigBuilder extend ::T::Private::Methods::SingletonMethodHooks - def self.from_options(*args, &blk); end -end - -module Tapioca::ConstantLocator -end - -module Tapioca::ConstantLocator - def self.files_for(klass); end -end - -class Tapioca::Error -end - -class Tapioca::Error end class Tapioca::Gemfile - def dependencies(*args, &blk); end - - def gem(*args, &blk); end - - def initialize(*args, &blk); end - - def require(*args, &blk); end Spec = ::T.let(nil, ::T.untyped) end -class Tapioca::Gemfile::Gem - def contains_path?(*args, &blk); end - - def files(*args, &blk); end - - def full_gem_path(*args, &blk); end - - def ignore?(*args, &blk); end - - def initialize(*args, &blk); end - - def name(*args, &blk); end - - def rbi_file_name(*args, &blk); end - - def version(*args, &blk); end - IGNORED_GEMS = ::T.let(nil, ::T.untyped) -end - class Tapioca::Gemfile::Gem extend ::T::Sig extend ::T::Private::Methods::MethodHooks @@ -22618,60 +22839,22 @@ class Tapioca::Gemfile extend ::T::Private::Methods::SingletonMethodHooks end -class Tapioca::Generator - def build_dsl(*args, &blk); end - - def build_gem_rbis(*args, &blk); end - - def build_requires(*args, &blk); end - - def build_todos(*args, &blk); end - - def config(*args, &blk); end - - def initialize(*args, &blk); end - - def sync_rbis_with_gemfile(*args, &blk); end -end - class Tapioca::Generator extend ::T::Sig extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks end -class Tapioca::Loader - def initialize(*args, &blk); end - - def load_bundle(*args, &blk); end - - def load_rails(*args, &blk); end -end - class Tapioca::Loader extend ::T::Sig extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks end -class Tapioca::SorbetConfig - def ignore(); end - - def initialize(*args, &blk); end - - def paths(*args, &blk); end -end - class Tapioca::SorbetConfig extend ::T::Sig extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks - def self.parse_file(*args, &blk); end - - def self.parse_string(*args, &blk); end -end - -module Tapioca end class Tempfile
true
Other
Homebrew
brew
2263b0702fc115ef18781d3601e0b0f1fa4a118b.json
readme: Update maintainer list
README.md
@@ -58,7 +58,7 @@ Homebrew's [Technical Steering Committee](https://docs.brew.sh/Homebrew-Governan Homebrew/brew's Linux maintainers are [Michka Popoff](https://github.com/imichka), [Shaun Jackman](https://github.com/sjackman), [Dawid Dziurla](https://github.com/dawidd6), [Issy Long](https://github.com/issyl0) and [Maxim Belkin](https://github.com/maxim-belkin). -Homebrew's other current maintainers are [Claudia Pellegrino](https://github.com/claui), [Zach Auten](https://github.com/zachauten), [Rui Chen](https://github.com/chenrui333), [Vitor Galvao](https://github.com/vitorgalvao), [Caleb Xu](https://github.com/alebcay), [Gautham Goli](https://github.com/GauthamGoli), [Steven Peters](https://github.com/scpeters), [Bo Anderson](https://github.com/Bo98), [William Woodruff](https://github.com/woodruffw), [Igor Kapkov](https://github.com/igas), [Sam Ford](https://github.com/samford), [Alexander Bayandin](https://github.com/bayandin), [Izaak Beekman](https://github.com/zbeekman), [Eric Knibbe](https://github.com/EricFromCanada), [Viktor Szakats](https://github.com/vszakats), [Thierry Moisan](https://github.com/moisan), [Steven Peters](https://github.com/scpeters), [Tom Schoonjans](https://github.com/tschoonj), [Issy Long](https://github.com/issyl0), [CoreCode](https://github.com/core-code), [Randall](https://github.com/ran-dall), [Rylan Polster](https://github.com/Rylan12) and [SeekingMeaning](https://github.com/SeekingMeaning). +Homebrew's other current maintainers are [Claudia Pellegrino](https://github.com/claui), [Zach Auten](https://github.com/zachauten), [Rui Chen](https://github.com/chenrui333), [Vitor Galvao](https://github.com/vitorgalvao), [Caleb Xu](https://github.com/alebcay), [Gautham Goli](https://github.com/GauthamGoli), [Steven Peters](https://github.com/scpeters), [Bo Anderson](https://github.com/Bo98), [William Woodruff](https://github.com/woodruffw), [Igor Kapkov](https://github.com/igas), [Sam Ford](https://github.com/samford), [Alexander Bayandin](https://github.com/bayandin), [Izaak Beekman](https://github.com/zbeekman), [Eric Knibbe](https://github.com/EricFromCanada), [Viktor Szakats](https://github.com/vszakats), [Thierry Moisan](https://github.com/moisan), [Steven Peters](https://github.com/scpeters), [Tom Schoonjans](https://github.com/tschoonj), [Issy Long](https://github.com/issyl0), [CoreCode](https://github.com/core-code), [Randall](https://github.com/ran-dall), [Rylan Polster](https://github.com/Rylan12), [SeekingMeaning](https://github.com/SeekingMeaning) and [William Ma](https://github.com/whoiswillma). Former maintainers with significant contributions include [Jan Viljanen](https://github.com/javian), [JCount](https://github.com/jcount), [commitay](https://github.com/commitay), [Dominyk Tiller](https://github.com/DomT4), [Tim Smith](https://github.com/tdsmith), [Baptiste Fontaine](https://github.com/bfontaine), [Xu Cheng](https://github.com/xu-cheng), [Martin Afanasjew](https://github.com/UniqMartin), [Brett Koonce](https://github.com/asparagui), [Charlie Sharpsteen](https://github.com/Sharpie), [Jack Nagel](https://github.com/jacknagel), [Adam Vandenberg](https://github.com/adamv), [Andrew Janke](https://github.com/apjanke), [Alex Dunn](https://github.com/dunn), [neutric](https://github.com/neutric), [Tomasz Pajor](https://github.com/nijikon), [Uladzislau Shablinski](https://github.com/vladshablinsky), [Alyssa Ross](https://github.com/alyssais), [ilovezfs](https://github.com/ilovezfs), [Chongyu Zhu](https://github.com/lembacon) and Homebrew's creator: [Max Howell](https://github.com/mxcl).
true
Other
Homebrew
brew
2263b0702fc115ef18781d3601e0b0f1fa4a118b.json
readme: Update maintainer list
docs/Manpage.md
@@ -1691,7 +1691,7 @@ Homebrew's Technical Steering Committee is Michka Popoff, FX Coudert, Markus Rei Homebrew/brew's Linux maintainers are Michka Popoff, Shaun Jackman, Dawid Dziurla, Issy Long and Maxim Belkin. -Homebrew's other current maintainers are Claudia Pellegrino, Zach Auten, Rui Chen, Vitor Galvao, Caleb Xu, Gautham Goli, Steven Peters, Bo Anderson, William Woodruff, Igor Kapkov, Sam Ford, Alexander Bayandin, Izaak Beekman, Eric Knibbe, Viktor Szakats, Thierry Moisan, Steven Peters, Tom Schoonjans, Issy Long, CoreCode, Randall, Rylan Polster and SeekingMeaning. +Homebrew's other current maintainers are Claudia Pellegrino, Zach Auten, Rui Chen, Vitor Galvao, Caleb Xu, Gautham Goli, Steven Peters, Bo Anderson, William Woodruff, Igor Kapkov, Sam Ford, Alexander Bayandin, Izaak Beekman, Eric Knibbe, Viktor Szakats, Thierry Moisan, Steven Peters, Tom Schoonjans, Issy Long, CoreCode, Randall, Rylan Polster, SeekingMeaning and William Ma. Former maintainers with significant contributions include Jan Viljanen, JCount, commitay, Dominyk Tiller, Tim Smith, Baptiste Fontaine, Xu Cheng, Martin Afanasjew, Brett Koonce, Charlie Sharpsteen, Jack Nagel, Adam Vandenberg, Andrew Janke, Alex Dunn, neutric, Tomasz Pajor, Uladzislau Shablinski, Alyssa Ross, ilovezfs, Chongyu Zhu and Homebrew's creator: Max Howell.
true
Other
Homebrew
brew
2263b0702fc115ef18781d3601e0b0f1fa4a118b.json
readme: Update maintainer list
manpages/brew.1
@@ -2319,7 +2319,7 @@ Homebrew\'s Technical Steering Committee is Michka Popoff, FX Coudert, Markus Re Homebrew/brew\'s Linux maintainers are Michka Popoff, Shaun Jackman, Dawid Dziurla, Issy Long and Maxim Belkin\. . .P -Homebrew\'s other current maintainers are Claudia Pellegrino, Zach Auten, Rui Chen, Vitor Galvao, Caleb Xu, Gautham Goli, Steven Peters, Bo Anderson, William Woodruff, Igor Kapkov, Sam Ford, Alexander Bayandin, Izaak Beekman, Eric Knibbe, Viktor Szakats, Thierry Moisan, Steven Peters, Tom Schoonjans, Issy Long, CoreCode, Randall, Rylan Polster and SeekingMeaning\. +Homebrew\'s other current maintainers are Claudia Pellegrino, Zach Auten, Rui Chen, Vitor Galvao, Caleb Xu, Gautham Goli, Steven Peters, Bo Anderson, William Woodruff, Igor Kapkov, Sam Ford, Alexander Bayandin, Izaak Beekman, Eric Knibbe, Viktor Szakats, Thierry Moisan, Steven Peters, Tom Schoonjans, Issy Long, CoreCode, Randall, Rylan Polster, SeekingMeaning and William Ma\. . .P Former maintainers with significant contributions include Jan Viljanen, JCount, commitay, Dominyk Tiller, Tim Smith, Baptiste Fontaine, Xu Cheng, Martin Afanasjew, Brett Koonce, Charlie Sharpsteen, Jack Nagel, Adam Vandenberg, Andrew Janke, Alex Dunn, neutric, Tomasz Pajor, Uladzislau Shablinski, Alyssa Ross, ilovezfs, Chongyu Zhu and Homebrew\'s creator: Max Howell\.
true