forked from lix-project/hydra
Add error/warnings for deprecated store specification
This commit is contained in:
parent
a73f211bf2
commit
7089142fdc
|
@ -47,6 +47,16 @@ State::State()
|
||||||
}
|
}
|
||||||
|
|
||||||
logDir = canonPath(hydraData + "/build-logs");
|
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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue