diff --git a/azure-pipelines/e2e_registry/extra-ports/foo/portfile.cmake b/azure-pipelines/e2e-registry/extra-ports/foo/portfile.cmake
similarity index 100%
rename from azure-pipelines/e2e_registry/extra-ports/foo/portfile.cmake
rename to azure-pipelines/e2e-registry/extra-ports/foo/portfile.cmake
diff --git a/azure-pipelines/e2e_registry/extra-ports/foo/vcpkg.json b/azure-pipelines/e2e-registry/extra-ports/foo/vcpkg.json
similarity index 100%
rename from azure-pipelines/e2e_registry/extra-ports/foo/vcpkg.json
rename to azure-pipelines/e2e-registry/extra-ports/foo/vcpkg.json
diff --git a/azure-pipelines/e2e_registry/ports/bar/portfile.cmake b/azure-pipelines/e2e-registry/ports/bar/portfile.cmake
similarity index 100%
rename from azure-pipelines/e2e_registry/ports/bar/portfile.cmake
rename to azure-pipelines/e2e-registry/ports/bar/portfile.cmake
diff --git a/azure-pipelines/e2e_registry/ports/bar/vcpkg.json b/azure-pipelines/e2e-registry/ports/bar/vcpkg.json
similarity index 100%
rename from azure-pipelines/e2e_registry/ports/bar/vcpkg.json
rename to azure-pipelines/e2e-registry/ports/bar/vcpkg.json
diff --git a/azure-pipelines/e2e_registry/ports/baz/portfile.cmake b/azure-pipelines/e2e-registry/ports/baz/portfile.cmake
similarity index 100%
rename from azure-pipelines/e2e_registry/ports/baz/portfile.cmake
rename to azure-pipelines/e2e-registry/ports/baz/portfile.cmake
diff --git a/azure-pipelines/e2e_registry/ports/baz/vcpkg.json b/azure-pipelines/e2e-registry/ports/baz/vcpkg.json
similarity index 100%
rename from azure-pipelines/e2e_registry/ports/baz/vcpkg.json
rename to azure-pipelines/e2e-registry/ports/baz/vcpkg.json
diff --git a/azure-pipelines/e2e_registry/ports/foo/portfile.cmake b/azure-pipelines/e2e-registry/ports/foo/portfile.cmake
similarity index 100%
rename from azure-pipelines/e2e_registry/ports/foo/portfile.cmake
rename to azure-pipelines/e2e-registry/ports/foo/portfile.cmake
diff --git a/azure-pipelines/e2e_registry/ports/foo/vcpkg.json b/azure-pipelines/e2e-registry/ports/foo/vcpkg.json
similarity index 93%
rename from azure-pipelines/e2e_registry/ports/foo/vcpkg.json
rename to azure-pipelines/e2e-registry/ports/foo/vcpkg.json
index e7580a5d15..7db8ee8a0a 100644
--- a/azure-pipelines/e2e_registry/ports/foo/vcpkg.json
+++ b/azure-pipelines/e2e-registry/ports/foo/vcpkg.json
@@ -1,5 +1,5 @@
-{
- "name": "foo",
- "version": "1.0.0",
- "description": "e2e test port"
-}
+{
+ "name": "foo",
+ "version": "1.0.0",
+ "description": "e2e test port"
+}
diff --git a/azure-pipelines/e2e-registry/removed-ports/removed/portfile.cmake b/azure-pipelines/e2e-registry/removed-ports/removed/portfile.cmake
new file mode 100644
index 0000000000..065116c276
--- /dev/null
+++ b/azure-pipelines/e2e-registry/removed-ports/removed/portfile.cmake
@@ -0,0 +1 @@
+set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
diff --git a/azure-pipelines/e2e-registry/removed-ports/removed/vcpkg.json b/azure-pipelines/e2e-registry/removed-ports/removed/vcpkg.json
new file mode 100644
index 0000000000..cf7445691f
--- /dev/null
+++ b/azure-pipelines/e2e-registry/removed-ports/removed/vcpkg.json
@@ -0,0 +1,4 @@
+{
+ "name": "removed",
+ "version": "1.0.0"
+}
diff --git a/azure-pipelines/e2e_registry/versions/b-/bar.json b/azure-pipelines/e2e-registry/versions/b-/bar.json
similarity index 100%
rename from azure-pipelines/e2e_registry/versions/b-/bar.json
rename to azure-pipelines/e2e-registry/versions/b-/bar.json
diff --git a/azure-pipelines/e2e_registry/versions/b-/baz.json b/azure-pipelines/e2e-registry/versions/b-/baz.json
similarity index 100%
rename from azure-pipelines/e2e_registry/versions/b-/baz.json
rename to azure-pipelines/e2e-registry/versions/b-/baz.json
diff --git a/azure-pipelines/e2e_registry/versions/baseline.json b/azure-pipelines/e2e-registry/versions/baseline.json
similarity index 100%
rename from azure-pipelines/e2e_registry/versions/baseline.json
rename to azure-pipelines/e2e-registry/versions/baseline.json
diff --git a/azure-pipelines/e2e_registry/versions/f-/foo.json b/azure-pipelines/e2e-registry/versions/f-/foo.json
similarity index 100%
rename from azure-pipelines/e2e_registry/versions/f-/foo.json
rename to azure-pipelines/e2e-registry/versions/f-/foo.json
diff --git a/azure-pipelines/e2e-registry/versions/r-/removed.json b/azure-pipelines/e2e-registry/versions/r-/removed.json
new file mode 100644
index 0000000000..fedee4c87f
--- /dev/null
+++ b/azure-pipelines/e2e-registry/versions/r-/removed.json
@@ -0,0 +1,9 @@
+{
+ "versions": [
+ {
+ "git-tree": "9b82c31964570870d27a5bb634f5b84e13f8b90a",
+ "version": "1.0.0",
+ "port-version": 0
+ }
+ ]
+}
diff --git a/azure-pipelines/e2e_projects/registries-package-patterns/no-patterns.json.in b/azure-pipelines/e2e_projects/e2e-registry-templates/no-patterns.json.in
similarity index 100%
rename from azure-pipelines/e2e_projects/registries-package-patterns/no-patterns.json.in
rename to azure-pipelines/e2e_projects/e2e-registry-templates/no-patterns.json.in
diff --git a/azure-pipelines/e2e_projects/registries-package-patterns/only-patterns.json.in b/azure-pipelines/e2e_projects/e2e-registry-templates/only-patterns.json.in
similarity index 100%
rename from azure-pipelines/e2e_projects/registries-package-patterns/only-patterns.json.in
rename to azure-pipelines/e2e_projects/e2e-registry-templates/only-patterns.json.in
diff --git a/azure-pipelines/e2e_projects/e2e-registry-templates/removed.json.in b/azure-pipelines/e2e_projects/e2e-registry-templates/removed.json.in
new file mode 100644
index 0000000000..db996fd482
--- /dev/null
+++ b/azure-pipelines/e2e_projects/e2e-registry-templates/removed.json.in
@@ -0,0 +1,18 @@
+{
+ "vcpkg-configuration": {
+ "default-registry": {
+ "kind": "git",
+ "baseline": "$E2ERegistryBaseline",
+ "repository": "$E2ERegistryPath"
+ }
+ },
+ "dependencies": [
+ "removed"
+ ],
+ "overrides": [
+ {
+ "name": "removed",
+ "version": "1.0.0"
+ }
+ ]
+}
diff --git a/azure-pipelines/e2e_projects/registries-package-patterns/with-default.json.in b/azure-pipelines/e2e_projects/e2e-registry-templates/with-default.json.in
similarity index 100%
rename from azure-pipelines/e2e_projects/registries-package-patterns/with-default.json.in
rename to azure-pipelines/e2e_projects/e2e-registry-templates/with-default.json.in
diff --git a/azure-pipelines/e2e_projects/registries-package-patterns/with-redeclaration.json.in b/azure-pipelines/e2e_projects/e2e-registry-templates/with-redeclaration.json.in
similarity index 100%
rename from azure-pipelines/e2e_projects/registries-package-patterns/with-redeclaration.json.in
rename to azure-pipelines/e2e_projects/e2e-registry-templates/with-redeclaration.json.in
diff --git a/azure-pipelines/end-to-end-tests-dir/patterns.ps1 b/azure-pipelines/end-to-end-tests-dir/e2e-registry.ps1
similarity index 62%
rename from azure-pipelines/end-to-end-tests-dir/patterns.ps1
rename to azure-pipelines/end-to-end-tests-dir/e2e-registry.ps1
index b34948cce7..edc297dccc 100644
--- a/azure-pipelines/end-to-end-tests-dir/patterns.ps1
+++ b/azure-pipelines/end-to-end-tests-dir/e2e-registry.ps1
@@ -3,24 +3,18 @@
try
{
Copy-Item -Recurse -LiteralPath @(
- "$PSScriptRoot/../e2e_projects/registries-package-patterns",
- "$PSScriptRoot/../e2e_registry"
+ "$PSScriptRoot/../e2e_projects/e2e-registry-templates",
+ "$PSScriptRoot/../e2e-registry"
) $WorkingRoot
- $manifestRoot = "$WorkingRoot/registries-package-patterns"
- $e2eRegistryPath = "$WorkingRoot/e2e_registry".Replace('\', '\\')
+ $manifestRoot = "$WorkingRoot/e2e-registry-templates"
+ $e2eRegistryPath = "$WorkingRoot/e2e-registry".Replace('\', '\\')
Push-Location $e2eRegistryPath
###
# Creates a git registry to run the e2e tests on
try
{
Write-Host "Initializing test registry"
- if (Test-Path "$e2eRegistryPath/.git")
- {
- Remove-Item -Recurse -Force "$e2eRegistryPath/.git"
- }
-
-
$gitConfig = @(
'-c', 'user.name=Nobody',
'-c', 'user.email=nobody@example.com',
@@ -42,6 +36,7 @@ try
}
###
+ # Testing registries' package selection patterns
function Update-VcpkgJson {
param($PreReplacementName)
$content = Get-Content -LiteralPath "$manifestRoot/$PreReplacementName"
@@ -55,40 +50,54 @@ try
# [patterns] No patterns (no default)
Write-Host "[patterns] No patterns (no default)"
Update-VcpkgJson 'no-patterns.json.in'
- Run-Vcpkg -EndToEndTestSilent @commonArgs install | Out-Null
+ Run-Vcpkg @commonArgs install
Throw-IfFailed
Refresh-TestRoot
# [patterns] Patterns only (no default)
Write-Host "[patterns] Patterns only (no default)"
Update-VcpkgJson 'only-patterns.json.in'
- Run-Vcpkg -EndToEndTestSilent @commonArgs install | Out-Null
+ Run-Vcpkg @commonArgs install
Throw-IfFailed
Refresh-TestRoot
# [patterns] Patterns with default
Write-Host "[patterns] Patterns with default"
Update-VcpkgJson 'with-default.json.in'
- Run-Vcpkg -EndToEndTestSilent @commonArgs install | Out-Null
+ Run-Vcpkg @commonArgs install
Throw-IfFailed
Refresh-TestRoot
# [patterns] Repeated patterns
Write-Host "[patterns] Repeated patterns"
Update-VcpkgJson 'with-redeclaration.json.in'
- $out = Run-VcpkgAndCaptureOutput -EndToEndTestSilent @commonArgs install
+ $out = Run-VcpkgAndCaptureOutput @commonArgs install
Throw-IfFailed
if ($out -notmatch "redeclarations will be ignored")
{
- $out
- throw "Expected warning about redeclaration"
+ throw 'Expected warning about redeclaration'
}
+
+ Refresh-TestRoot
+
+ # Testing that overrides can select ports that are removed from the baseline
+ Write-Host "[removed] Removed from baseline"
+ Update-VcpkgJson 'removed.json.in'
+ $out = Run-VcpkgAndCaptureOutput @commonArgs install
+ Throw-IfFailed
+ if ($out -match 'error: the baseline does not contain an entry for port removed' -Or
+ $out -notmatch 'The following packages will be built and installed:\s+removed:[^ ]+ -> 1.0.0 -- [^ ]+git-trees[\\/]9b82c31964570870d27a5bb634f5b84e13f8b90a'
+ )
+ {
+ throw 'Baseline removed port could not be selected with overrides'
+ }
+
Refresh-TestRoot
}
finally
{
Remove-Item -Recurse -Force -LiteralPath @(
- "$WorkingRoot/registries-package-patterns",
- "$WorkingRoot/e2e_registry"
+ "$WorkingRoot/e2e-registry-templates",
+ "$WorkingRoot/e2e-registry"
) -ErrorAction SilentlyContinue
}
diff --git a/azure-pipelines/end-to-end-tests-prelude.ps1 b/azure-pipelines/end-to-end-tests-prelude.ps1
index 5e5954ef82..9f166e4904 100644
--- a/azure-pipelines/end-to-end-tests-prelude.ps1
+++ b/azure-pipelines/end-to-end-tests-prelude.ps1
@@ -97,9 +97,6 @@ function Write-Trace ([string]$text) {
function Run-VcpkgAndCaptureOutput {
Param(
- [Parameter(Mandatory = $false)]
- [Switch]$EndToEndTestSilent,
-
[Parameter(Mandatory = $false)]
[Switch]$ForceExe,
@@ -112,24 +109,21 @@ function Run-VcpkgAndCaptureOutput {
}
$Script:CurrentTest = "$thisVcpkg $($testArgs -join ' ')"
- if (!$EndToEndTestSilent) { Write-Host -ForegroundColor red $Script:CurrentTest }
+ Write-Host -ForegroundColor red $Script:CurrentTest
$result = (& "$thisVcpkg" @testArgs) | Out-String
- if (!$EndToEndTestSilent) { Write-Host -ForegroundColor Gray $result }
+ Write-Host -ForegroundColor Gray $result
$result
}
function Run-Vcpkg {
Param(
- [Parameter(Mandatory = $false)]
- [Switch]$EndToEndTestSilent,
-
[Parameter(Mandatory = $false)]
[Switch]$ForceExe,
[Parameter(ValueFromRemainingArguments)]
[string[]]$TestArgs
)
- Run-VcpkgAndCaptureOutput -EndToEndTestSilent:$EndToEndTestSilent -ForceExe:$ForceExe @TestArgs | Out-Null
+ Run-VcpkgAndCaptureOutput -ForceExe:$ForceExe @TestArgs | Out-Null
}
Refresh-TestRoot
diff --git a/include/vcpkg-test/mockcmakevarprovider.h b/include/vcpkg-test/mockcmakevarprovider.h
index 6ee6428de8..1393a5843d 100644
--- a/include/vcpkg-test/mockcmakevarprovider.h
+++ b/include/vcpkg-test/mockcmakevarprovider.h
@@ -1,6 +1,7 @@
#pragma once
#include
+#include
namespace vcpkg::Test
{
@@ -18,13 +19,10 @@ namespace vcpkg::Test
dep_info_vars.emplace(spec, SMap{});
}
- void load_tag_vars(Span specs,
- const PortFileProvider& port_provider,
- Triplet host_triplet) const override
+ void load_tag_vars(const ActionPlan& action_plan, Triplet host_triplet) const override
{
- for (auto&& spec : specs)
- tag_vars.emplace(spec.package_spec, SMap{});
- (void)(port_provider);
+ for (auto&& install_action : action_plan.install_actions)
+ tag_vars.emplace(install_action.spec, SMap{});
(void)(host_triplet);
}
diff --git a/include/vcpkg/cmakevars.h b/include/vcpkg/cmakevars.h
index 585f5aed5f..097cd99f3c 100644
--- a/include/vcpkg/cmakevars.h
+++ b/include/vcpkg/cmakevars.h
@@ -32,13 +32,7 @@ namespace vcpkg::CMakeVars
virtual void load_dep_info_vars(Span specs, Triplet host_triplet) const = 0;
- virtual void load_tag_vars(Span specs,
- const PortFileProvider& port_provider,
- Triplet host_triplet) const = 0;
-
- void load_tag_vars(const ActionPlan& action_plan,
- const PortFileProvider& port_provider,
- Triplet host_triplet) const;
+ virtual void load_tag_vars(const ActionPlan& action_plan, Triplet host_triplet) const = 0;
};
std::unique_ptr make_triplet_cmake_var_provider(const VcpkgPaths& paths);
diff --git a/include/vcpkg/commands.set-installed.h b/include/vcpkg/commands.set-installed.h
index 43e0fe74c7..bc3d3a06c7 100644
--- a/include/vcpkg/commands.set-installed.h
+++ b/include/vcpkg/commands.set-installed.h
@@ -34,7 +34,6 @@ namespace vcpkg::Commands::SetInstalled
void perform_and_exit_ex(const VcpkgCmdArguments& args,
const VcpkgPaths& paths,
- const PathsPortFileProvider& provider,
const CMakeVars::CMakeVarProvider& cmake_vars,
ActionPlan action_plan,
DryRun dry_run,
diff --git a/src/vcpkg/cmakevars.cpp b/src/vcpkg/cmakevars.cpp
index cbb369de44..d1fa63c448 100644
--- a/src/vcpkg/cmakevars.cpp
+++ b/src/vcpkg/cmakevars.cpp
@@ -15,20 +15,6 @@
using namespace vcpkg;
namespace vcpkg::CMakeVars
{
- void CMakeVarProvider::load_tag_vars(const ActionPlan& action_plan,
- const PortFileProvider& port_provider,
- Triplet host_triplet) const
- {
- std::vector install_package_specs;
- install_package_specs.reserve(action_plan.install_actions.size());
- for (auto&& action : action_plan.install_actions)
- {
- install_package_specs.emplace_back(action.spec, action.feature_list);
- }
-
- load_tag_vars(install_package_specs, port_provider, host_triplet);
- }
-
const std::unordered_map& CMakeVarProvider::get_or_load_dep_info_vars(
const PackageSpec& spec, Triplet host_triplet) const
{
@@ -53,9 +39,7 @@ namespace vcpkg::CMakeVars
void load_dep_info_vars(View specs, Triplet host_triplet) const override;
- void load_tag_vars(View specs,
- const PortFileProvider& port_provider,
- Triplet host_triplet) const override;
+ void load_tag_vars(const ActionPlan& action_plan, Triplet host_triplet) const override;
Optional&> get_generic_triplet_vars(
Triplet triplet) const override;
@@ -68,7 +52,7 @@ namespace vcpkg::CMakeVars
public:
Path create_tag_extraction_file(
- const View> spec_abi_settings) const;
+ const View> spec_abi_settings) const;
Path create_dep_info_extraction_file(const View specs) const;
@@ -121,7 +105,7 @@ endmacro()
}
Path TripletCMakeVarProvider::create_tag_extraction_file(
- const View> spec_abi_settings) const
+ const View> spec_abi_settings) const
{
const Filesystem& fs = paths.get_filesystem();
static int tag_extract_id = 0;
@@ -130,7 +114,7 @@ endmacro()
int emitted_triplet_id = 0;
for (const auto& spec_abi_setting : spec_abi_settings)
{
- emitted_triplets[spec_abi_setting.first->package_spec.triplet()] = emitted_triplet_id++;
+ emitted_triplets[spec_abi_setting.first.package_spec.triplet()] = emitted_triplet_id++;
}
std::string extraction_file = create_extraction_file_prelude(paths, emitted_triplets);
@@ -177,7 +161,7 @@ endfunction()
for (const auto& spec_abi_setting : spec_abi_settings)
{
- const FullPackageSpec& spec = *spec_abi_setting.first;
+ const FullPackageSpec& spec = spec_abi_setting.first;
std::string featurelist;
for (auto&& f : spec.features)
@@ -336,9 +320,8 @@ endfunction()
{
std::vector>> vars(1);
// Hack: PackageSpecs should never have .name==""
- FullPackageSpec full_spec({"", triplet}, {});
- const auto file_path = create_tag_extraction_file(std::array, 1>{
- std::pair{&full_spec, ""}});
+ const auto file_path = create_tag_extraction_file(std::array, 1>{
+ std::pair{FullPackageSpec{{"", triplet}, {}}, ""}});
launch_and_split(file_path, vars);
paths.get_filesystem().remove(file_path, VCPKG_LINE_INFO);
@@ -375,19 +358,18 @@ endfunction()
}
}
- void TripletCMakeVarProvider::load_tag_vars(View specs,
- const PortFileProvider& port_provider,
- Triplet host_triplet) const
+ void TripletCMakeVarProvider::load_tag_vars(const ActionPlan& action_plan, Triplet host_triplet) const
{
- if (specs.size() == 0) return;
- std::vector> spec_abi_settings;
- spec_abi_settings.reserve(specs.size());
+ if (action_plan.install_actions.empty()) return;
+ std::vector> spec_abi_settings;
+ spec_abi_settings.reserve(action_plan.install_actions.size());
- for (const FullPackageSpec& spec : specs)
+ for (const auto& install_action : action_plan.install_actions)
{
- auto& scfl = port_provider.get_control_file(spec.package_spec.name()).value_or_exit(VCPKG_LINE_INFO);
+ auto& scfl = install_action.source_control_file_and_location.value_or_exit(VCPKG_LINE_INFO);
const auto override_path = scfl.source_location / "vcpkg-abi-settings.cmake";
- spec_abi_settings.emplace_back(&spec, override_path.generic_u8string());
+ spec_abi_settings.emplace_back(FullPackageSpec{install_action.spec, install_action.feature_list},
+ override_path.generic_u8string());
}
std::vector>> vars(spec_abi_settings.size());
@@ -398,7 +380,7 @@ endfunction()
auto var_list_itr = vars.begin();
for (const auto& spec_abi_setting : spec_abi_settings)
{
- const FullPackageSpec& spec = *spec_abi_setting.first;
+ const FullPackageSpec& spec = spec_abi_setting.first;
PlatformExpression::Context ctxt{std::make_move_iterator(var_list_itr->begin()),
std::make_move_iterator(var_list_itr->end())};
++var_list_itr;
diff --git a/src/vcpkg/commands.build.cpp b/src/vcpkg/commands.build.cpp
index 409a950739..72f81e9178 100644
--- a/src/vcpkg/commands.build.cpp
+++ b/src/vcpkg/commands.build.cpp
@@ -99,7 +99,7 @@ namespace vcpkg::Build
auto action_plan = create_feature_install_plan(
provider, var_provider, {&full_spec, 1}, status_db, {host_triplet, paths.packages()});
- var_provider.load_tag_vars(action_plan, provider, host_triplet);
+ var_provider.load_tag_vars(action_plan, host_triplet);
compute_all_abis(paths, action_plan, var_provider, status_db);
diff --git a/src/vcpkg/commands.check-support.cpp b/src/vcpkg/commands.check-support.cpp
index a3a20a6938..9b25392fdc 100644
--- a/src/vcpkg/commands.check-support.cpp
+++ b/src/vcpkg/commands.check-support.cpp
@@ -136,7 +136,7 @@ namespace vcpkg::Commands
{
auto action_plan = create_feature_install_plan(provider, *cmake_vars, {&user_spec, 1}, {}, create_options);
- cmake_vars->load_tag_vars(action_plan, provider, host_triplet);
+ cmake_vars->load_tag_vars(action_plan, host_triplet);
Port user_port;
user_port.port_name = user_spec.package_spec.name();
diff --git a/src/vcpkg/commands.ci.cpp b/src/vcpkg/commands.ci.cpp
index a50aac133d..952b3df8e1 100644
--- a/src/vcpkg/commands.ci.cpp
+++ b/src/vcpkg/commands.ci.cpp
@@ -183,7 +183,7 @@ namespace vcpkg::Commands::CI
});
auto action_plan = create_feature_install_plan(provider, var_provider, applicable_specs, {}, serialize_options);
- var_provider.load_tag_vars(action_plan, provider, serialize_options.host_triplet);
+ var_provider.load_tag_vars(action_plan, serialize_options.host_triplet);
Checks::check_exit(VCPKG_LINE_INFO, action_plan.already_installed.empty());
Checks::check_exit(VCPKG_LINE_INFO, action_plan.remove_actions.empty());
diff --git a/src/vcpkg/commands.install.cpp b/src/vcpkg/commands.install.cpp
index f27aecb60c..7f8434f134 100644
--- a/src/vcpkg/commands.install.cpp
+++ b/src/vcpkg/commands.install.cpp
@@ -1198,10 +1198,8 @@ namespace vcpkg
Util::erase_remove_if(install_plan.install_actions,
[&toplevel](auto&& action) { return action.spec == toplevel; });
- PathsPortFileProvider provider(fs, *registry_set, std::move(oprovider));
Commands::SetInstalled::perform_and_exit_ex(args,
paths,
- provider,
var_provider,
std::move(install_plan),
dry_run ? Commands::SetInstalled::DryRun::Yes
@@ -1246,7 +1244,7 @@ namespace vcpkg
}
}
- var_provider.load_tag_vars(action_plan, provider, host_triplet);
+ var_provider.load_tag_vars(action_plan, host_triplet);
// install plan will be empty if it is already installed - need to change this at status paragraph part
if (action_plan.empty())
diff --git a/src/vcpkg/commands.set-installed.cpp b/src/vcpkg/commands.set-installed.cpp
index a546bff5fc..f111020b9d 100644
--- a/src/vcpkg/commands.set-installed.cpp
+++ b/src/vcpkg/commands.set-installed.cpp
@@ -161,7 +161,6 @@ namespace vcpkg::Commands::SetInstalled
void perform_and_exit_ex(const VcpkgCmdArguments& args,
const VcpkgPaths& paths,
- const PathsPortFileProvider& provider,
const CMakeVars::CMakeVarProvider& cmake_vars,
ActionPlan action_plan,
DryRun dry_run,
@@ -173,7 +172,7 @@ namespace vcpkg::Commands::SetInstalled
{
auto& fs = paths.get_filesystem();
- cmake_vars.load_tag_vars(action_plan, provider, host_triplet);
+ cmake_vars.load_tag_vars(action_plan, host_triplet);
compute_all_abis(paths, action_plan, cmake_vars, {});
std::vector user_requested_specs;
@@ -311,7 +310,6 @@ namespace vcpkg::Commands::SetInstalled
perform_and_exit_ex(args,
paths,
- provider,
*cmake_vars,
std::move(action_plan),
dry_run ? DryRun::Yes : DryRun::No,
diff --git a/src/vcpkg/commands.upgrade.cpp b/src/vcpkg/commands.upgrade.cpp
index c881b6e80a..9c3a7a55b8 100644
--- a/src/vcpkg/commands.upgrade.cpp
+++ b/src/vcpkg/commands.upgrade.cpp
@@ -202,7 +202,7 @@ namespace vcpkg::Commands::Upgrade
Checks::exit_fail(VCPKG_LINE_INFO);
}
- var_provider.load_tag_vars(action_plan, provider, host_triplet);
+ var_provider.load_tag_vars(action_plan, host_triplet);
auto binary_cache = BinaryCache::make(args, paths, stdout_sink).value_or_exit(VCPKG_LINE_INFO);
compute_all_abis(paths, action_plan, var_provider, status_db);