-
Notifications
You must be signed in to change notification settings - Fork 105
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
Improve submodule loading #813
Improve submodule loading #813
Conversation
@HeavyWombat should we not expose a way to manipulate the setting of the new arg from https://github.com/shipwright-io/build/blob/main/pkg/reconciler/buildrun/resources/sources/git.go#L36-L43 otherwise why make it and arg at all and just hard code it or do you plan to do that in a separate PR |
@gabemontero Good question. I added the @SaschaSchwarze0 What is your take on this? Do you want the |
To the best I can tell is that setting this to a different value makes sense when you want to access the history of the repository for whatever reason, for example to run So, the flag on the command does not hurt. Before exposing it as a flag on a Git source item under |
I'm good with waiting, as long as we put a comment somewhere near the flag summarizing what @SaschaSchwarze0 spelled out. /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gabemontero The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes #785 Add `--depth` flag to be able to configure the shallow depth setting. Add depth setting to Git submodule command to improve loading times.
@gabemontero @SaschaSchwarze0 Thanks for the feedback. I put in two comment sections explaining the different types of flags and that the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Changes
Add
--depth
flag to be able to configure the shallow depth setting.Add depth setting to Git submodule command to improve loading times.
Fixes #785
Submitter Checklist
See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.
Release Notes