From f9e152d912ea660e06aec313f519bf5ff62720da Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Tue, 9 Jun 2015 10:46:18 +0800 Subject: [PATCH] Ensure that rados is disabled without build tag This ensures that rados is not required when building the registry. This was slightly tricky in that when the flags were applied, the rados package was completely missing. This led to a problem where rados was basically unlistable and untestable as a package. This was fixed by simply adding a doc.go file that is included whether rados is built or not. Signed-off-by: Stephen J Day --- docs/storage/driver/rados/doc.go | 3 +++ docs/storage/driver/rados/rados.go | 2 ++ docs/storage/driver/rados/rados_test.go | 2 ++ 3 files changed, 7 insertions(+) create mode 100644 docs/storage/driver/rados/doc.go diff --git a/docs/storage/driver/rados/doc.go b/docs/storage/driver/rados/doc.go new file mode 100644 index 000000000..655c68a33 --- /dev/null +++ b/docs/storage/driver/rados/doc.go @@ -0,0 +1,3 @@ +// Package rados implements the rados storage driver backend. Support can be +// enabled by including the "include_rados" build tag. +package rados diff --git a/docs/storage/driver/rados/rados.go b/docs/storage/driver/rados/rados.go index 9bac8fc32..0ea10a895 100644 --- a/docs/storage/driver/rados/rados.go +++ b/docs/storage/driver/rados/rados.go @@ -1,3 +1,5 @@ +// +build include_rados + package rados import ( diff --git a/docs/storage/driver/rados/rados_test.go b/docs/storage/driver/rados/rados_test.go index 29486e896..d408519ba 100644 --- a/docs/storage/driver/rados/rados_test.go +++ b/docs/storage/driver/rados/rados_test.go @@ -1,3 +1,5 @@ +// +build include_rados + package rados import (