Skip to content

Conversation

@crazy-max
Copy link
Member

@crazy-max crazy-max commented Oct 8, 2025

needs moby/buildkit#6284
follow-up #3415

const recordsLimit = 50

func buildName(fattrs map[string]string, ls *localstate.State) string {
func BuildName(fattrs map[string]string, ls *localstate.State) string {
Copy link
Member Author

Choose a reason for hiding this comment

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

expose build name for desktop build backend

@crazy-max crazy-max requested a review from tonistiigi October 8, 2025 09:05
@crazy-max crazy-max marked this pull request as ready for review October 8, 2025 09:05
} else if v, ok := fattrs["vcs:localdir:context"]; ok && v != "." {
contextPath = filepath.ToSlash(v)
} else if v, ok := fattrs["input:context"]; ok && !build.IsRemoteURL(v) {
contextPath = filepath.ToSlash(v)
Copy link
Member

Choose a reason for hiding this comment

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

What case is this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah yes I was thinking we might have a future case where it's a path but not necessary here. Removed.

@crazy-max crazy-max force-pushed the history-input-context branch from 11ee874 to 23c3c87 Compare October 8, 2025 18:31
if v, ok := fattrs["vcs:source"]; ok {
vcsSource = v
} else if v, ok := fattrs["input:context"]; ok && build.IsRemoteURL(v) {
vcsSource = v
Copy link
Member

Choose a reason for hiding this comment

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

Did you want to update this to the fragment-style URL?

Copy link
Member Author

@crazy-max crazy-max Oct 10, 2025

Choose a reason for hiding this comment

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

Yes will do, I'm looking to make a public func on BuildKit side as it will be used on both side

crazy-max and others added 2 commits October 11, 2025 23:03
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 force-pushed the history-input-context branch from 14e571b to c40f9d9 Compare October 12, 2025 14:17
@crazy-max crazy-max requested a review from tonistiigi October 12, 2025 14:21
@crazy-max crazy-max marked this pull request as ready for review October 12, 2025 14:21
@crazy-max crazy-max merged commit f478741 into docker:master Oct 22, 2025
138 checks passed
@crazy-max crazy-max deleted the history-input-context branch October 22, 2025 19:23
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