Skip to content

Question about scmrepo's usage #41

@aguschin

Description

@aguschin

Hi guys. Long story short, now we have this GTO tool that allows you to build an Artifact Registry on top of your repo (see example here). I would like to get your advice on how to use scmrepo in it.
Basically, artifacts are listed in artifacts.yaml. To make sense of the repo,

  1. GTO needs to traverse all commits (starting from heads and going back) and read the content of this artifacts.yaml in each commit.
  2. GTO needs to get a list of git tags will all information (who created that tag, when, etc).

To solve both, I use GitPython now. Everything works pretty well when I have a repo cloned locally, but doesn't work with remote repos. OFC I can clone a repo to a temporary folder and do the same things, but it looks like scmrepo should solve the same kind of tasks for DVC.

So, I would be grateful if you could help me out with this:

  1. Am I right and I can use scmrepo for my task? Does it look like the intended usage?
  2. What is the right way/right methods/functions to call? Maybe you have some simple examples to start with, that would be awesome.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions