

"""Create the asset."""


import argparse
import os
import subprocess


def create_asset(target_dir):
  """Create the asset."""
  env = {}
  env.update(os.environ)
  env['GOPATH'] = target_dir
  subprocess.check_call(
      ['go', 'get', '-u', '-t', 'go.skia.org/infra/...'],
      env=env)


def main():
  parser = argparse.ArgumentParser()
  parser.add_argument('--target_dir', '-t', required=True)
  args = parser.parse_args()
  create_asset(args.target_dir)


if __name__ == '__main__':
  main()



"""Create the asset."""


import argparse
import os
import subprocess


def create_asset(target_dir):
  """Create the asset."""
  env = {}
  env.update(os.environ)
  env['GOPATH'] = target_dir
  subprocess.check_call(
      ['go', 'get', '-u', '-t', 'go.skia.org/infra/...'],
      env=env)
  # There's a broken symlink which causes a lot of problems. Create the dir it
  # points to.
  missing_dir = os.path.join(target_dir, 'src', 'go.chromium.org', 'luci',
                             'web', 'inc', 'bower_components')
  os.mkdir(missing_dir)


def main():
  parser = argparse.ArgumentParser()
  parser.add_argument('--target_dir', '-t', required=True)
  args = parser.parse_args()
  create_asset(args.target_dir)


if __name__ == '__main__':
  main()

Add missing symlink target in go_deps asset
[infra] Add missing symlink target in go_deps asset

Bug: skia:
Change-Id: Ic806bddcdc1130e9b96158c19dbff9e16900020c
Reviewed-on: https://skia-review.googlesource.com/157565
Reviewed-by: Ravi Mistry <9fa2e7438b8cb730f96b74865492597170561628@google.com>
Commit-Queue: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.com>

  
  
  """Create the asset."""
  
  
  import argparse
  import os
  import subprocess
  
  
  def create_asset(target_dir):
    """Create the asset."""
    env = {}
    env.update(os.environ)
    env['GOPATH'] = target_dir
    subprocess.check_call(
        ['go', 'get', '-u', '-t', 'go.skia.org/infra/...'],
        env=env)
+   # There's a broken symlink which causes a lot of problems. Create the dir it
+   # points to.
+   missing_dir = os.path.join(target_dir, 'src', 'go.chromium.org', 'luci',
+                              'web', 'inc', 'bower_components')
+   os.mkdir(missing_dir)
  
  
  def main():
    parser = argparse.ArgumentParser()
    parser.add_argument('--target_dir', '-t', required=True)
    args = parser.parse_args()
    create_asset(args.target_dir)
  
  
  if __name__ == '__main__':
    main()
  
Add missing symlink target in go_deps asset
## Code Before:


"""Create the asset."""


import argparse
import os
import subprocess


def create_asset(target_dir):
  """Create the asset."""
  env = {}
  env.update(os.environ)
  env['GOPATH'] = target_dir
  subprocess.check_call(
      ['go', 'get', '-u', '-t', 'go.skia.org/infra/...'],
      env=env)


def main():
  parser = argparse.ArgumentParser()
  parser.add_argument('--target_dir', '-t', required=True)
  args = parser.parse_args()
  create_asset(args.target_dir)


if __name__ == '__main__':
  main()

## Instruction:
Add missing symlink target in go_deps asset
## Code After:


"""Create the asset."""


import argparse
import os
import subprocess


def create_asset(target_dir):
  """Create the asset."""
  env = {}
  env.update(os.environ)
  env['GOPATH'] = target_dir
  subprocess.check_call(
      ['go', 'get', '-u', '-t', 'go.skia.org/infra/...'],
      env=env)
  # There's a broken symlink which causes a lot of problems. Create the dir it
  # points to.
  missing_dir = os.path.join(target_dir, 'src', 'go.chromium.org', 'luci',
                             'web', 'inc', 'bower_components')
  os.mkdir(missing_dir)


def main():
  parser = argparse.ArgumentParser()
  parser.add_argument('--target_dir', '-t', required=True)
  args = parser.parse_args()
  create_asset(args.target_dir)


if __name__ == '__main__':
  main()
