I tried to upgrade netclient from 0.16.0 to 0.16.1 on my laptop with M1 chip and macOS Monterey, but brew upgrade netclient failed with the message Error: Cask 'netclient' definition is invalid: uninstall :script without :executable. The same error will also occur if I try brew uninstall netclient or brew reinstall netclient.
> brew upgrade netclient
==> Upgrading 1 outdated package:
gravitl/netclient/netclient 0.16.0 -> 0.16.1
==> Upgrading netclient
==> Downloading https://fileserver.netmaker.org/v0.16.1/darwin/netclient-arm64.tgz
Already downloaded: /Users/xyz/Library/Caches/Homebrew/downloads/9f9edc353fa2425663f1294b3bac0a5ff9e472d3e3ddbc873be1b740431f5143--netclient-arm64.tgz
All formula dependencies satisfied.
==> Running uninstall script
==> Purging files for version 0.16.1 of Cask netclient
Error: Cask 'netclient' definition is invalid: uninstall :script without :executable.
By the way, I have to modify the PATH variable in /Library/LaunchDaemons/com.gravitl.netclient.plist manually to make netclient work, since homebrew put the binaries of wireguard-tools in /opt/homebrew/bin instead of /opt/homebrew/sbin on my system.
I tried to upgrade netclient from 0.16.0 to 0.16.1 on my laptop with M1 chip and macOS Monterey, but
brew upgrade netclient
failed with the messageError: Cask 'netclient' definition is invalid: uninstall :script without :executable.
The same error will also occur if I trybrew uninstall netclient
orbrew reinstall netclient
.By the way, I have to modify the PATH variable in
/Library/LaunchDaemons/com.gravitl.netclient.plist
manually to make netclient work, since homebrew put the binaries of wireguard-tools in/opt/homebrew/bin
instead of/opt/homebrew/sbin
on my system.