Skip to content
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

Further automate #2962

merged 2 commits into from Aug 30, 2018


Copy link

@phansch phansch commented Jul 25, 2018

The script now runs the tests after cargo fmt.

Copy link

@Manishearth Manishearth commented Jul 25, 2018

Are we running this at all now given that we distribute clippy with rustc?

I was going to suggest replacing the published clippy with a no-op crate that tells you to install clippy the real way via a build script

Copy link
Member Author

@phansch phansch commented Jul 26, 2018

If we don't release versions or publish git tags anymore, we can change the commit message in this script and remove a few replacements from util/ Apart from that, I think we can continue to use the script in one form or another. It does a lot of things currently:

  1. Some git diffing, which I don't really understand the purpose of
  2. Calls util/ which should be used when adding new lints, but sometimes is forgotten/done manually. Running this during publishing just makes sure that the lint counter in the README is correct and that the changelog links are correct. The script..
    1. Updates the lint counter in the README
    2. Updates the hidden changelog lint links at the bottom
    3. Sets the clippy_lints version in Cargo.toml to the clippy version
    4. Inserts missing pub mod lint_name in clippy_lints/src/
    5. Adds missing lints to the respective lint groups in clippy_lints/src/
  3. It creates a "Bump the version" commit with the above changes
  4. It runs rustfmt
  5. It tells the user a few more manual things to do in preparation for publishing a new release
Copy link

@oli-obk oli-obk commented Aug 7, 2018

The diffing was to ensure that you didn't forget to actually bump the verison or edit the CHANGELOG.

Just remove all that nonsense now ;)

Because we no bump versions
Copy link
Member Author

@phansch phansch commented Aug 30, 2018

Removed the git diffing part

@oli-obk oli-obk merged commit d3f78d6 into rust-lang:master Aug 30, 2018
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
continuous-integration/travis-ci/pr The Travis CI build passed
@phansch phansch deleted the phansch:further_automate_pre_publish branch Aug 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants