Skip to content

Commit

Permalink
pw_env_setup: Don't clear gni vars in CIPD hook
Browse files Browse the repository at this point in the history
Don't clear the variables in the pigweed_environment.gni file when the
CIPD post-checkout hook runs.

Change-Id: I51ec6fcea4d24cdfca5aaeb975547b6fb5a2e99a
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/105157
Reviewed-by: Alexei Frolov <[email protected]>
Commit-Queue: Auto-Submit <[email protected]>
Pigweed-Auto-Submit: Rob Mohr <[email protected]>
  • Loading branch information
mohrr authored and CQ Bot Account committed Aug 5, 2022
1 parent 05b8e4e commit 3bf6cd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pw_env_setup/py/pw_env_setup/env_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,9 @@ def _check_submodule_presence(self):
raise MissingSubmodulesError(', '.join(sorted(missing)))

def _write_gni_file(self):
if self._cipd_only:
return

gni_file = os.path.join(self._project_root, 'build_overrides',
'pigweed_environment.gni')
if self._gni_file:
Expand Down

0 comments on commit 3bf6cd1

Please sign in to comment.