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
Fix to problem with untracked files stopping release #40 #42
Conversation
…fied dirty repo check at release time to be more thorough
I agree that modified files should be committed separately. This patch does not change that. However, there are three ways in which a repository can be dirty:
We need to distinguish between these cases, as we want to allow the user to permit the presence of untracked files when releasing, but not modified tracked files, or staged but uncommitted changes. N.B. I have realised, however, that I've neglected the case where to user has staged but uncommitted modified files. I'll put in a case for that tomorrow, and then resubmit the pull request. |
👍 Sounds reasonable. Thanks for the effort. Much appreciated! |
Conflicts: src/main/scala/ReleasePlugin.scala src/main/scala/Vcs.scala
👍 are you going to include it in the next release of the plugin? |
👍 Thanks @paulmdavies |
👍 sounds like a good change |
Would really love to have this option added, would make this plug-in a better option to git-flow if I didn't have to worry about untracked files for every release. |
@alexbohr it was added. Just specify the ignoreUntrackedFiles key in your sbt configuration. |
Thanks @paulmdavies ... but what version is it released in? Looks like this pull-request is still open and hasn't been merged in yet. |
Is this going to be merged soon? |
bump. what's the matter? why isn't this merged already? |
+1 Where is the merge on this? Would love to have this available :) |
Since master and this PR diverged quite some time ago, I have rebased the commits onto master, cleaned up the code a bit (to avoid compiler warnings) and implemented the Have a look here: https://github.com/avdv/sbt-release/tree/fix-issue-40 WDYT, should I PR this? If you feel adventurous, you can use:
in your |
Yeah, apparently gseitz doesn't care for this project any more. But, since this plugin is community maintained I'm hoping to get this integrated instead of maintaining a separate fork. @jroper, you seem to feel responsible for this plugin. What do you think? |
Responsible? Hmm... lazy but benevolent person with the necessary access to merge and release is a better description for me. If a change is simple for me to review (or has been reviewed by others that I trust), I'll merge it and cut a new release, but only if I have enough time and enough people ask :) Fix the conflicts (or create a new PR) and I'll merge. |
Cool, here you are: #144 |
Added more thorough check for repo dirtiness when release is called.
Now distinguishes between unstaged changes and untracked files. Untracked files can be ignored by setting
ignoreUntrackedFiles := true in the project settings, allowing the user to release even if they have untracked files. This setting defaults to false, for compatibility with existing code.