Skip to content

Commit

Permalink
ci: update mod download tpl for prettier errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gbotrel committed Oct 13, 2023
1 parent cfe83db commit 4ebcccd
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .gotestfmt/downloads.gotpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,32 @@ This template contains the format for a package download.
{{- $settings := .Settings -}}
{{- if or .Packages .Reason -}}
{{- if or (not .Settings.HideSuccessfulDownloads) .Failed -}}
::group::
{{- if .Failed -}}
{{ "\033" }}[0;31m
{{- else -}}
{{ "\033" }}[0;34m📥
📥
{{- end -}}
{{ " " }}Dependency downloads
{{- "\033" }}[0m{{ "\n" -}}
{{ " " }} Dependency downloads
{{ "\n" -}}

{{- range .Packages -}}
{{- if or (not $settings.HideSuccessfulDownloads) .Failed -}}
{{- " " -}}
{{- if .Failed -}}
{{ "\033" }}[0;31m
{{- else -}}
📦
{{- end -}}
{{- " " -}}
{{- .Package }} {{ .Version -}}
{{- "\033" }}[0m
{{- "\n" -}}
{{ with .Reason -}}
{{- " " -}}{{ . -}}{{ "\n" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- with .Reason -}}
{{- " " -}}{{- "\033" }}[0;31m🛑 {{ . }}{{- "\033" }}[0m{{ "\n" -}}
{{- " " -}}🛑 {{ . }}{{ "\n" -}}
{{- end -}}
::endgroup::
{{- end -}}
{{- end -}}

0 comments on commit 4ebcccd

Please sign in to comment.