We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44ddc24 commit 4eab397Copy full SHA for 4eab397
1 file changed
src/common/project.cpp
@@ -870,6 +870,9 @@ void Project::load(const yaml &root)
870
auto p = d["local"].template as<String>();
871
Package pkg;
872
pkg.ppath = p;
873
+ if (!d["version"].IsDefined())
874
+ throw std::runtime_error("dependency: local is present, but version is not: " + p);
875
+ pkg.version = d["version"].template as<String>();
876
if (rd.known_local_packages.find(pkg) != rd.known_local_packages.end())
877
local_ok = true;
878
if (local_ok)
0 commit comments