Skip to content

only require rustfmt and update_lints for version bumps #1538

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

Merged
merged 3 commits into from
Feb 21, 2017
Merged

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Feb 14, 2017

fixes #1487

Copy link
Member

@mcarton mcarton left a comment

Choose a reason for hiding this comment

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

❤️

- Write a changelog entry.
- Commit `./Cargo.toml`, `./clippy_lints/Cargo.toml` and `./CHANGELOG.md`.
- Review and commit all changed files
Copy link
Member

Choose a reason for hiding this comment

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

I prefer to have one commit just for the version bump itself,that is the Cargo.tomls and the changelog.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed the script to do this for us

pre_publish.sh Outdated
set -e

cd clippy_lints && cargo fmt && cd ..
cargo fmt
Copy link
Member

Choose a reason for hiding this comment

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

Can it add --write-mode=overwrite if the repo is clean? I hate those .bk files

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

pre_publish.sh Outdated

# add all changed files
git add .
git commit -m "version bump"
Copy link
Member

Choose a reason for hiding this comment

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

This definitely needs to contain the version then. Also, this fails rules 3 and 5.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we tag it later, do we really need the version in there?

@oli-obk
Copy link
Contributor Author

oli-obk commented Feb 19, 2017

any further complaints? or can we merge this?

@oli-obk
Copy link
Contributor Author

oli-obk commented Feb 20, 2017

should we move dogfood tests to version bumps, too?

@mcarton
Copy link
Member

mcarton commented Feb 20, 2017

No. They are good to see the effect of a new lint on a real codebase. See #1556 for example, dogfood shows quite a few nice examples of what the lint does.

@llogiq
Copy link
Contributor

llogiq commented Feb 20, 2017

I'm also bullish in dogfooding.

@oli-obk oli-obk merged commit 7c1efc6 into master Feb 21, 2017
@oli-obk oli-obk deleted the publish branch February 21, 2017 07:31
@llogiq
Copy link
Contributor

llogiq commented Feb 21, 2017

Yay! \o/

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.

Remove rustfmt from travis builds
3 participants