Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OS-specific BAZELISK_HOME #474

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mzapotoczny
Copy link

BAZELISK_HOME should be set as absolute path, but all supported OSes use different folder structure. This might be a problem if we want to globally set BAZELISK_HOME for all developers.

Therefore we want to propose a change to add support for OS-specific BAZELISK_HOME, for example BAZELISK_HOME_WINDOWS.

@google-cla
Copy link

google-cla bot commented Jun 14, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@mzapotoczny
Copy link
Author

@fweikert could you take a look? Thanks in advance :)

@McAmun
Copy link

McAmun commented Dec 4, 2023

@fweikert - could you please have a look on that change ?

@McAmun
Copy link

McAmun commented Feb 27, 2024

@katre can you maybe help here ?

README.md Outdated
@@ -195,6 +198,8 @@ Configuration variables are evaluated with precedence order. The preferred value
* Variables defined in the workspace root `.bazeliskrc`
* Variables defined in the user home `.bazeliskrc`

Additionally, the bazelisk home directory is also evaluated in precedence order. The preffered value is OS-specific e.g. `BAZELISK_HOME_LINUX`, then we fall back to `BAZELISK_HOME`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: preferred

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for catching it, fixed

README.md Outdated
@@ -195,6 +198,8 @@ Configuration variables are evaluated with precedence order. The preferred value
* Variables defined in the workspace root `.bazeliskrc`
* Variables defined in the user home `.bazeliskrc`

Additionally, the bazelisk home directory is also evaluated in precedence order. The preffered value is OS-specific e.g. `BAZELISK_HOME_LINUX`, then we fall back to `BAZELISK_HOME`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazelisk

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants