1
0
Fork 0
qemu/tests/lcitool/libvirt-ci/containers/go-fmt
Daniel Baumann ea34ddeea6
Adding upstream version 1:10.0.2+ds.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 14:27:05 +02:00
..
Dockerfile Adding upstream version 1:10.0.2+ds. 2025-06-22 14:27:05 +02:00
go-fmt.sh Adding upstream version 1:10.0.2+ds. 2025-06-22 14:27:05 +02:00
README.rst Adding upstream version 1:10.0.2+ds. 2025-06-22 14:27:05 +02:00

=============================================
Container for running go fmt code style check
=============================================

This container provides a simple way to invoke ``go fmt`` to validate code
style across a Golang codebase. It should be integrated into a CI by adding
the following snippet to ``.gitlab-ci.yml``

::

   go-fmt:
     stage: prebuild
     image: registry.gitlab.com/libvirt/libvirt-ci/go-fmt:latest
     script:
       - /go-fmt
     artifacts:
       paths:
         - go-fmt.patch
       expire_in: 1 week
       when: on_failure