blob: 5755113f78b3337faea9d8f33317b2d677491ff8 [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/modular/lib/module_manifest_source/package_util.h"
#include "src/lib/fxl/strings/string_printf.h"
namespace modular {
std::string GetModuleManifestPathFromPackage(fxl::StringView package_name,
fxl::StringView package_version) {
return fxl::StringPrintf("/pkgfs/packages/%.*s/%.*s/meta/module.json",
static_cast<int>(package_name.size()), package_name.data(),
static_cast<int>(package_version.size()), package_version.data());
}
} // namespace modular