Fix tidy check if book submodule is not checked out#128123
Fix tidy check if book submodule is not checked out#128123bors merged 1 commit intorust-lang:masterfrom
Conversation
|
The list of allowed third-party dependencies may have been modified! You must ensure that any new dependencies have compatible licenses before merging. |
|
@bors r+ p=1 |
|
☀️ Test successful - checks-actions |
|
Finished benchmarking commit (42103d6): comparison URL. Overall result: ❌✅ regressions and improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)Results (primary 2.8%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 770.721s -> 770.026s (-0.09%) |
This fixes tidy in a checkout without submodules. #127786 added a new cargo workspace, and the corresponding checks in tidy. There is code in tidy to skip those checks if the submodule is checked out, but that code assumed the root of the workspace was also the root of the submodule. With
rustbook, the root issrc/tools/rustbook, but the submodules it needs are in thesrc/docdirectory.The solution here is to explicitly list which submodules are needed instead of assuming the root is also the submodule.