* Support environments with broken $HOME
Currently in standalone mode dapr cli will install the dapr runtime
binaries into $HOME/.dapr. However, in some environments $HOME is
readonly or os.UserHomeDir() can fail (e.g. AWS Lambda). To support
dapr in these environments this change does 2 things:
1. Allows the user to set DAPR_PATH environment variable to indicate
the location of the dapr runtime binaries.
2. Allows the user to optionally specify --dapr-path cli flag to
indicate the location of the dapr runtime binaries. When both
DAPR_PATH environment variable and --dapr-path CLI flag are present,
the cli flag has higher precedence.
When neither DAPR_PATH nor the --dapr-path CLI flag are present, we
fallback to existing behavior of defaulting to $HOME/.dapr.
Signed-off-by: Mike Brown <github@torvosoft.com>
* Address comments
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
* Address comments
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
* Address comments
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
* Fix unit test
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
* Fix e2e test
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
* Fix lint
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
Signed-off-by: Mike Brown <github@torvosoft.com>
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
* Go linter upgrade to 1.44
Signed-off-by: tanvigour <tanvi.gour@gmail.com>
* remove old excludes and address new ones
Signed-off-by: tanvigour <tanvi.gour@gmail.com>
* fix dapr latest version check for dapr init -k
* adding dashboard --version command
* printing result of version call
* updated reference doc for dashboard version command
* cleaning up commit