<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/etc/pre-push.sh, branch automation/bors/try</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=automation/bors/try</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=automation/bors/try'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-09-27T16:39:06+00:00</updated>
<entry>
<title>Add auto extra-checks in pre-push script</title>
<updated>2025-09-27T16:39:06+00:00</updated>
<author>
<name>Shunpoco</name>
<email>tkngsnsk313320@gmail.com</email>
</author>
<published>2025-09-27T13:10:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=aef976ed4c73dab044002b39817509110ddf2cf2'/>
<id>urn:sha1:aef976ed4c73dab044002b39817509110ddf2cf2</id>
<content type='text'>
It enables automatic check changes of Python/C++/JS
before pushing the changes to remote repository.
Those checks happen only when the target type of file is changed.
Otherwise it does not install any dependencies (venv and/or node_modules).
Note that shellcheck and spellcheck are not included in this change, because:
1. Unlike venv/node_modules, shellcheck is not installed automatically by the command, and
2. spellcheck is built whenever pre-push script is run, it forces developer to wait extra time
So not to break the current productivity, this commit skips them.
</content>
</entry>
<entry>
<title>Skip `tidy` in pre-push hook if the user is deleting a remote branch</title>
<updated>2025-02-25T13:48:31+00:00</updated>
<author>
<name>Yotam Ofek</name>
<email>yotam.ofek@gmail.com</email>
</author>
<published>2025-02-25T13:08:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=41a7c8312d9b21bbf96da0d39b5650dde03ec7ef'/>
<id>urn:sha1:41a7c8312d9b21bbf96da0d39b5650dde03ec7ef</id>
<content type='text'>
</content>
</entry>
<entry>
<title>remove `GIT_DIR` handling in pre-push hook</title>
<updated>2024-06-19T04:33:12+00:00</updated>
<author>
<name>onur-ozkan</name>
<email>work@onurozkan.dev</email>
</author>
<published>2024-06-19T04:33:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=279bf05ffbd363f7250e8c57667fdac0c629c7f7'/>
<id>urn:sha1:279bf05ffbd363f7250e8c57667fdac0c629c7f7</id>
<content type='text'>
This is already handled from bootstrap at
https://github.com/rust-lang/rust/blob/a1ca449981e3b8442e358026437b7bedb9a1458e/src/bootstrap/src/utils/helpers.rs#L504-L506.

Signed-off-by: onur-ozkan &lt;work@onurozkan.dev&gt;
</content>
</entry>
<entry>
<title>User may want to skip tidy check sometimes</title>
<updated>2023-06-30T07:37:10+00:00</updated>
<author>
<name>yukang</name>
<email>moorekang@gmail.com</email>
</author>
<published>2023-06-30T07:37:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cfa1a79009503d7ba12f39522c4d622e4ea239c8'/>
<id>urn:sha1:cfa1a79009503d7ba12f39522c4d622e4ea239c8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix `src/etc/pre-push.sh` when `build.locked-deps` is already set in config.toml</title>
<updated>2023-05-31T16:54:27+00:00</updated>
<author>
<name>jyn</name>
<email>github@jyn.dev</email>
</author>
<published>2023-05-31T16:54:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f692cf6fd16568bf05054d5f67bd87bf075eee51'/>
<id>urn:sha1:f692cf6fd16568bf05054d5f67bd87bf075eee51</id>
<content type='text'>
Before, cargo would error:
```
; git push
Running pre-push script /home/jyn/src/rust/x test tidy
Building bootstrap
    Finished dev [unoptimized] target(s) in 0.02s
Build stage0 tool tidy (x86_64-unknown-linux-gnu)
error: the argument '--locked' cannot be used multiple times

Usage: cargo build [OPTIONS]

For more information, try '--help'.
Build completed unsuccessfully in 0:00:00
error: failed to push some refs to 'github.com:jyn514/rust.git'
```
</content>
</entry>
<entry>
<title>Pass `--locked` to the x test tidy call</title>
<updated>2023-01-21T20:21:04+00:00</updated>
<author>
<name>Albert Larsan</name>
<email>74931857+albertlarsan68@users.noreply.github.com</email>
</author>
<published>2023-01-21T20:21:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=78db9ee21a558d43948cde67c22487993c1b23ac'/>
<id>urn:sha1:78db9ee21a558d43948cde67c22487993c1b23ac</id>
<content type='text'>
This allows to fail the push when the `Cargo.lock` file needs to be updated.
</content>
</entry>
<entry>
<title>adjust comments about pre-push.sh hook</title>
<updated>2023-01-04T17:15:43+00:00</updated>
<author>
<name>KaDiWa</name>
<email>kalle.wachsmuth@gmail.com</email>
</author>
<published>2023-01-04T17:15:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8f80a23c252d08d83083b79036ee7199d3164eb9'/>
<id>urn:sha1:8f80a23c252d08d83083b79036ee7199d3164eb9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make the pre-push script work on directories with spaces</title>
<updated>2022-12-17T23:18:53+00:00</updated>
<author>
<name>Joshua Nelson</name>
<email>github@jyn.dev</email>
</author>
<published>2022-12-17T23:18:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c754d057a67bb8779789ad48708632fcf87361b1'/>
<id>urn:sha1:c754d057a67bb8779789ad48708632fcf87361b1</id>
<content type='text'>
As a secondary benefit, it's also a lot simpler.
</content>
</entry>
<entry>
<title>Don't --bless in pre-push hook</title>
<updated>2022-08-29T23:46:51+00:00</updated>
<author>
<name>Tyler Mandry</name>
<email>tmandry@google.com</email>
</author>
<published>2022-08-29T23:43:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8873e33806487a0fb12143772b1a3c1544edbe0b'/>
<id>urn:sha1:8873e33806487a0fb12143772b1a3c1544edbe0b</id>
<content type='text'>
Running with --bless causes the push to succeed if there are fixable
formatting changes, but the changes don't make it into the push.

We should have the user rerun with --bless (or x.py fmt) and commit the
changes themselves (they might want to amend a particular commit, for
instance).
</content>
</entry>
<entry>
<title>pre-push.sh: Use python3 if python is not found</title>
<updated>2022-04-11T19:02:40+00:00</updated>
<author>
<name>Cheng XU</name>
<email>git@xuc.me</email>
</author>
<published>2022-04-06T06:13:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=365d4f4fd0caa3e4e1dd95eb42f7244e1424d37e'/>
<id>urn:sha1:365d4f4fd0caa3e4e1dd95eb42f7244e1424d37e</id>
<content type='text'>
Since Python 2 has reached EOL, `python` may not be available in certain
systems (e.g., recent macOS). We should use `python3` in this case to
avoid error like `python: No such file or directory`.
</content>
</entry>
</feed>
