mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-05-21 14:56:41 +00:00
When building against go-ceph, the most recent version of Ceph is assumed to be available (currently Octopus). In case an older version of the development packages is installed, building go-ceph will fail. Golangci-lint does not accept the `-tags nautilus` parameter like other Golang tools. Instead, the build-constraints need to be configured in a confguration file. This change takes care of the following: - move the current scripts/golangci.yml to a template - add the @@CEPH_VERSION@@ substitute - generate the configuration file when needed Signed-off-by: Niels de Vos <ndevos@redhat.com>