-
Notifications
You must be signed in to change notification settings - Fork 4
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
enhance: default fetch depth to 1 if none provided #90
Conversation
Codecov Report
@@ Coverage Diff @@
## master #90 +/- ##
==========================================
- Coverage 50.47% 48.50% -1.98%
==========================================
Files 6 6
Lines 420 400 -20
==========================================
- Hits 212 194 -18
+ Misses 197 196 -1
+ Partials 11 10 -1
|
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.
@dtanner thanks for the contribution!
qq: Do we consider this a breaking change?
To be clear, I'm not against this proposed change. I'm asking for my own understanding.
Good question. Technically I think yes it could be considered a breaking change because it's possible someone is relying on it. Realistically I don't think it is though. i.e. I don't know of a situation where you need full depth for a CI/CD build. |
@dtanner yeah I think that's a fair summary! I think we'll want to make sure we update the next Vela release notes with this information 👍 What are your thoughts on additionally setting an explicit default for the Lines 90 to 95 in faafd58
Right now, with the code you added, the plugin implicitly defaults to What I'm proposing is to keep that code you've added but also set an explicit default of &cli.StringFlag{
EnvVars: []string{"PARAMETER_DEPTH", "GIT_DEPTH"},
FilePath: "/vela/parameters/git/depth,/vela/secrets/git/depth",
Name: "build.depth",
Usage: "enables fetching the repository with the specified depth",
Value: "1",
}, |
Sure - defaulting the parameter sounds like a good addition as well. |
87ec799
to
5db6f62
Compare
@jbrockopp check out the latest rev and lemmeno what you think |
resolves go-vela/community#444