-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): fix case where linkLocalBazel fails when os.UserCacheDir re…
…turns path starting with ~ (#1182) Also run `help flags-as-proto` command in a UserCacheDir() location instead of the tmp dir and fix order of error handling for the result of that call. UserCacheDir() is more robust since tmpdir is not guaranteed to exist or to be writable (as per [golang docs](https://pkg.go.dev/os#TempDir)). We already depend on UserCacheDir() in the CLI code. GitOrigin-RevId: df084e1effce5ba4a813f56b33260e9749c5526d
- Loading branch information
1 parent
bb0946f
commit 41988f9
Showing
2 changed files
with
45 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters