17FILE_DIR = os.path.dirname(os.path.abspath(__file__))
18INFRA_BOTS_DIR = os.path.realpath(os.path.join(FILE_DIR, os.pardir, os.pardir))
19sys.path.insert(0, INFRA_BOTS_DIR)
24GO_URL =
"https://go.dev/dl/go1.21.5.linux-amd64.tar.gz"
28 """Create the asset."""
31 zipfile = os.path.join(cwd,
'go.tar.gz')
32 subprocess.check_call([
"wget",
'-O', zipfile, GO_URL])
33 subprocess.check_call([
"tar",
"-xzf", zipfile,
"-C", target_dir])
36 parser = argparse.ArgumentParser()
37 parser.add_argument(
'--target_dir',
'-t', required=
True)
38 args = parser.parse_args()
42if __name__ ==
'__main__':
def create_asset(target_dir)