[POC|Invalid] Testing vcpkg without installed MSVC #45778
Annotations
3 errors and 1 warning
Check
All vcpkg.json files must be formatted. To fix this problem, run:
./vcpkg format-manifest ports/*/vcpkg.json
It should make the following changes:```diff
diff --git a/ports/intel-hpc/vcpkg.json b/ports/intel-hpc/vcpkg.json
index 955336d..02e53c0 100644
--- a/ports/intel-hpc/vcpkg.json
+++ b/ports/intel-hpc/vcpkg.json
@@ -1,8 +1,8 @@
-{
- "name": "intel-hpc",
- "version": "2025.0.0",
- "license": "MIT",
- "dependencies": [
- "vcpkg-tool-lessmsi"
- ]
-}
+{
+ "name": "intel-hpc",
+ "version": "2025.0.0",
+ "license": "MIT",
+ "dependencies": [
+ "vcpkg-tool-lessmsi"
+ ]
+}
diff --git a/ports/msvc/vcpkg.json b/ports/msvc/vcpkg.json
index cf7979b..e1e7cad 100644
--- a/ports/msvc/vcpkg.json
+++ b/ports/msvc/vcpkg.json
@@ -1,8 +1,8 @@
-{
- "name": "msvc",
- "version": "17.12.0",
- "license": "MIT",
- "dependencies": [
- "vcpkg-tool-lessmsi"
- ]
-}
+{
+ "name": "msvc",
+ "version": "17.12.0",
+ "license": "MIT",
+ "dependencies": [
+ "vcpkg-tool-lessmsi"
+ ]
+}
diff --git a/ports/vcpkg-cmake/vcpkg.json b/ports/vcpkg-cmake/vcpkg.json
index 0d08796..349832c 100644
--- a/ports/vcpkg-cmake/vcpkg.json
+++ b/ports/vcpkg-cmake/vcpkg.json
@@ -3,7 +3,7 @@
"version-date": "2024-04-23",
"documentation": "https://learn.microsoft.com/vcpkg/maintainers/functions/vcpkg_cmake_configure",
"license": "MIT",
- "dependencies" : [
+ "dependencies": [
"msvc"
]
}
diff --git a/ports/vcpkg-gfortran/vcpkg.json b/ports/vcpkg-gfortran/vcpkg.json
index 4c37270..08a3aa7 100644
--- a/ports/vcpkg-gfortran/vcpkg.json
+++ b/ports/vcpkg-gfortran/vcpkg.json
@@ -4,5 +4,7 @@
"port-version": 3,
"description": "Metaport to install gfortran dependencies from msys if VCPKG_USE_EXTERNAL_Fortran is false",
"supports": "windows & !arm & !uwp",
- "dependencies" : [ "intel-hpc"]
+ "dependencies": [
+ "intel-hpc"
+ ]
}
```
|
Check
PRs must add only one version, and must not modify any published versions.
When making any changes to a library, the version or port-version in vcpkg.json must be modified, and the version database updated.
Making the following changes will fix this problem:```diff
error: checked-in files for vcpkg-gfortran have changed but the version was not updated
version: 3#3
old SHA: 1af46bd54a9156a9f24fc7c8715488699522b382
new SHA: 09eca0c9e02b8952a51852eb54dd912ec4a31f14
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
See https://learn.microsoft.com/vcpkg/commands/add-version?WT.mc_id=vcpkg_inproduct_cli#--overwrite-version for more information.
***No files were updated***
error: checked-in files for vcpkg-cmake have changed but the version was not updated
version: 2024-04-23
old SHA: e74aa1e8f93278a8e71372f1fa08c3df420eb840
new SHA: 25b4e2249702e6c5f690c0e2385c881747ae5378
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
See https://learn.microsoft.com/vcpkg/commands/add-version?WT.mc_id=vcpkg_inproduct_cli#--overwrite-version for more information.
***No files were updated***
```
|
Check
After committing all other changes, the version database must be updated.
This can be done by running the following commands after committing your changes:
git add -u && git commit
git checkout 772f784ba8d1add92420bd6b81d4cd6a91fb36ac -- versions
./vcpkg x-add-version --all
|
Check
If you feel able to do so, please consider adding a "license" field to the following files:
ports/vcpkg-gfortran/vcpkg.json
Valid values for the license field can be found at https://learn.microsoft.com/vcpkg/reference/vcpkg-json#license
|