-
Notifications
You must be signed in to change notification settings - Fork 48
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
feat(deploy): added a --set-default
flag to set the deployed version the new default
#210
feat(deploy): added a --set-default
flag to set the deployed version the new default
#210
Conversation
…n the new default
c3391ff
to
6c113e5
Compare
Thanks for the patch. However, I'm not sure what the benefit of this feature is. There's already the separate More generally though, it's probably a bad sign if you need to call |
Automation is the reason: you can't set the default before having published the version you want as default. This allows to have it automated on first publish.
With this change, I can make it a single commit and avoid forcing an empty one for each deployment. (I won't enter into details, but I also have some other scripting/aliases reasons which make it harder to have both command called in some cases). |
I'm not sure I follow. Would it help if
mike doesn't generate empty commits unless you ask for them via If |
No it's not exactly the same, it will do 2 different commits, one for the deployment, 1 for the
It's not exactly no-op, it is raising a warning:
It's creating support noise because people ask why there is a warning because it is the only warning appearing in the summary. So I would say, yes, it would help having a Note that I am OK with any solution, I just submitted this one as I thought it was the one providing the best compromise between additional code to maintain and provided capabilities. |
Yeah, that's what the part about "with the sole exception" says. I don't see an issue with having a second commit sometimes.
Maybe a
Doing it on I'll add an |
A
That's your opinion from your own experience. You can't say what "make sense" or what'"s best" for my experience and need. I did submit this pull request after trying the above solutions and reaching the conclusion that this would be the best solution. And in-fine a change is still required to make it work so it's not total nonsense. (We seem to have different use cases and what's best to you might not be to me) Anyway, thanks 🙏🏼 if you add an |
I'm saying what makes sense for the design of this application, not anything in particular about your use cases. Specifically, I think it's important to be careful to define the interface to mike in a way that's easy to understand and doesn't produce confusion about what exactly is going to happen under the hood in general, not just for any single scenario. Here, I want to make sure it's as clear as possible that
|
Hi 👋🏼
Given I haven't a CONTRIBUTING file or any contribution process in the README, I allowed myself to submit a pull request.
This pull request adds a
--set-default/-d
flag to thedeploy
command, allowing to set the published version as the new default.Documentation/README has been updated accordingly, and related tests have been added.