azure-dev icon indicating copy to clipboard operation
azure-dev copied to clipboard

Linux/MacOS binary placement

Open danieljurek opened this issue 3 years ago • 1 comments

We currently default to /usr/local/bin to install the binary on MacOS and Linux machines. We should consider alternative locations (e.g. user's home directory, a system-wide location available in PATH provided programmatically by the OS)

Original Comment: Nothing blocking but longer term I wonder if this should be in some part of the user's HomeDir, as to not require sudo. If we do that we probably want to read https://wiki.archlinux.org/title/XDG_Base_Directory and see what location we should default to (I would guess XDG_DATA_HOME).

Originally posted by @ellismg in https://github.com/Azure/azure-dev/pull/138#discussion_r932790376

danieljurek avatar Aug 01 '22 21:08 danieljurek

Big thumbs up. We should also consider delivering azd via usermode package manager like homebrew, as it both aids discovery and providers the infrastructure for no-sudo utility acquisition.

karolz-ms avatar Aug 03 '22 00:08 karolz-ms

Should this be in the current milestone re. package manager support?

savannahostrowski avatar Jan 19 '23 00:01 savannahostrowski