-
-
Notifications
You must be signed in to change notification settings - Fork 4
Submodule support #4
Comments
Can you tell me why submodule is important to you? The exisiting tfs/azure devops has already supported that scenario. |
I have a group of tasks shared between my pipelines with which I download aditional repos. So I wish to download a container repo rather individual. I do not see how devops covers this case at least in a straightforward as this task. |
Personally, I don’t recommend downloading submodule with this task. There are a lot of things to handle when downloading submodule, such as auth stuff. I recommend using built-in get source task to do that. If I assume the submodule repo doesn’t contain auth to download, will it suit you? |
I want to to download this container repo https://github.com/eXpandFramework/github. I prefer the container so I can add remove projects to it rather individual repos |
I do not want to auth or anything this a public repo |
I see. You make container repo as a shortcut for downloading multiple repo. Based on my experience, container repo will not contain latest update for all submodules. Whenever submodule repo updated, the container repo must be updated also to get the latest version. Suppose submodule IssueNotifier last update is yesterday, and the container repo is created at that time. When there's a commit to repo IssueNotifier next day, then the container repo still contains yesterday update for submodule IssueNotifier. You need to maintain the container repo to keep it updated, either update it manually (pull update submodule IssueNotifier inside container repo) or use another task to sync between submodule repo with container repo. Second issue, the CI build will not work for submodule path also. For example if you create CI build to be triggered whenever all repos (IssueNotifier, OctokitEx, ReleaseNoteGenerator) updated, that won't work, because the build can't filter submodule path. At least with built-in azure devops feature. Perhaps you need another extension to get this works. These are the reason behind creating this extension, which supporting download multiple git repo in 1 build (which TFVC can do this but the git version does not). Of course, the second issue (CI build) is still not resolved. I suggest to create 3 tasks to download each repo, rather than using 1 task to download container repo with submodules. It has benefit where you can specify difference branch for each repo without commiting to container repo. For example, you can download ReleaseNoteGenerator with master branch while the other repos use the same branch as Get Source task. Let me know your comment. |
does it fetch submodules?
The text was updated successfully, but these errors were encountered: