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

Unified Diff: infra/bots/assets/go/create.py

Issue 2230853003: Package Go 1.6.2 in CIPD (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clean Created 4 years, 4 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 | « infra/bots/assets/go/common.py ('k') | infra/bots/assets/go/create_and_upload.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/bots/assets/go/create.py
diff --git a/infra/bots/assets/scripts/create.py b/infra/bots/assets/go/create.py
similarity index 71%
copy from infra/bots/assets/scripts/create.py
copy to infra/bots/assets/go/create.py
index 4f176085fbde447b9e5dca925f6c5e47fee08ef7..7121c155a53ba7bf9659e66b0e59404591078e9c 100755
--- a/infra/bots/assets/scripts/create.py
+++ b/infra/bots/assets/go/create.py
@@ -10,11 +10,13 @@
import argparse
+import subprocess
+GO_URL = "https://storage.googleapis.com/golang/go1.6.3.linux-amd64.tar.gz"
borenet 2016/08/10 14:40:29 Nit: 2 lines between top-level defs. This is Go 1
jcgregorio 2016/08/10 15:01:47 Yeah, 1.7 isn't listed as an available download on
def create_asset(target_dir):
"""Create the asset."""
- raise NotImplementedError('Implement me!')
+ subprocess.check_output("curl %s | tar -C %s -xzf -" % (GO_URL, target_dir), shell=True)
borenet 2016/08/10 14:40:29 Can we download and untar separately so that we ca
jcgregorio 2016/08/10 15:01:47 Done.
def main():
« no previous file with comments | « infra/bots/assets/go/common.py ('k') | infra/bots/assets/go/create_and_upload.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698