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

buildx: convert vertex warnings to github annotations based on localstate #401

Merged
merged 3 commits into from
Jul 30, 2024

Conversation

crazy-max
Copy link
Member

@crazy-max crazy-max commented Jul 5, 2024

follow-up

Implementation introduced in #365 would generate annotations for a specified dockerfile. We forgot cases when a dockerfile can be inline and therefore not part of the repository or also when using a git context that could build another repository. With these changes we make sure warnings are associated with a dockerfile in the working tree before being annotated.

@crazy-max crazy-max force-pushed the build-warnings-localstate branch 5 times, most recently from a956173 to 415ec12 Compare July 5, 2024 09:45
@crazy-max crazy-max changed the title github: convert vertex warnings to annotations based on localstate buildx: convert vertex warnings to github annotations based on localstate Jul 5, 2024
@crazy-max crazy-max requested a review from tonistiigi July 5, 2024 11:26
@crazy-max crazy-max marked this pull request as ready for review July 5, 2024 11:26
continue;
}

if (ls.DockerfilePath == '-' || ls.DockerfilePath.endsWith('/-')) {
Copy link
Member Author

Choose a reason for hiding this comment

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

ls.DockerfilePath.endsWith('/-') is necessary for Buildx < 0.16.0 related to docker/buildx#2560

Copy link
Member Author

Choose a reason for hiding this comment

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

made a proper fix in #403

@crazy-max crazy-max force-pushed the build-warnings-localstate branch 3 times, most recently from 65b7e9a to 8efe5ce Compare July 5, 2024 14:34
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
…tate

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max merged commit 477e96d into docker:main Jul 30, 2024
42 checks passed
@crazy-max crazy-max deleted the build-warnings-localstate branch July 30, 2024 14:03
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.

None yet

1 participant