-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
include missing submodule on bootstrap #125856
Conversation
rustbot has assigned @albertlarsan68. Use |
As of rust-lang#125408 PR, rustbook now relies on dependencies from the "src/doc/book" submodule. However, bootstrap does not automatically sync this submodule before reading metadata informations. And if the submodule is not present, reading metadata will fail because rustbook's dependencies will be missing. This change makes "src/doc/book" to be fetched/synced automatically before trying to read metadata. Signed-off-by: onur-ozkan <work@onurozkan.dev>
fdb5dac
to
5cdec65
Compare
This is very simple change and it fixes a contribution roadblock (there are workarounds exist, but people have to put some effort to find them). So, @bors r+ p=1 |
Yeah, this seems worth rushing a trivial fix for. |
…fix, r=onur-ozkan include missing submodule on bootstrap As of rust-lang#125408 PR, rustbook now relies on dependencies from the "src/doc/book" submodule. However, bootstrap does not automatically sync this submodule before reading metadata informations. And if the submodule is not present, reading metadata will fail because rustbook's dependencies will be missing. This change makes "src/doc/book" to be fetched/synced automatically before trying to read metadata. cc `@Zalathar`
…fix, r=onur-ozkan include missing submodule on bootstrap As of rust-lang#125408 PR, rustbook now relies on dependencies from the "src/doc/book" submodule. However, bootstrap does not automatically sync this submodule before reading metadata informations. And if the submodule is not present, reading metadata will fail because rustbook's dependencies will be missing. This change makes "src/doc/book" to be fetched/synced automatically before trying to read metadata. cc ``@Zalathar``
Thanks for the fix! |
…fix, r=onur-ozkan include missing submodule on bootstrap As of rust-lang#125408 PR, rustbook now relies on dependencies from the "src/doc/book" submodule. However, bootstrap does not automatically sync this submodule before reading metadata informations. And if the submodule is not present, reading metadata will fail because rustbook's dependencies will be missing. This change makes "src/doc/book" to be fetched/synced automatically before trying to read metadata. cc `@Zalathar`
…iaskrgr Rollup of 4 pull requests Successful merges: - rust-lang#124294 (Unroll first iteration of checked_ilog loop) - rust-lang#125562 (Weekly `cargo update`) - rust-lang#125822 (Refactor `--print=check-cfg` test) - rust-lang#125856 (include missing submodule on bootstrap) r? `@ghost` `@rustbot` modify labels: rollup
☀️ Test successful - checks-actions |
Finished benchmarking commit (a94483a): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. 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: 668.781s -> 668.545s (-0.04%) |
So it is expected that I now have to check out the books to build rustc? That's unfortunate, I was quite happy I could avoid those submodule updates so far... Also see Zulip. |
As long as "book" is a submodule and rust sources using it as a dependency (which is the case right now), this change is mandatory. |
Yes, indeed. The question is whether it's okay for a rust source crate to depend on code inside |
Aggghhh. Messy. I am happy to back out the change and publish those crates instead of using path deps if that is a better approach that avoids ongoing issues here (had no idea this would be an issue, and alas, @ehuss missed it too). |
Yeah, checking out |
I'd say discuss this with t-compiler -- if they say it's okay to have such dependencies I'll live with it. But IMO it's worth discussing at least. |
Started a Zulip discussion on this with t-compiler! |
As of #125408 PR, rustbook now relies on dependencies from the "src/doc/book" submodule.
However, bootstrap does not automatically sync this submodule before reading metadata informations. And if the submodule is not present, reading metadata will fail because rustbook's dependencies will be missing.
This change makes "src/doc/book" to be fetched/synced automatically before trying to read metadata.
cc @Zalathar