Add error/warnings for deprecated store specification

This commit is contained in:
Alexander Ried 2016-05-12 10:17:05 +02:00 committed by Eelco Dolstra
parent a73f211bf2
commit 7089142fdc

View file

@ -47,6 +47,16 @@ State::State()
}
logDir = canonPath(hydraData + "/build-logs");
/* handle deprecated store specification */
if (hydraConfig["store_mode"] != "")
throw Error("store_mode in hydra.conf is deprecated, please use store_uri");
if (hydraConfig["binary_cache_dir"] != "")
printMsg(lvlError, "hydra.conf: binary_cache_dir is deprecated and ignored. use store_uri=file:// instead");
if (hydraConfig["binary_cache_s3_bucket"] != "")
printMsg(lvlError, "hydra.conf: binary_cache_s3_bucket is deprecated and ignored. use store_uri=s3:// instead");
if (hydraConfig["binary_cache_secret_key_file"] != "")
printMsg(lvlError, "hydra.conf: binary_cache_secret_key_file is deprecated and ignored. use store_uri=...?secret-key= instead");
}