bazelbuild / bazelbuild/bazelisk

Environment variables passed while launching bazelisk is not available for bazel

Open
#301 0 comments 0 reactions 0 assignees View on GitHub
P3 type: support / not a bug (process)
Dominant language
Go
Stars
2.7k
Forks
424
PR merge metrics
No merged PRs in 30d

Description

Hi,
I have a setup where a python file sets few environment variable (e.g. ANDROID_NDK_PATH). In the same python file, I make call to bazelisk through "subprocess.check_call" and by passing the environment variables.
What I observed is that I do not get the same environment variables available to bazel. i.e. I can not access these variables in bazel file.

Contributor guide

Open the contributing guide

Research direction

Reproduce the setup described with Python's subprocess.check_call and the ANDROID_NDK_PATH variable, then trace whether the environment reaches Bazel through Bazelisk. Done means variables passed by the Python launcher are available from the Bazel file.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.