File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -278,16 +278,16 @@ namespace vcpkg
278
278
}
279
279
}
280
280
281
- if (auto manifest = paths.get_manifest ().get ())
281
+ const auto manifest = paths.get_manifest ().get ();
282
+ const auto installed_paths = paths.maybe_installed ().get ();
283
+ if (manifest && installed_paths)
282
284
{
285
+ // See docs/manifest-info.schema.json
283
286
Json::Object manifest_info;
284
287
manifest_info.insert (" manifest-path" , Json::Value::string (manifest->path ));
285
- if (const auto installed_paths = paths.maybe_installed ().get ())
286
- {
287
- const auto json_file_path = installed_paths->vcpkg_dir () / FileManifestInfo;
288
- const auto json_contents = Json::stringify (manifest_info);
289
- fs.write_contents (json_file_path, json_contents, VCPKG_LINE_INFO);
290
- }
288
+ const auto json_file_path = installed_paths->vcpkg_dir () / FileManifestInfo;
289
+ const auto json_contents = Json::stringify (manifest_info);
290
+ fs.write_contents (json_file_path, json_contents, VCPKG_LINE_INFO);
291
291
}
292
292
293
293
Checks::exit_success (VCPKG_LINE_INFO);
You can’t perform that action at this time.
0 commit comments