cirruslabs / tart

macOS and Linux VMs on Apple Silicon to use in CI and other automations
https://tart.run
Other
3.65k stars 102 forks source link

Set up automatic installation of shell completion files #766

Closed bartekpacia closed 3 months ago

bartekpacia commented 3 months ago

Same as https://github.com/cirruslabs/orchard/pull/157 and https://github.com/cirruslabs/cirrus-cli/pull/696

Learn more: https://apple.github.io/swift-argument-parser/documentation/argumentparser/installingcompletionscripts

CLAassistant commented 3 months ago

CLA assistant check
All committers have signed the CLA.

torarnv commented 3 months ago
❯ brew upgrade tart
==> Upgrading 1 outdated package:
cirruslabs/cli/tart 2.7.2 -> 2.8.0
==> Fetching cirruslabs/cli/tart
==> Downloading https://github.com/cirruslabs/tart/releases/download/2.8.0/tart-arm64.tar.gz
Already downloaded: /Users/torarne/Library/Caches/Homebrew/downloads/8797b6e03f2f615f811d53fb0dfe6b60768488707feba2f3a8c5bba1a026d428--tart-arm64.tar.gz
==> Upgrading cirruslabs/cli/tart
  2.7.2 -> 2.8.0
brew: exec failed: {"SHELL"=>"bash"}
Error: Failure while executing; `\{\"SHELL\"=\>\"bash\"\} /opt/homebrew/Cellar/tart/2.8.0/bin/tart --generate-completion-script bash` exited with 1. Here's the output:
torarnv commented 3 months ago
❯ brew upgrade tart --verbose
==> Upgrading 1 outdated package:
cirruslabs/cli/tart 2.7.2 -> 2.8.0
==> Fetching cirruslabs/cli/tart
==> Downloading https://github.com/cirruslabs/tart/releases/download/2.8.0/tart-arm64.tar.gz
Already downloaded: /Users/torarne/Library/Caches/Homebrew/downloads/8797b6e03f2f615f811d53fb0dfe6b60768488707feba2f3a8c5bba1a026d428--tart-arm64.tar.gz
==> Verifying checksum for '8797b6e03f2f615f811d53fb0dfe6b60768488707feba2f3a8c5bba1a026d428--tart-arm64.tar.gz'
==> Upgrading cirruslabs/cli/tart
  2.7.2 -> 2.8.0
rm /opt/homebrew/bin/tart
/usr/bin/env tar --extract --no-same-owner --file /Users/torarne/Library/Caches/Homebrew/downloads/8797b6e03f2f615f811d53fb0dfe6b60768488707feba2f3a8c5bba1a026d428--tart-arm64.tar.gz --directory /private/tmp/homebrew-unpack20240403-29373-hctg4a
/usr/bin/env cp -pR /private/tmp/homebrew-unpack20240403-29373-hctg4a/LICENSE /private/tmp/tart-20240403-29373-nx3rq4/LICENSE
/usr/bin/env cp -pR /private/tmp/homebrew-unpack20240403-29373-hctg4a/tart.app/. /private/tmp/tart-20240403-29373-nx3rq4/tart.app
brew: exec failed: {"SHELL"=>"bash"}
ln -s ../Cellar/tart/2.7.2/bin/tart tart
Error: Failure while executing; `\{\"SHELL\"=\>\"bash\"\} /opt/homebrew/Cellar/tart/2.8.0/bin/tart --generate-completion-script bash` exited with 1. Here's the output:
torarnv commented 3 months ago

Not sure why it's trying to do ln -s ../Cellar/tart/2.7.2/bin/tart tart

torarnv commented 3 months ago

https://github.com/torarnv/tart/pull/new/generate-completions-using-tart-app