Commit b928432
committed
feat(release): install shell completions on brew install (DX-5783)
The cargo-dist-generated homebrew formula installs the binary but not
shell completions, so brew users got no tab-completion out of the box.
The formula is generated upstream and copied verbatim into the tap each
release, so it can't be hand-edited durably; cargo-dist's template also
dumps any bundled files into pkgshare, where shells don't read them.
Patch the generated formula in release-update-homebrew-tap to run
`qn completions <shell>` at install time via
generate_completions_from_executable. `qn completions` is a pure local
generator (no key, no network), so it's safe during brew install. The
patch is idempotent and hard-fails if cargo-dist's install_binary_aliases!
anchor disappears, so a template change can't silently drop completions.1 parent 9696631 commit b928432
1 file changed
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
| |||
78 | 85 | | |
79 | 86 | | |
80 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
81 | 112 | | |
82 | 113 | | |
83 | 114 | | |
| |||
0 commit comments