Skip to content

Commit

Permalink
Merge pull request #1207 from thaJeztah/output_add_padding
Browse files Browse the repository at this point in the history
frontend: add padding to align steps in stage
  • Loading branch information
tonistiigi authored Oct 21, 2019
2 parents f4fccc2 + 59bf16c commit 02adc6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/dockerfile/dockerfile2llb/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"context"
"encoding/json"
"fmt"
"math"
"net/url"
"path"
"path/filepath"
Expand Down Expand Up @@ -1325,7 +1326,7 @@ func prefixCommand(ds *dispatchState, str string, prefixPlatform bool, platform
out += ds.stageName + " "
}
ds.cmdIndex++
out += fmt.Sprintf("%d/%d] ", ds.cmdIndex, ds.cmdTotal)
out += fmt.Sprintf("%*d/%d] ", int(1+math.Log10(float64(ds.cmdTotal))), ds.cmdIndex, ds.cmdTotal)
return out + str
}

Expand Down

0 comments on commit 02adc6b

Please sign in to comment.