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

support building from a scratch image #1350

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kanlac
Copy link

@kanlac kanlac commented Jun 29, 2024

Fix #207; Add e2e testing based on #1038.

The Windows Delve debugger is also failing on the main branch, so I've left it as is for now.

pkg/build/scratch.go Outdated Show resolved Hide resolved
pkg/build/scratch_test.go Outdated Show resolved Hide resolved
@cpanato cpanato requested a review from imjasonh July 1, 2024 10:53
@kanlac
Copy link
Author

kanlac commented Jul 13, 2024

@cpanato updated

@jkroepke
Copy link

Great! I hope this can be merged soon.

Copy link

This Pull Request is stale because it has been open for 90 days with
no activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.

@kanlac
Copy link
Author

kanlac commented Feb 11, 2025

@cpanato Any feedback from reviewing?

@cpanato cpanato reopened this Feb 11, 2025
Copy link
Member

@imjasonh imjasonh left a comment

Choose a reason for hiding this comment

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

This looks good to me. Just a few small comments.

If we wanted to be extra paranoid we could move ScratchImage into an internal package, but I don't feel strongly about it.

if err != nil {
t.Fatalf("expected no error when getting image for digest %s, got %s", m.Digest, err)
}
ls, err := img.Layers()
Copy link
Member

Choose a reason for hiding this comment

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

It looks like this err is unchecked.

t.Errorf("unexpected OS %s", m.Platform.OS)
}
}

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change

(to appease the linter)

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.

support "scratch" as a special base image
5 participants