-
Notifications
You must be signed in to change notification settings - Fork 11
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
Set reasonable defaults for cargo config #26
Conversation
This sets `build-std=core` by default and uses the atmega328p as the default target. Users will still need to specify alternate targets if desired, but it makes the build process much easier for a default case.
The commit message should not have any references the web where the git repository is hosted. So remove those references. Yeah, I did that on the previous two merge requests from @n8henrie and I done with keep doing that. github.com is nice packaging material (wrapping paper, bubble plastic) that has no reason to be present in all the cloned git repositories, the actual product we are working on. |
The commit message should not have any references to the web server where the git repository is hosted. So remove those references. Yeah, I did that on the previous two merge requests from @n8henrie and I done with keep doing that. github.com is nice packaging material (wrapping paper, bubble plastic) that has no reason to be present in all the cloned git repositories, the actual product we are working on. |
No problem -- your house, your rules. I do think it's worth clarifying a few ideas though.
It doesn't -- I think you might be confusing the body of the pull request with the commit message, which I was trying to disambiguate here. You're right that the commit message will end up in the git repo and log. However, the body of the pull request is a GitHub-specific feature; as far as I know, pull / merge requests aren't implemented by git itself. My commit message doesn't reference github. You can prove this to yourself like so:
Having seen your strong feelings on commit messages, I tried to do accordingly with mine.
I can see your edits on my prior two PRs, and I'm very confused as to your motivations. You're editing out reference to GitHub in comments that are only accessible through GitHub. EDIT: In other words, my text above is similar to your linking to other issues here: avr-rust/ruduino#46 (comment)
Again, as far as I know none of the content you've been editing ends up in the git repositories. All you're doing is editing content hosted by GitHub that does not go into the repository. If I'm wrong about this I'd be happy to have you show me! @shepmaster @dylanmckay -- is this your understanding as well? Is avoiding mentions of GitHub in pull request bodies and/or commit messages a core value for the avr-rust group? I'm sorry if this is documented somewhere, and I've missed it. Further, I'd like to point out that these links -- for me and many others -- are important and helpful points of documentation. I add them intentionally so that people researching other branches, issues, PRs, and repos can see that a relevant topic has been mentioned in another thread. As a matter of fact, that's how I found this repo in the first place, and it's how I was notified about the recent (and very exciting) updates to the nightly compiler and |
The important thing is that the project moves forward. Let see how the "This", written as
ends up in the git repo we care about. |
Create test.txt, facilitating discussion from avr-rust/delay#26
Partial output of
The #24 and #27, above written as |
I agree, and I'm not trying to be a troublemaker here. Can you find your comment above anywhere in the git repo itself? I doubt it, because I don't even know where one would look for it -- this PR is not yet merged into https://github.com/avr-rust/delay, and your comment is not anywhere to be found on my fork at https://github.com/n8henrie/avr-rust-delay, so where would it even be? As another test, I created a test branch and test pull request at a dummy repo here: n8henrie/killed-9-example#3 Please note the test in the pull request: I merged that PR. Let's see if it shows up in the git repo by searching for the word $ git clone https://github.com/n8henrie/killed-9-example.git
$ cd killed-9-example
$ git checkout n8henrie-patch-1
$ git log --grep relevant
$ grep -rai relevant ./.git/
$ The pull request content is not found as far as I can tell. |
That text is from your merge commit, not coming from my pull request. You control that content, I cannot. |
Note the
commit 29adeff is visible. for the actual commit 2f0f679:
So the This became indeed What happend to In a similar vein as #25 and is unknown to me. |
This is what I've been trying to explain above -- that text is all on GitHub as part of the pull request (a GitHub-specific feature) and not directly relevant to git or the git repo. |
This sets
build-std=core
by default and uses the atmega328p as thedefault target. Users will still need to specify alternate targets if
desired, but it makes the build process much easier for a default case.
In a similar vein as #25 and
#24, this makes it very simple for a very
common case (the default used in the README and the testing docker container);
if all of these are merged, users building for atmega328p should be able to
just
git clone
andcargo build --release
and be on their way without needfor additional flags such as
+nightly
orbuild-std=core
or--target
...