mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update buildkit to master@d5c1d785b042
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
1
vendor/github.com/moby/buildkit/util/progress/progressui/display.go
generated
vendored
1
vendor/github.com/moby/buildkit/util/progress/progressui/display.go
generated
vendored
@ -310,7 +310,6 @@ func (d *rawJSONDisplay) done() {
|
||||
// No actions needed.
|
||||
}
|
||||
|
||||
const termHeight = 6
|
||||
const termPad = 10
|
||||
|
||||
type displayInfo struct {
|
||||
|
12
vendor/github.com/moby/buildkit/util/progress/progressui/init.go
generated
vendored
12
vendor/github.com/moby/buildkit/util/progress/progressui/init.go
generated
vendored
@ -3,6 +3,7 @@ package progressui
|
||||
import (
|
||||
"os"
|
||||
"runtime"
|
||||
"strconv"
|
||||
|
||||
"github.com/morikuni/aec"
|
||||
)
|
||||
@ -12,6 +13,8 @@ var colorCancel aec.ANSI
|
||||
var colorWarning aec.ANSI
|
||||
var colorError aec.ANSI
|
||||
|
||||
var termHeight = 6
|
||||
|
||||
func init() {
|
||||
// As recommended on https://no-color.org/
|
||||
if v := os.Getenv("NO_COLOR"); v != "" {
|
||||
@ -34,4 +37,13 @@ func init() {
|
||||
envColorString := os.Getenv("BUILDKIT_COLORS")
|
||||
setUserDefinedTermColors(envColorString)
|
||||
}
|
||||
|
||||
// Make the terminal height configurable at runtime.
|
||||
termHeightStr := os.Getenv("BUILDKIT_TTY_LOG_LINES")
|
||||
if termHeightStr != "" {
|
||||
termHeightVal, err := strconv.Atoi(termHeightStr)
|
||||
if err == nil && termHeightVal > 0 {
|
||||
termHeight = termHeightVal
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user