mirror of https://github.com/ceph/go-ceph
README: add requirement for build-tags when using non-current Ceph libraries
In order to selectively exclude/include certain .go files while building and testing with the standard `go` tools, build-tags can be used. Because go-ceph aims to support multiple Ceph versions, some functions might not be available in the C libraries, or have been marked deprecated in the header files. By selectively excluding/including some of the .go files, warnings and errors can be prevented. See-also: https://golang.org/pkg/go/build/#hdr-Build_Constraints Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
c662d6fb2e
commit
7e3a5850f3
12
README.md
12
README.md
|
@ -18,6 +18,18 @@ On rpm based systems (dnf, yum, etc):
|
|||
libcephfs-devel librbd-devel librados-devel
|
||||
```
|
||||
|
||||
go-ceph tries to support different Ceph versions. However some functions might
|
||||
only be available in recent versions, and others can be deprecated. In order to
|
||||
work with non-current versions of Ceph, it is required to pass build-tags to on
|
||||
the `go` commandline. A tag with the named Ceph release will enable/disable
|
||||
certain features of the go-ceph packages, and prevent warnings or compile
|
||||
problems. E.g. build against libcephfs/librados/librbd from Mimic, or run `go
|
||||
test` against Limunous, use:
|
||||
```sh
|
||||
go build -tags mimic ....
|
||||
go test -tags luminous ....
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
||||
Detailed documentation is available at
|
||||
|
|
Loading…
Reference in New Issue