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

refactor runner implementations #1414

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

imjasonh
Copy link
Member

@imjasonh imjasonh commented Aug 5, 2024

This refactors and centralizes how runner implementations are registered and selected. Existing runners (docker, bubblewrap, experimentaldagger) are unaffected, and can still be selected automatically or with the --runner flag.

This enables other callers of melange's Go library to register their own implementations without having to modify melange's source code. Registering can be done in func init or in func main, any time before GetRunner is called.

Signed-off-by: Jason Hall <jason@chainguard.dev>
}
}

switch runtime.GOOS {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think with the new implementation we're missing this, so e2e are failing because we don't have a default now, but it expect explicitly to be set

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.

2 participants