Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Print tool versions on Travis#43

Open
biskit1 wants to merge 3 commits into0xazure:masterfrom
biskit1:iss-32
Open

Print tool versions on Travis#43
biskit1 wants to merge 3 commits into0xazure:masterfrom
biskit1:iss-32

Conversation

@biskit1
Copy link

@biskit1 biskit1 commented Dec 20, 2018

Fixes issue #32 .

Note: this branches off of my iss-21 PR #39 branch. Not sure if this was the correct way to do it?
#39 has not been merged yet, and I wanted to include the version check for the tool I added in that PR, that's why I did it this way.

Also question: @seanprashad added clippy-preview. Wondering why not just rustup component add clippy, and if the rustfmt should also be rustfmt-preview?
Couldn't find much about this online in the little digging I did...

@seanprashad
Copy link

Also question: @seanprashad added clippy-preview. Wondering why not just rustup component add clippy, and if the rustfmt should also be rustfmt-preview?

We chose rustup component add clippy-preview at the time since it was suggested when clippy became available as a rustup component on July 16, 2018 💁🏽‍♂️

But it would be very good to update it from rustup component add clippy-preview to rustup component add clippy as per the Clippy docs

@biskit1
Copy link
Author

biskit1 commented Dec 28, 2018

thanks @seanprashad. Should we open an issue to update that?

@seanprashad
Copy link

Copy link
Owner

@0xazure 0xazure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @biskit1!

this branches off of my iss-21 PR #39 branch. Not sure if this was the correct way to do it?

Generally this isn't correct; pull requests should branch off from and then be made against the main branch (in our case, master). The problem in not doing this is the pull request contains changes that aren't relevant to the topic of the pull request: in this case including the cargo fmt additions as well as printing version numbers.

I wanted to include the version check for the tool I added in that PR

And this is an issue with having many pull requests that deal with related pieces open at the same time 😛 . I think it would be best if you included printing the version for rustfmt as part of #39, and make reference to #32 as you do so; #32 is a general "CI tools should print their version" issue, and #39 introduces a new tool, so it should conform to #32 as well. These rustfmt additions are also preventing the Travis builds for this pull request from passing, so it would be better to keep them all in #39 along with the formatting fixes that will make the build pass.

Wondering why not just rustup component add clippy

The clippy component used to be known as clippy-preview, but now that clippy is considered 1.0 it is available on stable and it looks like its name has been changed. Apparently clippy-preview is now aliased to clippy, but we should definitely transition over to the new name. I can't actually find any information or documentation about this change other than rust-lang/rust-clippy#3502 changing the clippy README instructions, but it's definitely a recent change.

rustfmt should also be rustfmt-preview?

The rustfmt docs say:

rustup component add rustfmt

so it looks like it's just called rustfmt, no -preview suffix.

@biskit1
Copy link
Author

biskit1 commented Jan 15, 2019

Fixed with #39.

@0xazure
Copy link
Owner

0xazure commented Jan 15, 2019

Hey @biskit1, seem my comment on #39, it will not supersede this pull request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants