[Libguestfs] [libnbd PATCH] golang: Optionally use gofmt on generated .go files
Eric Blake
eblake at redhat.com
Mon Aug 7 21:11:15 UTC 2023
On Fri, Aug 04, 2023 at 09:29:48AM -0500, Eric Blake wrote:
> Combine my recent work on improving the generated Go output with
> Tage's work on using a canonical formatter for Rust. If gofmt is
> available during the build, then the generated .go files will now use
> TAB indents and have proper columnar alignment; if it is not
> available, the project still compiles.
>
> Signed-off-by: Eric Blake <eblake at redhat.com>
> ---
>
> Followup to this earlier series:
> https://listman.redhat.com/archives/libguestfs/2023-July/032133.html
Now in as 9cb10b39, after rebasing to yet more rustfmt changes in the meantime.
>
> I still need to fold in the 'make check' verification of non-generated
> .go files, plus Dan's idea of enabling CI coverage...
This still remains on my todo list.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc.
Virtualization: qemu.org | libguestfs.org
More information about the Libguestfs
mailing list