Skip to content
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

Teach Updater to Invoke fetch files Based on Multi-Dir #8309

Merged

Conversation

honeyankit
Copy link
Contributor

@honeyankit honeyankit commented Oct 31, 2023

Context

This pull request introduces enhancements to the FileFetcherCommand class, ensuring file fetching when dealing with repositories containing multiple directories.

Key Changes

Multi-Directory Support: The code now supports fetching files from multiple directories in a repository within same ecosystem

@honeyankit honeyankit self-assigned this Oct 31, 2023
@honeyankit
Copy link
Contributor Author

honeyankit commented Nov 2, 2023

The updater test I added in python, since all the tests are in updater are in bundler so changing my test to Bundler for consistency.

@honeyankit honeyankit marked this pull request as ready for review November 2, 2023 18:48
@honeyankit honeyankit requested a review from a team as a code owner November 2, 2023 18:48
@honeyankit honeyankit force-pushed the honeyankit/teach-updater-to-use-directories-for-multi-dir branch from fb72518 to 916886f Compare November 2, 2023 20:53
Copy link
Member

@jakecoffman jakecoffman left a comment

Choose a reason for hiding this comment

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

LGTM

@honeyankit honeyankit force-pushed the honeyankit/teach-updater-to-use-directories-for-multi-dir branch from 00bd155 to 619d6e3 Compare November 4, 2023 16:53
Copy link
Contributor

@deivid-rodriguez deivid-rodriguez 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!

@honeyankit honeyankit force-pushed the honeyankit/teach-updater-to-use-directories-for-multi-dir branch from 619d6e3 to 4d2238f Compare November 6, 2023 18:35
@jakecoffman
Copy link
Member

Two of the smoke tests (go-security, and go-update-pr) are now getting mode added which wasn't there before. I guess that isn't a problem, but just curious why that is.

@jakecoffman
Copy link
Member

Looking into the mode changes some more, on main it gets into this rescue because the go.mod is not found, but the go.sum is.

This appears to be because Dir.pwd is "/home/dependabot/dependabot-updater" for the go.mod fetch but "/home/dependabot/dependabot-updater/repo" for the go.sum fetch.

The new code must have reordered some things so that the go.mod is checked in the right pwd. But this seems like a bug in the Go FileFetcher.

I'm good with proceeding with this and fixing the tests as it seems more correct now!

@jakecoffman jakecoffman merged commit 747ab32 into main Nov 13, 2023
79 of 81 checks passed
@jakecoffman jakecoffman deleted the honeyankit/teach-updater-to-use-directories-for-multi-dir branch November 13, 2023 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants