Skip to content

Update .travis.yml #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

Closed
wants to merge 1 commit into from
Closed

Update .travis.yml #2

wants to merge 1 commit into from

Conversation

volzkzg
Copy link

@volzkzg volzkzg commented May 18, 2018

In case you can not find the option --check

In case you can not find the option --check
@davidalber
Copy link
Owner

Hi @volzkzg. Thanks for your contribution!

The purpose of this repository is to verify the example Travis CI config in rustfmt's README works. Thus, the .travis.yml file here is expected to match the snippet in the rustfmt snippet. I would be happy to merge your changes if they are first merged to rustfmt.

The build for this change still failed on the --check flag.

$ rustup component add rustfmt-preview
$ rustup self update
$ cargo fmt --all -- --check
Unrecognized option: 'check'

The command "cargo fmt --all -- --check" exited with 1.

@volzkzg
Copy link
Author

volzkzg commented May 18, 2018

@davidalber Hi David, I solved the problem Unrecognized option: check by add the line

rustup self update

in my case. That's why I made this contribution when I saw you have the same problem.

Let me check what's the real problem here.

@davidalber
Copy link
Owner

I believe it's because you are using nightly.

@volzkzg
Copy link
Author

volzkzg commented May 18, 2018

Yeah, that's true. So I guess it will be solved when next stable version releases.

@volzkzg volzkzg closed this May 18, 2018
@davidalber
Copy link
Owner

davidalber commented May 18, 2018

👍 In rust-lang/rustfmt#2688, I asked when that will happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants