bazelisk icon indicating copy to clipboard operation
bazelisk copied to clipboard

`.bazeliskrc`: Support Variable Expansion and Tilde Notation in Home Directory Paths

Open albertocavalcante opened this issue 2 months ago • 0 comments

Currently if someone sets in .bazeliskrc the following home paths:

BAZELISK_HOME=$HOME/.bazelisk
BAZELISK_HOME=~/.bazelisk

It will invoke os.MkdirAll with the raw string, therefore creating a ./'$HOME' and ./'~' respectively.

I would like to propose supporting both tile and var expansions in the path. Will submit a PR.

albertocavalcante avatar Jun 25 '24 10:06 albertocavalcante