-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Remove comment left in code #32
Remove comment left in code #32
Conversation
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.
I should probably have been more thorough in my review yesterday too, but I got a bit too excited about actually getting a pull request.
#31 (review) already shows the list of possible values in the output, so I don't have to run the program to review this PR (so you didn't cause noticeable extra work for me).
I'll wait a day before merging this PR in case anything else comes up, since that seems like a good idea in general. I'm not sure if you've read CONTRIBUTING.md, but you're invited to add yourself as copyright holder to both license files if you'd like. You could also add a CHANGELOG.md entry (for both of your PRs combined). I use the following format for upcoming versions: ## next
TODO: Date
- Revisions:
- change title (contributed by @<your GitHub @> in #<PR #> and #<PR #>)
> Further description if necessary. But this is optional. I'll otherwise add it shortly after merging this pull request here. |
(I won't add 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.
I just updated the repository to my newest project template, so if you update your PR with those changes, the failing check should disappear. (This is optional.)
I also just realised I have the --help
output in README.md under Usage. (Sorry, it's been a while since I really worked on this project. I should have requested this change in #31.)
Please update that code block so that it reflects your previous PR.
I'd be happy to do all of the above to help out! |
Awesome, thank you so much, but also remember to take it easy 😅 (I recently overworked myself a bit by having too many side projects at once and it wasn't a pleasant experience. I don't know how much unpaid open-source work you've done so far, but there aren't any deadlines or quotas here. I think the only expectation, if there is any, is to avoid causing harm with your code for personal gain and such, |
This might be a silly question, but do you have a preferred format for adding to the copyright? Should it be on a line by itself, or somewhere else? |
I didn't think to explain this since it's been a while, but I remember spending a few hours doing research when I published my first OSS project. Explaining licensing formalities is probably a bit too much to add to CONTRIBUTING.md, but I'll see if I can add a link to an explanation in this regard to my project template. For now, and this isn't quite general advice, since other projects handle this differently, but for mine: You've likely found them, but the copyright holders lists are currently the following lines: Line 189 in a1a502d
Line 3 in a1a502d
with https://github.com/Tamschi/reserde/blob/a1a502d83bb4447fd585ae7108ce86d03fe10636/COPYRIGHT.md tying those licenses together. You should read these files if you aren't familiar with them already. My projects currently all list copyright holders individually, so please add yourself in a new line directly below each of these. I personally just went with the suggested format, but this is flexible: You can for example not add your email address and/or (at least by my local laws) use a nickname you're recognised under. Functionally, stating your copyright like that makes it easier for you to enforce it if anyone breaks the package license, and gives me (stronger) assurance that there aren't any licensing issues with your contributions. Formatting-wise, go with what looks tidy to you without modifying other lines. It's possible that someone down the line will remove one of the licenses, since this crate is dual-licensed under either of "MIT OR Apache-2.0", but they have to retain at least one of these copyright holders lists, or get everyone to agree individually to change it. You can always change your own entries, of course(, at least as far as I'm aware). There's also the The field is also technically deprecated, so it's possible I'll remove it in the future and have my contact info only elsewhere in the documentation. (See here for which files I include in the package on crates.io.) Generally speaking, if you see contributors lists with individual names, it should be safe to add yourself when contributing. It's usually good form for new contributors to add themselves last, so that the original author(s) are listed first. Also, and I personally chose not to do this since I think it clutters the code a bit, but if a project uses per-file licensing headers, then add yourself only to the files you modified. You'll see this in Linux a lot for example, but it seems to be uncommon for Rust projects. Adding yourself as copyright holder for typo-fixes or formatting PRs would probably look a bit odd, so I avoid doing that. Smaller projects often don't have explicit license formatting guidelines, but since getting contributions is often a rare and precious event for them, it's fine to guess a bit. The maintainer(s) will most likely point it out if there's any issue. |
I really appreciate you taking some time to explain that to me. I'll be better equipped to help in the future because of you. |
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.
(I'm doing this on mobile, so I hope it comes out right.)
Thanks, this takes care of everything except the changelog entry, which is often added by maintainers anyway. I've left a comment where I need clarification, but overall there aren't any blockers now.
I'm just paying it forward, I think. Others have helped me with my PRs in the past and I'd appreciate if you'd do the same in the future, in case you decide to publish your own software this way and happen to get a contributor new to OSS. |
I’d be happy to add the change log. I don’t want to leave extra work |
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.
I've added a few suggestions regarding the changelog entry, to make it more consistent with how I usually write them.
I'll likely have some time to make a release on Thursday afternoon (CEST, so about 30 hours from now). I'll merge the PR at that point and maybe add a little of final polish (in general, I usually quickly go over the code when I publish after not touching the project in a while, in case I spot something I can improve now).
Please let me know if you'd like to avoid being credited in the changelog. The entries will also appear in the Git tag and from there (eventually, when I get around to automate that) in generated GitHub Release notes for this release.
Oh, and don't sweat it! It's pretty much impossible to turn in code in the exact way the maintainer would have done it. Sometimes they'll leave it as-is, sometimes they quietly adjust it a bit (I usually just do that with things like the changelog, but in this case I decided to explain my changes a little more) and sometimes they'll suggest changes like in this case (and rejecting those is often okay! Just add a comment regarding why you wouldn't do something the suggested way and the maintainer should often resolve that discussion once it's clarified). |
(I used a batch-commit to apply my review suggestions from Tamschi#32 (review) here.)
I've published v0.0.3 (and made it a proper GitHub "Release" to celebrate my first received contribution in quite a while) 🎉 Pushing the release tag also created a project chat due to my new Zulip automation. |
Edited the release into v0.0.4 because I'd messed up a bit when I relicensed the program previously and only noticed just now 😅 You can find it here: https://github.com/Tamschi/reserde/releases/tag/v0.0.4 |
This is pretty trivial, but I didn't realize structopt would include the possible values until I played with it more later.
This PR removes two comments that are no longer accurate after #31. My bad for leaving comments like that.