diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-01-05 11:14:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-05 11:14:22 +0100 |
commit | c51ee5c0336acb75392d5b7a4b3da7ccdfee3d9e (patch) | |
tree | be4541d80f928651f0f8bbcf8ba3324ad07cbd28 | |
parent | 8a2ce0f455da32bc20978e68c0aad9efb4560abc (diff) | |
parent | 988dd0a65f562741708f6a7a7a44e333d6a5b205 (diff) |
Merge pull request #4424 from DanilaFe/fix-attr-from-json
Fix conversion from JSON to fetch attributes
-rw-r--r-- | src/libfetchers/attrs.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfetchers/attrs.cc b/src/libfetchers/attrs.cc index 17fc4041f..a565d19d4 100644 --- a/src/libfetchers/attrs.cc +++ b/src/libfetchers/attrs.cc @@ -15,7 +15,7 @@ Attrs jsonToAttrs(const nlohmann::json & json) else if (i.value().is_string()) attrs.emplace(i.key(), i.value().get<std::string>()); else if (i.value().is_boolean()) - attrs.emplace(i.key(), i.value().get<bool>()); + attrs.emplace(i.key(), Explicit<bool> { i.value().get<bool>() }); else throw Error("unsupported input attribute type in lock file"); } |