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 <stephen.day@docker.com>
This commit is contained in:
Stephen J Day 2015-06-09 10:46:18 +08:00
parent d796729b6b
commit f9e152d912
3 changed files with 7 additions and 0 deletions

View file

@ -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

View file

@ -1,3 +1,5 @@
// +build include_rados
package rados package rados
import ( import (

View file

@ -1,3 +1,5 @@
// +build include_rados
package rados package rados
import ( import (