Skip to content

Conversation

@geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Sep 10, 2025

First commit (most of the work) is taken from closed PR #19930 by @redsun82 .

I hope to add a few more details before this is ready to merge.

@geoffw0 geoffw0 added no-change-note-required This PR does not need a change note Rust Pull requests that update Rust code labels Sep 10, 2025
@geoffw0 geoffw0 marked this pull request as ready for review September 11, 2025 08:50
@geoffw0 geoffw0 requested a review from a team as a code owner September 11, 2025 08:50
Copilot AI review requested due to automatic review settings September 11, 2025 08:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds comprehensive documentation for updating rust-analyzer dependencies in the Rust CodeQL implementation. The changes provide step-by-step instructions for maintaining rust-analyzer and related dependencies, including toolchain updates and schema migrations.

  • Adds a detailed section on rust-analyzer update procedures
  • Includes instructions for dependency management, bazel file regeneration, and toolchain updates
  • Documents the complete workflow from upgrade to testing and schema migration

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
redsun82
redsun82 previously approved these changes Sep 11, 2025
Copy link
Contributor

@redsun82 redsun82 left a comment

Choose a reason for hiding this comment

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

LGTM, apart from a minor oversight coming from me 🙂

@redsun82
Copy link
Contributor

The CI failures should go away with the merge from main I just did

Co-authored-by: Simon Friis Vindum <paldepind@github.com>
Copy link
Contributor

@paldepind paldepind left a comment

Choose a reason for hiding this comment

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

Looks good to me. Instructions are clear and easy to follow. Thanks @geoffw0 and @redsun82.

One thought going forward, in #20408 I ran into a problem because the first cargo upgrade also applies to ruby/extractor/Cargo.toml and that broke the Ruby extractor. I guess it would be preferable if we could update RA for the Rust extractor without affecting the Ruby extractor.

@aibaars
Copy link
Contributor

aibaars commented Sep 12, 2025

One thought going forward, in #20408 I ran into a problem because the first cargo upgrade also applies to ruby/extractor/Cargo.toml and that broke the Ruby extractor. I guess it would be preferable if we could update RA for the Rust extractor without affecting the Ruby extractor.

Fair point, although it is a nice side effect that the Ruby extractor is kept up to date as well.

@geoffw0
Copy link
Contributor Author

geoffw0 commented Sep 12, 2025

Merging - but I'm happy to make further changes to these instructions if there are more suggestions.

@geoffw0 geoffw0 merged commit d638ee9 into github:main Sep 12, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation no-change-note-required This PR does not need a change note Rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants