Skip to content

history: input:context attribute support - #3459

Merged
crazy-max merged 2 commits into
docker:masterfrom
crazy-max:history-input-context
Oct 22, 2025
Merged

history: input:context attribute support#3459
crazy-max merged 2 commits into
docker:masterfrom
crazy-max:history-input-context

Conversation

@crazy-max

@crazy-maxcrazy-max commented Oct 8, 2025

Copy link
Copy Markdown
Member

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
Copy Markdown
MemberAuthor

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 marked this pull request as ready for review October 8, 2025 09:05
Comment threadcommands/history/utils.go Outdated
} 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
Copy Markdown
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
Copy Markdown
MemberAuthor

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-maxforce-pushed the history-input-context branch from 11ee874 to 23c3c87CompareOctober 8, 2025 18:31
Comment threadcommands/history/utils.go Outdated
if v, ok := fattrs["vcs:source"]; ok {
vcsSource = v
} else if v, ok := fattrs["input:context"]; ok && build.IsRemoteURL(v) {
vcsSource = v

Copy link
Copy Markdown
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?

@crazy-maxcrazy-maxOct 10, 2025

Copy link
Copy Markdown
MemberAuthor

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-maxand 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-maxforce-pushed the history-input-context branch from 14e571b to c40f9d9CompareOctober 12, 2025 14:17
@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:masterOct 22, 2025
138 checks passed
@crazy-max
crazy-max deleted the history-input-context branch October 22, 2025 19:23
Sign up for freeto 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

@crazy-max@tonistiigi