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

fix broken updates due to incorrect directory filtering #8405

Merged
merged 9 commits into from
Nov 15, 2023

Conversation

jakecoffman
Copy link
Member

fixes #8398

In #8331 I introduced filtering files by directory so we could achieve multi-directory updates. This filtering was too naive though as it has broken updates for a few ecosystems that have special handling for directories:

  • In NuGet, src is used at in some cases
  • In GitHub Actions, .github/workflows is automatically used if the directory is /

And there may be others!

These special cases resulted in the directory of the file being different than the directory of the update (the job's configured directory).

By marking the files fetched with a job_directory, we can remove the special cases and the filtering works as expected.

@jakecoffman jakecoffman requested a review from a team as a code owner November 15, 2023 09: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.

Minor nits, but looking good!

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 great @jakecoffman!

@jakecoffman jakecoffman merged commit 8c6d176 into main Nov 15, 2023
@jakecoffman jakecoffman deleted the jakecoffman/group-related-directories-together branch November 15, 2023 12:21
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.

Nuget - No project file or packages.config!
2 participants