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

history: inspect json format #2964

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

crazy-max
Copy link
Member

No description provided.

@crazy-max crazy-max force-pushed the history-inspect-json branch from 30442f6 to dc65c53 Compare February 3, 2025 13:53
@crazy-max crazy-max requested a review from tonistiigi February 3, 2025 17:44
@crazy-max crazy-max marked this pull request as ready for review February 3, 2025 17:44
@tonistiigi
Copy link
Member

https://github.com/docker/buildx/compare/master...tonistiigi:buildx:history-inspect-format?expand=1 is my wip for adding format. Main difference is that there is a new struct for history inspection instead of raw HistoryRecord with other (random) values. That struct can be formatted and provides similar output to the default text (that also now comes from printing the struct).

I think this is preferred. If lgty you may finish that instead.

workers0:
for _, w := range workers {
for _, p := range w.Platforms {
out.DefaultPlatform = platforms.FormatAll(platforms.Normalize(p))
Copy link
Member

Choose a reason for hiding this comment

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

This is not part of the history record. If needed then this can be set into platform key if one is unset.

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.

2 participants