Uploaded image for project: 'AI Platform Core Components'
  1. AI Platform Core Components
  2. AIPCC-7611

[python-wheel-build/fromager] Improve git clone so it behaves like pip's VCS feature

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • Development Platform
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      [3681303439] Upstream Reporter: Christian Heimes
      Upstream description:

      Fromager's [gitutils.git_clone](https://github.com/python-wheel-build/fromager/blob/main/src/fromager/gitutils.py) feature does not behave like pip's [VCS support](https://pip.pypa.io/en/stable/topics/vcs-support/). Our helper is less powerful, harder to use, slower, and does not cover all use cases.

      The major differences are:

      We can make our clone API faster and easier to use:

      • clone with blob filter and `--no-checkout`
      • `git checkout
        Unknown macro: {ref}

        `, which can be any git reference like tag, branch, ref, or commit

      • update submodules recursively with a blob filter

      That would reduce the argument list to three arguments (output directory, clone url, ref) and remove the need for `git_options` in PBI.

              Unassigned Unassigned
              upstream-sync Upstream Sync
              Antonio's Team
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: