-
Notifications
You must be signed in to change notification settings - Fork 9
Now 'dry run' is default mode. To prevent accidental mistakes. #19
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
Conversation
Now 'dry run' is default mode. To prevent accidental mistakes.
|
hey! thanks for all the recent work on this. Could we maybe make that default configurable? I understand the reason for such a default but its counter to how shell scripts work for almost everything else. Having to type the additional --run for 90% of the times I am running this is a bit annoying |
|
I still find the default counter intuitive, the script if for releasing, not for seeing if a release would work. Git also has a dry-run mode, but that isn't the default for a reason, it would be really hard to work with if it did. I am almost always running the script to release my module so I usually expect that to be the default behavior. Forgetting, having to ctrl-c, arrow up and type --run is pretty bad UX, when I should just be able to type the command. If people want safety then the general procedure is to alias the command with --dry-run always on, but I wouldn't make it the default. :) I do appreciate the attempt to try and prevent mistakes, but in this case I think its over prescriptive and ends up not actually being helpful most of the time. Especially since if you accidentally release it really isn't that hard to undo do it. |
|
Heh. Ok ok 😄 Then what is the best way to address it in I would prefer to leave it as a feature of Then it seems I need to add option smth like that: |
|
And then what do you think about react-bootstrap/react-prop-types#16 ? |
|
that can be up to others since I don't usually work on that project :) |
|
But you don't mind about |
|
sure seems fine :) I'd of course prefer that the default be |
|
Ok then. I'll add it 🍒 Truth is I am also made those Then I did forget to add GitHub Token in my console after reboot 😄 That is my main motivation for such haste to add and release "dry run" default mode. |
|
Thinking about this a bit more, I agree w/@jquense - I think it'd be really valuable to make these scripts be able to default to dry runs, but that the default setting for this config option should probably be to release, just to make things as straightforward as possible. We'd probably want to configure things to go through dry runs, but one extra line of config seems like not too big a deal. |
|
Would it be too much if I then reverse 'defaultDryMode' to 'actual run' (as it was before) in the next minor What do you think guys ? And second question: I presume I could safely just close these two PRs ? |
|
Or I can leave "release-script" : {
"defaultDryRun": "false"
}? |
|
I'm not sure I understand. I think we should just change 136c511#diff-a1ca48439c82c10c6224f7c126531cf8R52 to do |
Then just merge react-bootstrap/react-bootstrap#1329 as is 😉 And then I propose to merge react-bootstrap/react-prop-types#16 too. |
|
Okay - we'll make a note to upgrade again once you have a new release. |
|
For posterity: (from my private gitter chat with @taion)
🍒 |
|
I also agree that dry run should not be the default. |
|
Ok then. It seems I should change the default mode ❇️ |
#19 (comment) The '--run' command line option and "defaultDryRun" have been removed.
|
Version 1.0.0 is out. |
|
Interesting – you didn't want to leave the option and just change the default? |
|
I thought (from that discussion) that nobody needs the "defaultDryRun" option in |
|
I think it's a valuable option. I'd turn it on for e.g. React-Bootstrap. I don't think it should be the default, though. |
|
O.. I see. Ok then I'll put it back 👍 |
#19 (comment) It seems there had been some confusion on my side :)
#19 (comment) It seems there had been some confusion on my side :)
#19 (comment) It seems there had been some confusion on my side :)
|
Shouldn't this be 1.1.0, since it's a new(-ish) feature? 😆 |
|
I decided to use Though I admit that I should have used |

to prevent such things react-bootstrap/react-bootstrap#1325 (comment)