bazelbuild / bazelisk

A user-friendly launcher for Bazel.
Apache License 2.0
1.95k stars 300 forks source link

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

Open albertocavalcante opened 1 week ago

albertocavalcante commented 1 week ago

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.