mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
pretty target string
This commit is contained in:
parent
14a8161837
commit
cd56d57723
@ -19,14 +19,18 @@ func (t buildTarget) String() string {
|
||||
return fmt.Sprintf("%v%v%v", t.goos, t.goarch, t.goarm)
|
||||
}
|
||||
|
||||
func (t buildTarget) PrettyString() string {
|
||||
return fmt.Sprintf("%v/%v%v", t.goos, t.goarch, t.goarm)
|
||||
}
|
||||
|
||||
func buildTargets(ctx *context.Context) (targets []buildTarget) {
|
||||
for _, target := range allBuildTargets(ctx) {
|
||||
if !valid(target) {
|
||||
log.Println("Skipped invalid build target:", target)
|
||||
log.Println("Skipped invalid build target:", target.PrettyString())
|
||||
continue
|
||||
}
|
||||
if ignored(ctx, target) {
|
||||
log.Println("Skipped ignored build target:", target)
|
||||
log.Println("Skipped ignored build target:", target.PrettyString())
|
||||
continue
|
||||
}
|
||||
targets = append(targets, target)
|
||||
|
Loading…
x
Reference in New Issue
Block a user