Skip to content

Commit

Permalink
Stop requiring dev-dependencies key (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui authored Jun 12, 2022
1 parent 08747d3 commit 788bbbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/core/resolver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ to_resolvable_deps(const toml::table& dependencies) noexcept {
[[nodiscard]] Result<ResolvedDeps>
get_resolved_deps(const toml::value& manifest) {
toml::table deps = toml::find<toml::table>(manifest, "dependencies");
append(deps, toml::find<toml::table>(manifest, "dev-dependencies"));
if (manifest.contains("dev-dependencies")) {
append(deps, toml::find<toml::table>(manifest, "dev-dependencies"));
}
const auto resolvable_deps = Try(to_resolvable_deps(deps));
const auto resolved_deps = Try(do_resolve(resolvable_deps));
return Ok(resolved_deps);
Expand Down

0 comments on commit 788bbbe

Please sign in to comment.