Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1042)

Unified Diff: build_apprtc_collider.py

Issue 1680173002: Throw away everything in the go workspace except bin. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/webrtc/webrtc.DEPS@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build_apprtc_collider.py
diff --git a/build_apprtc_collider.py b/build_apprtc_collider.py
index f9ce9aa2f646c515fd796d61898aa2f675672eea..2758b1f427bf1e97f2317798725a8fbe9c5f4db0 100755
--- a/build_apprtc_collider.py
+++ b/build_apprtc_collider.py
@@ -13,6 +13,7 @@ import os
import shutil
import subprocess
import sys
+import tempfile
import utils
@@ -40,6 +41,14 @@ def main():
subprocess.check_call([golang_path, 'build', 'collidermain'],
env=golang_env)
+ # Delete everything in the workspace except the build artifacts.
+ go_bin_dir = os.path.join(golang_workspace, 'bin')
+ tmp_dir = tempfile.mkdtemp()
+ shutil.move(go_bin_dir, tmp_dir)
+ shutil.rmtree(golang_workspace)
kjellander_chromium 2016/02/09 16:27:29 If you remove src/out/go-workspace here, then tryi
+ shutil.move(os.path.join(tmp_dir, 'bin'), go_bin_dir)
+ os.rmdir(tmp_dir)
+
if __name__ == '__main__':
sys.exit(main())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698