Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submodule support #89

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Commits on Nov 13, 2023

  1. Write a test case using a test fixture repository

    This test fails now because the tarball fetching of sources does not
    include files from the submodule (but the fixture references a file as a
    data-file)
    ch1bo committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    2943666 View commit details
    Browse the repository at this point in the history
  2. Add a GitClone rule which fetches sources using git

    Working copies are kept in the _cache/git/ directory.
    ch1bo committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    ba799ae View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    77d2454 View commit details
    Browse the repository at this point in the history
  4. Fetch already cloned working copies and add test fixture

    This adds another version of the same package fetched via git. The same
    working copy from _cache/git/<owner>/<repo> is re-used in both
    PrepareSource steps (which hopefully do not conflict) and copied onto
    individual _cache/<package>/<version> directories.
    
    The second package version in the git-submodule fixture _sources also
    uses a tag name as rev to highlight this is possible as well.
    ch1bo committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    7cd94c9 View commit details
    Browse the repository at this point in the history
  5. Make gitCheckout just an Action, no additional rule

    This avoids some boiler plate and works just the same.
    ch1bo committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    cae3ce4 View commit details
    Browse the repository at this point in the history
  6. Re-add custom rule for GitClone and use git worktree to prepare source

    This re-uses the git repository in the _cache/git/<user>/<repo>
    directory, but uses a temporary directory to get the worktree for a
    given rev to prepare the per-package directory in _cache/<package>.
    ch1bo committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    ac429cc View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    745c03c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ca51e1b View commit details
    Browse the repository at this point in the history