chromium/tools/fuchsia/3pp/gn-sdk/3pp/fetch.py

#!/usr/bin/env python3
# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import os
import sys

sys.path.append(
    os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')))

from fetch_archive import main

_GIT_HOST = 'https://chromium.googlesource.com/chromium/src.git/'

if __name__ == '__main__':
  main(
      _GIT_HOST +
      '+log/refs/heads/main/third_party/fuchsia-gn-sdk?n=1&format=json',
      _GIT_HOST + '+archive/{}/third_party/fuchsia-gn-sdk.tar.gz')