-
Notifications
You must be signed in to change notification settings - Fork 617
history: input:context attribute support #3459
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
Conversation
c44c84d to
11ee874
Compare
| const recordsLimit = 50 | ||
|
|
||
| func buildName(fattrs map[string]string, ls *localstate.State) string { | ||
| func BuildName(fattrs map[string]string, ls *localstate.State) string { |
There was a problem hiding this comment.
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
commands/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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What case is this?
There was a problem hiding this comment.
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.
11ee874 to
23c3c87
Compare
commands/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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
23c3c87 to
4adc666
Compare
4adc666 to
4bf7b02
Compare
4bf7b02 to
02ecae9
Compare
02ecae9 to
c6ca12a
Compare
c6ca12a to
14e571b
Compare
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
14e571b to
c40f9d9
Compare
needs moby/buildkit#6284follow-up #3415