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

Fix excessive rebuilding #274

Merged
merged 3 commits into from
Mar 18, 2020
Merged

Fix excessive rebuilding #274

merged 3 commits into from
Mar 18, 2020

Conversation

vmax
Copy link
Contributor

@vmax vmax commented Mar 16, 2020

What is the goal of this PR?

Previously, when switching between IDE and terminal builds, build cache would be fully invalidated. due to changed $PATH which defeats the sole purpose of caching. As per suggestion in this thread, we're enabling strict environment for actions (which sets PATH alongside with other variables to minimally viable preconfigured values).

What are the changes implemented in this PR?

Specify --incompatible_strict_action_env for build/test/run

Copy link
Contributor

@sorsaffari sorsaffari left a comment

Choose a reason for hiding this comment

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

@vmax should we perhaps leave a short comment to explain why we need these three lines there? the bazel's documentation seems clear about what --incompatible_strict_action_env does

@vmax vmax merged commit 3d0e268 into typedb:master Mar 18, 2020
@vmax vmax deleted the fixup-rebuilding branch March 18, 2020 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants