[libvirt-ci PATCH 2/2] containers: add a standard container for running go fmt

Andrea Bolognani abologna at redhat.com
Thu May 7 13:10:10 UTC 2020


On Fri, 2020-05-01 at 11:52 +0100, Daniel P. Berrangé wrote:
> +++ b/containers/go-fmt/go-fmt.sh
> @@ -0,0 +1,24 @@
> +#!/bin/sh
> +
> +GOFMT=$(go env GOROOT)/bin/gofmt
> +
> +find -name '*.go' | xargs $GOFMT -d -e > go-fmt.patch
> +
> +if test -n go-fmt.patch

As pointed out by Martin, this should be "-s".


With that fixed,

  Reviewed-by: Andrea Bolognani <abologna at redhat.com>


-- 
Andrea Bolognani / Red Hat / Virtualization




More information about the libvir-list mailing list