You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m trying to understand the .target field of app artifacts in brew info --json=v2, and whether external commands can rely on .target for an installed cask being the resolved path of the installed app artifact.
I'm working on an external command that would like to consume the installed .app path after brew upgrade, and .target appears to already provide exactly that.
From experimenting, .target appears to behave differently depending on whether the cask is installed.
For a cask that is not installed, .target reflects the current configuration:
The same behavior appears with both caffeine/domzilla-caffeine and freetube/pikachuexe/freetube/pikachuexe-freetube. So it seems that .target is computed from the current config for casks which are not installed, but reports the resolved installed location for installed casks.
Is that behavior intentional, and is it a stable API that external commands may rely on?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Output of
brew configOutput of
brew doctorDescription of issue
I’m trying to understand the
.targetfield of app artifacts inbrew info --json=v2, and whether external commands can rely on.targetfor an installed cask being the resolved path of the installed app artifact.I'm working on an external command that would like to consume the installed .app path after
brew upgrade, and.targetappears to already provide exactly that.From experimenting,
.targetappears to behave differently depending on whether the cask is installed.For a cask that is not installed,
.targetreflects the current configuration:For an installed cask, changing
HOMEBREW_CASK_OPTSno longer changes.target:The same behavior appears with both
caffeine/domzilla-caffeineandfreetube/pikachuexe/freetube/pikachuexe-freetube. So it seems that.targetis computed from the current config for casks which are not installed, but reports the resolved installed location for installed casks.Is that behavior intentional, and is it a stable API that external commands may rely on?
Relevant casks
N/A
Beta Was this translation helpful? Give feedback.
All reactions