Skip to content

feat: add FrontendError #5942

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 1 commit into from
May 2, 2025
Merged

Conversation

fiam
Copy link
Collaborator

@fiam fiam commented Apr 23, 2025

Marks errors coming from the frontend as such, indicating the frontend
name and the source (which identifies the frontend container when using
the gateway frontend)

Signed-off-by: Alberto Garcia Hierro damaso.hierro@docker.com

@@ -63,7 +63,7 @@ import (
)

const (
keySource = "source"
KeySource = "source"
Copy link
Member

Choose a reason for hiding this comment

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

Is this const made public so it can be used downstream? If so, it should first be moved to another package to avoid unnecessary imports similar to https://github.com/moby/buildkit/blob/master/exporter/exptypes/keys.go

Copy link
Member

Choose a reason for hiding this comment

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

This seems to be all internal impports so not a big issue. If you want can move it to frontend pkg (or errdefs) that I think are already imported.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't mind duplicating the key if you guys think that's preferable.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've moved it to frontend, PTAL

@@ -63,7 +63,7 @@ import (
)

const (
keySource = "source"
KeySource = "source"
Copy link
Member

Choose a reason for hiding this comment

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

This seems to be all internal impports so not a big issue. If you want can move it to frontend pkg (or errdefs) that I think are already imported.

Marks errors coming from the frontend as such, indicating the frontend
name and the source (which identifies the frontend container when using
the gateway frontend)

Signed-off-by: Alberto Garcia Hierro <damaso.hierro@docker.com>
@fiam fiam force-pushed the alberto/frontend-error branch from 8e75be2 to c0205ad Compare April 30, 2025 15:50
@tonistiigi tonistiigi merged commit f04f53d into moby:master May 2, 2025
111 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants