Skip to content

Go: update files generated by depstubber #19076

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

Merged
merged 5 commits into from
Apr 9, 2025

Conversation

owen-mc
Copy link
Contributor

@owen-mc owen-mc commented Mar 20, 2025

I reran depstubber on all the commands we have stored in tests and regenerated the stubs. I did this to test some changes to I made to depstubber, but there were some slight improvements to stubs that I have collected in this PR. This makes some stubs easier to read and updates some vendor/modules.txt so that they will still work if we update the go version used in the test.

@owen-mc owen-mc added the no-change-note-required This PR does not need a change note label Apr 9, 2025
@owen-mc owen-mc marked this pull request as ready for review April 9, 2025 09:58
@Copilot Copilot AI review requested due to automatic review settings April 9, 2025 09:58
@owen-mc owen-mc requested a review from a team as a code owner April 9, 2025 09:58
Copy link
Contributor

@Copilot 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 updates depstubber commands for Go tests to improve stub readability and compatibility with updated Go versions.

  • Updated the depstubber command for the ORM package to include the Formatter stub alongside Query.
  • Regenerated stubs to reflect improvements in dependency handling.
Comments suppressed due to low confidence (1)

go/ql/test/library-tests/semmle/go/frameworks/SQL/pg.go:4

  • [nitpick] The updated depstubber command now includes 'Formatter'. Consider adding a brief inline comment explaining the introduction of Formatter to help future maintainers understand its purpose.
//go:generate depstubber -vendor github.com/go-pg/pg/orm Query,Formatter Q

@owen-mc owen-mc changed the title Go: update depstubber files Go: update files generated by depstubber Apr 9, 2025
Copy link
Contributor

@smowton smowton left a comment

Choose a reason for hiding this comment

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

If the tests remain happy, so do I

@owen-mc owen-mc merged commit b6053e3 into github:main Apr 9, 2025
11 checks passed
@owen-mc owen-mc deleted the go/update-depstubber-files branch April 9, 2025 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Go no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants