Add "verify-messages" target (#1372)
* should be forward slashes * add script to check for unused messages * add messages check to pr workflow * error if unused messages * dont print every message every time * remove bogus comment * remove bogus comment * remove bogus comment (again) * Remove timer; add word boundry to regex;merge format and very messages job in pr.yaml * Use JSON files instead of REGEX to declare messages * pass artifact messages as argument * filter out empty from unused messages * filter out empty from unused messages * infer path from PSScriptRoot; reuse configure in format job * remove unused messages * add new line at the end of ps script * remove unused messages * try something * add messages.json again --------- Co-authored-by: Javier Matos <javiermatos@Javiers-Laptop.local> Co-authored-by: Javier Matos <javiermatos@Javiers-Laptop.lan>
This commit is contained in:
Родитель
77fa3824ed
Коммит
296a34e6cd
|
@ -39,6 +39,10 @@ jobs:
|
|||
cmake --preset windows-ci
|
||||
IF %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL%
|
||||
cmake --build --preset windows-ci --target generate-message-map -- -k0
|
||||
- name: Verify Messages
|
||||
shell: pwsh
|
||||
run: |
|
||||
cmake --build --preset windows-ci --target verify-messages -- -k0
|
||||
- name: 'Format C++'
|
||||
shell: pwsh
|
||||
run: ./azure-pipelines/Format-CxxCode.ps1
|
||||
|
|
|
@ -560,6 +560,13 @@ add_executable(test-script-asset-cache ${TEST_SCRIPT_ASSET_CACHE_SOURCES} "${CMA
|
|||
set_property(TARGET test-script-asset-cache PROPERTY PDB_NAME "test-script-asset-cache${VCPKG_PDB_SUFFIX}")
|
||||
endif()
|
||||
|
||||
# === Target: verify_messages ===
|
||||
add_custom_target(
|
||||
verify-messages
|
||||
COMMAND pwsh -File "${CMAKE_CURRENT_SOURCE_DIR}/scripts/verifyMessages.ps1"
|
||||
COMMENT "Running PowerShell script to verify message usage..."
|
||||
)
|
||||
|
||||
# === Target: format ===
|
||||
|
||||
find_program(CLANG_FORMAT clang-format PATHS "$ENV{PROGRAMFILES}/LLVM/bin")
|
||||
|
|
|
@ -178,7 +178,6 @@ DECLARE_MESSAGE(ArtifactsNotInstalledReadonlyRoot,
|
|||
"",
|
||||
"vcpkg-artifacts is not installed, and it can't be installed because VCPKG_ROOT is assumed to be "
|
||||
"readonly. Reinstalling vcpkg using the 'one liner' may fix this problem.")
|
||||
DECLARE_MESSAGE(ArtifactsNotOfficialWarning, (), "", "Using vcpkg-artifacts with an unofficial ")
|
||||
DECLARE_MESSAGE(ArtifactsOptionIncompatibility, (msg::option), "", "--{option} has no effect on find artifact.")
|
||||
DECLARE_MESSAGE(ArtifactsOptionJson,
|
||||
(),
|
||||
|
@ -193,14 +192,12 @@ DECLARE_MESSAGE(ArtifactsOptionVersionMismatch,
|
|||
(),
|
||||
"--version is a command line switch and must not be localized",
|
||||
"The number of --version switches must match the number of named artifacts")
|
||||
DECLARE_MESSAGE(ArtifactsSwitchAll, (), "", "Updates all known artifact registries")
|
||||
DECLARE_MESSAGE(ArtifactsSwitchAllLanguages, (), "", "Acquires all language files when acquiring artifacts")
|
||||
DECLARE_MESSAGE(ArtifactsSwitchARM, (), "", "Forces host detection to ARM when acquiring artifacts")
|
||||
DECLARE_MESSAGE(ArtifactsSwitchARM64, (), "", "Forces host detection to ARM64 when acquiring artifacts")
|
||||
DECLARE_MESSAGE(ArtifactsSwitchForce, (), "", "Forces reacquire if an artifact is already acquired")
|
||||
DECLARE_MESSAGE(ArtifactsSwitchFreebsd, (), "", "Forces host detection to FreeBSD when acquiring artifacts")
|
||||
DECLARE_MESSAGE(ArtifactsSwitchLinux, (), "", "Forces host detection to Linux when acquiring artifacts")
|
||||
DECLARE_MESSAGE(ArtifactsSwitchNormalize, (), "", "Applies any deprecation fixups")
|
||||
DECLARE_MESSAGE(ArtifactsSwitchTargetARM, (), "", "Sets target detection to ARM when acquiring artifacts")
|
||||
DECLARE_MESSAGE(ArtifactsSwitchTargetARM64, (), "", "Sets target detection to ARM64 when acquiring artifacts")
|
||||
DECLARE_MESSAGE(ArtifactsSwitchTargetX64, (), "", "Sets target detection to x64 when acquiring artifacts")
|
||||
|
@ -230,10 +227,6 @@ DECLARE_MESSAGE(ASemanticVersionString, (), "", "a semantic version string")
|
|||
DECLARE_MESSAGE(ASetOfFeatures, (), "", "a set of features")
|
||||
DECLARE_MESSAGE(AStringOrArrayOfStrings, (), "", "a string or array of strings")
|
||||
DECLARE_MESSAGE(AStringStringDictionary, (), "", "a \"string\": \"string\" dictionary")
|
||||
DECLARE_MESSAGE(AttemptingToFetchPackagesFromVendor,
|
||||
(msg::count, msg::vendor),
|
||||
"",
|
||||
"Attempting to fetch {count} package(s) from {vendor}")
|
||||
DECLARE_MESSAGE(AttemptingToSetBuiltInBaseline,
|
||||
(),
|
||||
"",
|
||||
|
@ -279,10 +272,6 @@ DECLARE_MESSAGE(BaselineConflict,
|
|||
"",
|
||||
"Specifying vcpkg-configuration.default-registry in a manifest file conflicts with built-in "
|
||||
"baseline.\nPlease remove one of these conflicting settings.")
|
||||
DECLARE_MESSAGE(BaselineFileNoDefaultField,
|
||||
(msg::commit_sha),
|
||||
"",
|
||||
"The baseline file at commit {commit_sha} was invalid (no \"default\" field).")
|
||||
DECLARE_MESSAGE(BaselineGitShowFailed,
|
||||
(msg::commit_sha),
|
||||
"",
|
||||
|
@ -296,7 +285,6 @@ DECLARE_MESSAGE(BaselineMissing,
|
|||
"git add versions\n"
|
||||
"git commit -m \"Update version database\"\n"
|
||||
"to set {version} as the baseline version.")
|
||||
DECLARE_MESSAGE(BinaryCacheVendorHTTP, (), "", "HTTP servers")
|
||||
DECLARE_MESSAGE(BinarySourcesArg,
|
||||
(),
|
||||
"'vcpkg help binarycaching' is a command line and should not be localized",
|
||||
|
@ -402,11 +390,6 @@ DECLARE_MESSAGE(
|
|||
"before version information about vcpkg itself.",
|
||||
"Include '[{package_name}] Build error' in your bug report title, the following version information in your "
|
||||
"bug description, and attach any relevant failure logs from above.")
|
||||
DECLARE_MESSAGE(BuildTroubleshootingMessage4,
|
||||
(msg::path),
|
||||
"Fourth optional part of build troubleshooting message, printed after the version"
|
||||
"information about vcpkg itself.",
|
||||
"Please use the prefilled template from {path} when reporting your issue.")
|
||||
DECLARE_MESSAGE(BuiltInTriplets, (), "", "Built-in Triplets:")
|
||||
DECLARE_MESSAGE(BuiltWithIncorrectArchitecture, (), "", "The following files were built for an incorrect architecture:")
|
||||
DECLARE_MESSAGE(CheckedOutGitSha, (msg::commit_sha), "", "Checked out Git SHA: {commit_sha}")
|
||||
|
@ -462,10 +445,6 @@ DECLARE_MESSAGE(CISettingsOptParentHashes,
|
|||
(),
|
||||
"",
|
||||
"File to read package hashes for a parent CI state, to reduce the set of changed packages")
|
||||
DECLARE_MESSAGE(CISettingsOptSkippedCascadeCount,
|
||||
(),
|
||||
"",
|
||||
"Asserts that the number of --exclude and supports skips exactly equal this number")
|
||||
DECLARE_MESSAGE(CISettingsOptXUnit, (), "", "File to output results in XUnit format")
|
||||
DECLARE_MESSAGE(CISettingsVerifyGitTree,
|
||||
(),
|
||||
|
@ -533,11 +512,6 @@ DECLARE_MESSAGE(CmdBuildExample1,
|
|||
"vcpkg build <port spec>")
|
||||
DECLARE_MESSAGE(CmdBuildExternalSynopsis, (), "", "Builds port from a path")
|
||||
DECLARE_MESSAGE(CmdBuildSynopsis, (), "", "Builds a port")
|
||||
DECLARE_MESSAGE(CmdCacheExample1,
|
||||
(),
|
||||
"This is a command line, only the <>s part should be localized",
|
||||
"vcpkg cache <search substring>")
|
||||
DECLARE_MESSAGE(CmdCacheSynopsis, (), "", "List specs of packages")
|
||||
DECLARE_MESSAGE(CmdCiCleanSynopsis,
|
||||
(),
|
||||
"CI is continuous integration (building everything together)",
|
||||
|
@ -547,7 +521,6 @@ DECLARE_MESSAGE(CmdCiSynopsis,
|
|||
"CI is continuous integration (building everything together)",
|
||||
"Tries building all ports for CI testing")
|
||||
DECLARE_MESSAGE(CmdCiVerifyVersionsSynopsis, (), "", "Checks integrity of the version database")
|
||||
DECLARE_MESSAGE(CmdContactOptSurvey, (), "", "Launch default browser to the current vcpkg survey")
|
||||
DECLARE_MESSAGE(CmdCheckSupportExample1,
|
||||
(),
|
||||
"This is a command line, only the <>s part should be localized",
|
||||
|
@ -962,7 +935,6 @@ DECLARE_MESSAGE(CurrentCommitBaseline,
|
|||
"",
|
||||
"You can use the current commit as a baseline, which is:\n\t\"builtin-baseline\": \"{commit_sha}\"")
|
||||
DECLARE_MESSAGE(CycleDetectedDuring, (msg::spec), "", "cycle detected during {spec}:")
|
||||
DECLARE_MESSAGE(DateTableHeader, (), "", "Date")
|
||||
DECLARE_MESSAGE(DefaultBinaryCachePlatformCacheRequiresAbsolutePath,
|
||||
(msg::path),
|
||||
"",
|
||||
|
@ -1063,7 +1035,6 @@ DECLARE_MESSAGE(DuplicatePackagePatternIgnoredLocations, (), "", "The following
|
|||
DECLARE_MESSAGE(DuplicatePackagePatternLocation, (msg::path), "", "location: {path}")
|
||||
DECLARE_MESSAGE(DuplicatePackagePatternRegistry, (msg::url), "", "registry: {url}")
|
||||
DECLARE_MESSAGE(ElapsedForPackage, (msg::spec, msg::elapsed), "", "Elapsed time to handle {spec}: {elapsed}")
|
||||
DECLARE_MESSAGE(ElapsedInstallTime, (msg::count), "", "Total elapsed time: {count}")
|
||||
DECLARE_MESSAGE(ElapsedTimeForChecks, (msg::elapsed), "", "Time to determine pass/fail: {elapsed}")
|
||||
DECLARE_MESSAGE(EmailVcpkgTeam, (msg::url), "", "Send an email to {url} with any feedback.")
|
||||
DECLARE_MESSAGE(EmbeddingVcpkgConfigInManifest,
|
||||
|
@ -1187,11 +1158,6 @@ DECLARE_MESSAGE(ExportingAlreadyBuiltPackages, (), "", "The following packages a
|
|||
DECLARE_MESSAGE(ExportingMaintenanceTool, (), "", "Exporting maintenance tool...")
|
||||
DECLARE_MESSAGE(ExportingPackage, (msg::package_name), "", "Exporting {package_name}...")
|
||||
DECLARE_MESSAGE(ExportPrefabRequiresAndroidTriplet, (), "", "export prefab requires an Android triplet.")
|
||||
DECLARE_MESSAGE(ExportUnsupportedInManifest,
|
||||
(),
|
||||
"",
|
||||
"vcpkg export does not support manifest mode, in order to allow for future design considerations. "
|
||||
"You may use export in classic mode by running vcpkg outside of a manifest-based project.")
|
||||
DECLARE_MESSAGE(ExtendedDocumentationAtUrl, (msg::url), "", "Extended documentation available at '{url}'.")
|
||||
DECLARE_MESSAGE(ExtractHelp, (), "", "Extracts an archive.")
|
||||
DECLARE_MESSAGE(ExtractingTool, (msg::tool_name), "", "Extracting {tool_name}...")
|
||||
|
@ -1270,7 +1236,6 @@ DECLARE_MESSAGE(FailedToParseVersionXML,
|
|||
(msg::tool_name, msg::version),
|
||||
"",
|
||||
"Could not parse version for tool {tool_name}. Version string was: {version}")
|
||||
DECLARE_MESSAGE(FailedToProvisionCe, (), "", "Failed to provision vcpkg-artifacts.")
|
||||
DECLARE_MESSAGE(FailedToReadParagraph, (msg::path), "", "Failed to read paragraphs from {path}")
|
||||
DECLARE_MESSAGE(FailedToRemoveControl, (msg::path), "", "Failed to remove control file {path}")
|
||||
DECLARE_MESSAGE(FailedToRunToolToDetermineVersion,
|
||||
|
@ -1294,11 +1259,6 @@ DECLARE_MESSAGE(FilesContainAbsolutePath1,
|
|||
"followed by a list of found files.",
|
||||
"There should be no absolute paths, such as the following, in an installed package:")
|
||||
DECLARE_MESSAGE(FilesContainAbsolutePath2, (), "", "Absolute paths were found in the following files:")
|
||||
DECLARE_MESSAGE(FindHelp,
|
||||
(),
|
||||
"'artifact' and 'port' are what the user must literally type.",
|
||||
"Searches for the indicated artifact or port. With no parameter after 'artifact' or 'port', "
|
||||
"displays everything.")
|
||||
DECLARE_MESSAGE(FindVersionArtifactsOnly,
|
||||
(),
|
||||
"'--version', 'vcpkg search', and 'vcpkg find port' are command lines that must not be localized",
|
||||
|
@ -1323,7 +1283,6 @@ DECLARE_MESSAGE(FileSeekFailed,
|
|||
"",
|
||||
"Failed to seek to position {byte_offset} in {path}.")
|
||||
DECLARE_MESSAGE(FilesExported, (msg::path), "", "Files exported at: {path}")
|
||||
DECLARE_MESSAGE(FileSystemOperationFailed, (), "", "Filesystem operation failed:")
|
||||
DECLARE_MESSAGE(FishCompletion, (msg::path), "", "vcpkg fish completion is already added at \"{path}\".")
|
||||
DECLARE_MESSAGE(FloatingPointConstTooBig, (msg::count), "", "Floating point constant too big: {count}")
|
||||
DECLARE_MESSAGE(FollowingPackagesMissingControl,
|
||||
|
@ -1563,10 +1522,7 @@ DECLARE_MESSAGE(HelpEditCommand,
|
|||
DECLARE_MESSAGE(HelpEnvCommand, (), "", "Creates a clean shell environment for development or compiling")
|
||||
DECLARE_MESSAGE(HelpExampleCommand, (), "", "For more help (including examples) see https://learn.microsoft.com/vcpkg")
|
||||
DECLARE_MESSAGE(HelpExampleManifest, (), "", "Example manifest:")
|
||||
DECLARE_MESSAGE(HelpExportCommand, (), "", "Exports a package.")
|
||||
DECLARE_MESSAGE(HelpHashCommand, (), "", "Hash a file by specific algorithm, default SHA512.")
|
||||
DECLARE_MESSAGE(HelpInstallCommand, (), "", "Installs a package")
|
||||
DECLARE_MESSAGE(HelpListCommand, (), "", "Lists installed packages")
|
||||
DECLARE_MESSAGE(HelpManifestConstraints,
|
||||
(),
|
||||
"",
|
||||
|
@ -1688,11 +1644,9 @@ DECLARE_MESSAGE(
|
|||
"value {path}. To suppress this message, unset the environment variable or use the --vcpkg-root command line "
|
||||
"switch.")
|
||||
DECLARE_MESSAGE(IllegalFeatures, (), "", "List of features is not allowed in this context")
|
||||
DECLARE_MESSAGE(IllegalTriplet, (), "", "Triplet is not allowed in this context")
|
||||
DECLARE_MESSAGE(IllegalPlatformSpec, (), "", "Platform qualifier is not allowed in this context")
|
||||
DECLARE_MESSAGE(ImproperShaLength, (msg::value), "{value} is a sha.", "SHA512's must be 128 hex characters: {value}")
|
||||
DECLARE_MESSAGE(IncorrectArchiveFileSignature, (), "", "Incorrect archive file signature")
|
||||
DECLARE_MESSAGE(IncorrectPESignature, (), "", "Incorrect PE signature")
|
||||
DECLARE_MESSAGE(InfoSetEnvVar,
|
||||
(msg::env_var),
|
||||
"In this context 'editor' means IDE",
|
||||
|
@ -2089,10 +2043,6 @@ DECLARE_MESSAGE(MonoInstructions,
|
|||
"This may be caused by an incomplete mono installation. Full mono is "
|
||||
"available on some systems via `sudo apt install mono-complete`. Ubuntu 18.04 users may "
|
||||
"need a newer version of mono, available at https://www.mono-project.com/download/stable/")
|
||||
DECLARE_MESSAGE(MsiexecFailedToExtract,
|
||||
(msg::path, msg::exit_code),
|
||||
"",
|
||||
"msiexec failed while extracting \"{path}\" with launch or exit code {exit_code} and message:")
|
||||
DECLARE_MESSAGE(MultiArch, (msg::option), "", "Multi-Arch must be 'same' but was {option}")
|
||||
DECLARE_MESSAGE(MultipleFeatures,
|
||||
(msg::package_name, msg::feature),
|
||||
|
@ -2118,13 +2068,11 @@ DECLARE_MESSAGE(NewSpecifyNameVersionOrApplication,
|
|||
"Either specify --name and --version to produce a manifest intended for C++ libraries, or specify "
|
||||
"--application to indicate that the manifest is not intended to be used as a port.")
|
||||
DECLARE_MESSAGE(NewVersionCannotBeEmpty, (), "", "--version cannot be empty.")
|
||||
DECLARE_MESSAGE(NoArgumentsForOption, (msg::option), "", "The option --{option} does not accept an argument.")
|
||||
DECLARE_MESSAGE(NoError, (), "", "no error")
|
||||
DECLARE_MESSAGE(NoInstalledPackages,
|
||||
(),
|
||||
"The name 'search' is the name of a command that is not localized.",
|
||||
"No packages are installed. Did you mean `search`?")
|
||||
DECLARE_MESSAGE(NoLocalizationForMessages, (), "", "No localized messages for the following: ")
|
||||
DECLARE_MESSAGE(NonExactlyArgs,
|
||||
(msg::command_name, msg::expected, msg::actual),
|
||||
"{expected} and {actual} are integers",
|
||||
|
@ -2197,7 +2145,6 @@ DECLARE_MESSAGE(PackageFailedtWhileExtracting,
|
|||
DECLARE_MESSAGE(PackageInstallationHeader, (), "", "Package Installation")
|
||||
DECLARE_MESSAGE(PackageRootDir, (), "", "Packages directory (experimental)")
|
||||
DECLARE_MESSAGE(PackagesToInstall, (), "", "The following packages will be built and installed:")
|
||||
DECLARE_MESSAGE(PackagesToInstallDirectly, (), "", "The following packages will be directly installed:")
|
||||
DECLARE_MESSAGE(PackagesToModify, (), "", "Additional packages (*) will be modified to complete this operation.")
|
||||
DECLARE_MESSAGE(PackagesToRebuild, (), "", "The following packages will be rebuilt:")
|
||||
DECLARE_MESSAGE(PackagesToRebuildSuggestRecurse,
|
||||
|
@ -2282,10 +2229,6 @@ DECLARE_MESSAGE(PERvaNotFound,
|
|||
"https://learn.microsoft.com/windows/win32/debug/pe-format",
|
||||
"While parsing Portable Executable {path}, could not find RVA {value:#X}.")
|
||||
DECLARE_MESSAGE(PerformingPostBuildValidation, (), "", "-- Performing post-build validation")
|
||||
DECLARE_MESSAGE(PortBugAllowRestrictedHeaders,
|
||||
(msg::env_var),
|
||||
"",
|
||||
"In exceptional circumstances, this policy can be disabled via {env_var}")
|
||||
DECLARE_MESSAGE(PortBugBinDirExists,
|
||||
(msg::path),
|
||||
"",
|
||||
|
@ -2449,7 +2392,6 @@ DECLARE_MESSAGE(PortNotInBaseline,
|
|||
"",
|
||||
"the baseline does not contain an entry for port {package_name}")
|
||||
DECLARE_MESSAGE(PortsAdded, (msg::count), "", "The following {count} ports were added:")
|
||||
DECLARE_MESSAGE(PortsDiffHelp, (), "", "The argument should be a branch/tag/hash to checkout.")
|
||||
DECLARE_MESSAGE(PortDoesNotExist, (msg::package_name), "", "{package_name} does not exist")
|
||||
DECLARE_MESSAGE(PortMissingManifest2,
|
||||
(msg::package_name),
|
||||
|
@ -2534,10 +2476,6 @@ DECLARE_MESSAGE(ScriptAssetCacheRequiresScript,
|
|||
(),
|
||||
"",
|
||||
"expected arguments: asset config 'x-script' requires exactly the exec template as an argument")
|
||||
DECLARE_MESSAGE(SearchHelp,
|
||||
(),
|
||||
"",
|
||||
"The argument should be a substring to search for, or no argument to display all libraries.")
|
||||
DECLARE_MESSAGE(SecretBanner, (), "", "*** SECRET ***")
|
||||
DECLARE_MESSAGE(SeeURL, (msg::url), "", "See {url} for more information.")
|
||||
DECLARE_MESSAGE(SerializedBinParagraphHeader, (), "", "\nSerialized Binary Paragraph")
|
||||
|
@ -2582,7 +2520,6 @@ DECLARE_MESSAGE(SpecifyTargetArch,
|
|||
"'vcpkg help triplet' is a command line that should not be localized",
|
||||
"Target triplet. See 'vcpkg help triplet' (default: {env_var})")
|
||||
DECLARE_MESSAGE(StartCodeUnitInContinue, (), "", "found start code unit in continue position")
|
||||
DECLARE_MESSAGE(StoredBinaryCache, (msg::path), "", "Stored binary cache: \"{path}\"")
|
||||
DECLARE_MESSAGE(StoredBinariesToDestinations,
|
||||
(msg::count, msg::elapsed),
|
||||
"",
|
||||
|
@ -2657,7 +2594,6 @@ DECLARE_MESSAGE(UnexpectedByteSize,
|
|||
"Expected {expected} bytes to be written, but {actual} were written.")
|
||||
DECLARE_MESSAGE(UnexpectedCharExpectedCloseBrace, (), "", "Unexpected character; expected property or close brace")
|
||||
DECLARE_MESSAGE(UnexpectedCharExpectedColon, (), "", "Unexpected character; expected colon")
|
||||
DECLARE_MESSAGE(UnexpectedCharExpectedComma, (), "", "Unexpected character; expected comma or close brace")
|
||||
DECLARE_MESSAGE(UnexpectedCharExpectedName, (), "", "Unexpected character; expected property name")
|
||||
DECLARE_MESSAGE(UnexpectedCharExpectedValue, (), "", "Unexpected character; expected value")
|
||||
DECLARE_MESSAGE(UnexpectedCharMidArray, (), "", "Unexpected character in middle of array")
|
||||
|
@ -2678,7 +2614,6 @@ DECLARE_MESSAGE(UnexpectedEOFMidString, (), "", "Unexpected EOF in middle of str
|
|||
DECLARE_MESSAGE(UnexpectedEOFMidUnicodeEscape, (), "", "Unexpected end of file in middle of unicode escape")
|
||||
DECLARE_MESSAGE(UnexpectedErrorDuringBulkDownload, (), "", "an unexpected error occurred during bulk download.")
|
||||
DECLARE_MESSAGE(UnexpectedEscapeSequence, (), "", "Unexpected escape sequence continuation")
|
||||
DECLARE_MESSAGE(UnexpectedExtension, (msg::extension), "", "Unexpected archive extension: '{extension}'.")
|
||||
DECLARE_MESSAGE(UnexpectedField, (msg::json_field), "", "unexpected field '{json_field}'")
|
||||
DECLARE_MESSAGE(UnexpectedFieldSuggest,
|
||||
(msg::json_field, msg::value),
|
||||
|
@ -2727,7 +2662,6 @@ DECLARE_MESSAGE(UnknownBooleanSetting,
|
|||
"{value} is what {option} is set to",
|
||||
"unknown boolean setting for {option}: \"{value}\". Valid values are '', '1', '0', 'ON', 'OFF', "
|
||||
"'TRUE', and 'FALSE'.")
|
||||
DECLARE_MESSAGE(UnknownOptions, (msg::command_name), "", "Unknown option(s) for command '{command_name}':")
|
||||
DECLARE_MESSAGE(UnknownParameterForIntegrate,
|
||||
(msg::value),
|
||||
"'{value}' is a user-supplied command line option. For example, given vcpkg integrate frobinate, "
|
||||
|
@ -2780,10 +2714,6 @@ DECLARE_MESSAGE(UnsupportedPortDependency,
|
|||
(msg::value),
|
||||
"'{value}' is the name of a port dependency.",
|
||||
"- dependency {value} is not supported.")
|
||||
DECLARE_MESSAGE(UnsupportedShortOptions,
|
||||
(msg::value),
|
||||
"'{value}' is the short option given",
|
||||
"short options are not supported: '{value}'")
|
||||
DECLARE_MESSAGE(UnsupportedSyntaxInCDATA, (), "", "]]> is not supported in CDATA block")
|
||||
DECLARE_MESSAGE(UnsupportedSystemName,
|
||||
(msg::system_name),
|
||||
|
@ -2838,19 +2768,10 @@ DECLARE_MESSAGE(
|
|||
(),
|
||||
"",
|
||||
"If you are sure you want to rebuild the above packages, run this command with the --no-dry-run option.")
|
||||
DECLARE_MESSAGE(UploadedBinaries, (msg::count, msg::vendor), "", "Uploaded binaries to {count} {vendor}.")
|
||||
DECLARE_MESSAGE(UploadedPackagesToVendor,
|
||||
(msg::count, msg::elapsed, msg::vendor),
|
||||
"",
|
||||
"Uploaded {count} package(s) to {vendor} in {elapsed}")
|
||||
DECLARE_MESSAGE(UploadingBinariesToVendor,
|
||||
(msg::spec, msg::vendor, msg::path),
|
||||
"",
|
||||
"Uploading binaries for '{spec}' to '{vendor}' source \"{path}\".")
|
||||
DECLARE_MESSAGE(UploadingBinariesUsingVendor,
|
||||
(msg::spec, msg::vendor, msg::path),
|
||||
"",
|
||||
"Uploading binaries for '{spec}' using '{vendor}' \"{path}\".")
|
||||
DECLARE_MESSAGE(UseEnvVar,
|
||||
(msg::env_var),
|
||||
"An example of env_var is \"HTTP(S)_PROXY\""
|
||||
|
@ -2864,7 +2785,6 @@ DECLARE_MESSAGE(VcpkgCeIsExperimental,
|
|||
(),
|
||||
"The name of the feature is 'vcpkg-artifacts' and should be singular despite ending in s",
|
||||
"vcpkg-artifacts is experimental and may change at any time.")
|
||||
DECLARE_MESSAGE(VcpkgCommitTableHeader, (), "", "VCPKG Commit")
|
||||
DECLARE_MESSAGE(
|
||||
VcpkgCompletion,
|
||||
(msg::value, msg::path),
|
||||
|
@ -2928,13 +2848,6 @@ DECLARE_MESSAGE(VersionConstraintPortVersionMustBePositiveInteger,
|
|||
(),
|
||||
"",
|
||||
"port-version (after the '#') in \"version>=\" must be a non-negative integer")
|
||||
DECLARE_MESSAGE(VersionConstraintUnresolvable,
|
||||
(msg::package_name, msg::spec),
|
||||
"",
|
||||
"Cannot resolve a minimum constraint for dependency {package_name} from {spec}.\nThe dependency "
|
||||
"was not found in the baseline, indicating that the package did not exist at that time. This may "
|
||||
"be fixed by providing an explicit override version via the \"overrides\" field or by updating the "
|
||||
"baseline.\nSee `vcpkg help versioning` for more information.")
|
||||
DECLARE_MESSAGE(VersionConstraintViolated,
|
||||
(msg::spec, msg::expected_version, msg::actual_version),
|
||||
"",
|
||||
|
@ -3067,7 +2980,6 @@ DECLARE_MESSAGE(VersionSpecMismatch,
|
|||
"",
|
||||
"Failed to load port because versions are inconsistent. The file \"{path}\" contains the version "
|
||||
"{actual_version}, but the version database indicates that it should be {expected_version}.")
|
||||
DECLARE_MESSAGE(VersionTableHeader, (), "", "Version")
|
||||
DECLARE_MESSAGE(VersionVerifiedOK,
|
||||
(msg::version_spec, msg::git_tree_sha),
|
||||
"",
|
||||
|
|
|
@ -143,7 +143,6 @@
|
|||
"ApplocalProcessing": "deploying dependencies",
|
||||
"ArtifactsBootstrapFailed": "vcpkg-artifacts is not installed and could not be bootstrapped.",
|
||||
"ArtifactsNotInstalledReadonlyRoot": "vcpkg-artifacts is not installed, and it can't be installed because VCPKG_ROOT is assumed to be readonly. Reinstalling vcpkg using the 'one liner' may fix this problem.",
|
||||
"ArtifactsNotOfficialWarning": "Using vcpkg-artifacts with an unofficial ",
|
||||
"ArtifactsOptionIncompatibility": "--{option} has no effect on find artifact.",
|
||||
"_ArtifactsOptionIncompatibility.comment": "An example of {option} is editable.",
|
||||
"ArtifactsOptionJson": "Full path to JSON file where environment variables and other properties are recorded",
|
||||
|
@ -153,12 +152,10 @@
|
|||
"_ArtifactsOptionVersionMismatch.comment": "--version is a command line switch and must not be localized",
|
||||
"ArtifactsSwitchARM": "Forces host detection to ARM when acquiring artifacts",
|
||||
"ArtifactsSwitchARM64": "Forces host detection to ARM64 when acquiring artifacts",
|
||||
"ArtifactsSwitchAll": "Updates all known artifact registries",
|
||||
"ArtifactsSwitchAllLanguages": "Acquires all language files when acquiring artifacts",
|
||||
"ArtifactsSwitchForce": "Forces reacquire if an artifact is already acquired",
|
||||
"ArtifactsSwitchFreebsd": "Forces host detection to FreeBSD when acquiring artifacts",
|
||||
"ArtifactsSwitchLinux": "Forces host detection to Linux when acquiring artifacts",
|
||||
"ArtifactsSwitchNormalize": "Applies any deprecation fixups",
|
||||
"ArtifactsSwitchOnlyOneHostPlatform": "Only one host platform (--x64, --x86, --arm, --arm64) may be set.",
|
||||
"_ArtifactsSwitchOnlyOneHostPlatform.comment": "The words after -- are command line switches and must not be localized.",
|
||||
"ArtifactsSwitchOnlyOneOperatingSystem": "Only one operating system (--windows, --osx, --linux, --freebsd) may be set.",
|
||||
|
@ -176,8 +173,6 @@
|
|||
"AssetCacheProviderAcceptsNoArguments": "unexpected arguments: '{value}' does not accept arguments",
|
||||
"_AssetCacheProviderAcceptsNoArguments.comment": "{value} is a asset caching provider name such as azurl, clear, or x-block-origin",
|
||||
"AssetSourcesArg": "Asset caching sources. See 'vcpkg help assetcaching'",
|
||||
"AttemptingToFetchPackagesFromVendor": "Attempting to fetch {count} package(s) from {vendor}",
|
||||
"_AttemptingToFetchPackagesFromVendor.comment": "An example of {count} is 42. An example of {vendor} is Azure.",
|
||||
"AttemptingToSetBuiltInBaseline": "attempting to set builtin-baseline in vcpkg.json while overriding the default-registry in vcpkg-configuration.json.\nthe default-registry from vcpkg-configuration.json will be used.",
|
||||
"AuthenticationMayRequireManualAction": "One or more {vendor} credential providers requested manual action. Add the binary source 'interactive' to allow interactivity.",
|
||||
"_AuthenticationMayRequireManualAction.comment": "An example of {vendor} is Azure.",
|
||||
|
@ -189,13 +184,10 @@
|
|||
"AzUrlAssetCacheRequiresBaseUrl": "unexpected arguments: asset config 'azurl' requires a base url",
|
||||
"AzUrlAssetCacheRequiresLessThanFour": "unexpected arguments: asset config 'azurl' requires fewer than 4 arguments",
|
||||
"BaselineConflict": "Specifying vcpkg-configuration.default-registry in a manifest file conflicts with built-in baseline.\nPlease remove one of these conflicting settings.",
|
||||
"BaselineFileNoDefaultField": "The baseline file at commit {commit_sha} was invalid (no \"default\" field).",
|
||||
"_BaselineFileNoDefaultField.comment": "An example of {commit_sha} is 7cfad47ae9f68b183983090afd6337cd60fd4949.",
|
||||
"BaselineGitShowFailed": "while checking out baseline from commit '{commit_sha}', failed to `git show` versions/baseline.json. This may be fixed by fetching commits with `git fetch`.",
|
||||
"_BaselineGitShowFailed.comment": "An example of {commit_sha} is 7cfad47ae9f68b183983090afd6337cd60fd4949.",
|
||||
"BaselineMissing": "Baseline version not found. Run:\nvcpkg x-add-version {package_name}\ngit add versions\ngit commit -m \"Update version database\"\nto set {version} as the baseline version.",
|
||||
"_BaselineMissing.comment": "An example of {package_name} is zlib. An example of {version} is 1.3.8.",
|
||||
"BinaryCacheVendorHTTP": "HTTP servers",
|
||||
"BinarySourcesArg": "Binary caching sources. See 'vcpkg help binarycaching'",
|
||||
"_BinarySourcesArg.comment": "'vcpkg help binarycaching' is a command line and should not be localized",
|
||||
"BinaryWithInvalidArchitecture": "{path}\n Expected: {expected}, but was {actual}",
|
||||
|
@ -232,8 +224,6 @@
|
|||
"_BuildTroubleshootingMessage2.comment": "Second part of build troubleshooting message, printed after the URI to look for existing bugs but before the URI to file one.",
|
||||
"BuildTroubleshootingMessage3": "Include '[{package_name}] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.",
|
||||
"_BuildTroubleshootingMessage3.comment": "Third part of build troubleshooting message, printed after the URI to file a bug but before version information about vcpkg itself. An example of {package_name} is zlib.",
|
||||
"BuildTroubleshootingMessage4": "Please use the prefilled template from {path} when reporting your issue.",
|
||||
"_BuildTroubleshootingMessage4.comment": "Fourth optional part of build troubleshooting message, printed after the versioninformation about vcpkg itself. An example of {path} is /foo/bar.",
|
||||
"BuildTroubleshootingMessageGH": "You can also submit an issue by running (GitHub CLI must be installed):",
|
||||
"_BuildTroubleshootingMessageGH.comment": "Another part of build troubleshooting message, printed after the URI. An alternative version to create an issue in some cases.",
|
||||
"BuildingFromHead": "Building {spec} from HEAD...",
|
||||
|
@ -253,7 +243,6 @@
|
|||
"CISettingsOptHostExclude": "Comma separated list of ports to skip for the host triplet",
|
||||
"CISettingsOptOutputHashes": "File to output all determined package hashes",
|
||||
"CISettingsOptParentHashes": "File to read package hashes for a parent CI state, to reduce the set of changed packages",
|
||||
"CISettingsOptSkippedCascadeCount": "Asserts that the number of --exclude and supports skips exactly equal this number",
|
||||
"CISettingsOptXUnit": "File to output results in XUnit format",
|
||||
"CISettingsVerifyGitTree": "Verifies that each git tree object matches its declared version (this is very slow)",
|
||||
"CISettingsVerifyVersion": "Prints result for each port rather than only just errors",
|
||||
|
@ -324,9 +313,6 @@
|
|||
"_CmdBuildExternalExample2.comment": "This is a command line, only the path part should be changed to a path conveying the same idea",
|
||||
"CmdBuildExternalSynopsis": "Builds port from a path",
|
||||
"CmdBuildSynopsis": "Builds a port",
|
||||
"CmdCacheExample1": "vcpkg cache <search substring>",
|
||||
"_CmdCacheExample1.comment": "This is a command line, only the <>s part should be localized",
|
||||
"CmdCacheSynopsis": "List specs of packages",
|
||||
"CmdCheckSupportExample1": "vcpkg x-check-support <port name>",
|
||||
"_CmdCheckSupportExample1.comment": "This is a command line, only the <>s part should be localized",
|
||||
"CmdCheckSupportSynopsis": "Tests whether a port is supported without building it",
|
||||
|
@ -335,7 +321,6 @@
|
|||
"CmdCiSynopsis": "Tries building all ports for CI testing",
|
||||
"_CmdCiSynopsis.comment": "CI is continuous integration (building everything together)",
|
||||
"CmdCiVerifyVersionsSynopsis": "Checks integrity of the version database",
|
||||
"CmdContactOptSurvey": "Launch default browser to the current vcpkg survey",
|
||||
"CmdCreateExample1": "vcpkg create <port name> <uri>",
|
||||
"_CmdCreateExample1.comment": "This is a command line, only the <>s part should be localized",
|
||||
"CmdCreateExample2": "vcpkg create my-fancy-port https://example.com/sources.zip",
|
||||
|
@ -567,7 +552,6 @@
|
|||
"_CurrentCommitBaseline.comment": "An example of {commit_sha} is 7cfad47ae9f68b183983090afd6337cd60fd4949.",
|
||||
"CycleDetectedDuring": "cycle detected during {spec}:",
|
||||
"_CycleDetectedDuring.comment": "An example of {spec} is zlib:x64-windows.",
|
||||
"DateTableHeader": "Date",
|
||||
"DefaultBinaryCachePlatformCacheRequiresAbsolutePath": "Environment variable VCPKG_DEFAULT_BINARY_CACHE must be a directory (was: {path})",
|
||||
"_DefaultBinaryCachePlatformCacheRequiresAbsolutePath.comment": "An example of {path} is /foo/bar.",
|
||||
"DefaultBinaryCacheRequiresAbsolutePath": "Environment variable VCPKG_DEFAULT_BINARY_CACHE must be absolute (was: {path})",
|
||||
|
@ -632,8 +616,6 @@
|
|||
"_DuplicatedKeyInObj.comment": "{value} is a json property/object",
|
||||
"ElapsedForPackage": "Elapsed time to handle {spec}: {elapsed}",
|
||||
"_ElapsedForPackage.comment": "An example of {spec} is zlib:x64-windows. An example of {elapsed} is 3.532 min.",
|
||||
"ElapsedInstallTime": "Total elapsed time: {count}",
|
||||
"_ElapsedInstallTime.comment": "An example of {count} is 42.",
|
||||
"ElapsedTimeForChecks": "Time to determine pass/fail: {elapsed}",
|
||||
"_ElapsedTimeForChecks.comment": "An example of {elapsed} is 3.532 min.",
|
||||
"EmailVcpkgTeam": "Send an email to {url} with any feedback.",
|
||||
|
@ -712,7 +694,6 @@
|
|||
"ExpectedTripletName": "expected a triplet name here (must be lowercase, digits, '-')",
|
||||
"ExportArchitectureReq": "Export prefab requires targeting at least one of the following architectures arm64-v8a, armeabi-v7a, x86_64, x86 to be present.",
|
||||
"ExportPrefabRequiresAndroidTriplet": "export prefab requires an Android triplet.",
|
||||
"ExportUnsupportedInManifest": "vcpkg export does not support manifest mode, in order to allow for future design considerations. You may use export in classic mode by running vcpkg outside of a manifest-based project.",
|
||||
"Exported7zipArchive": "7zip archive exported at: {path}",
|
||||
"_Exported7zipArchive.comment": "An example of {path} is /foo/bar.",
|
||||
"ExportedZipArchive": "Zip archive exported at: {path}",
|
||||
|
@ -777,7 +758,6 @@
|
|||
"_FailedToParseVersionXML.comment": "An example of {tool_name} is aria2. An example of {version} is 1.3.8.",
|
||||
"FailedToParseVersionsFile": "failed to parse versions file {path}",
|
||||
"_FailedToParseVersionsFile.comment": "An example of {path} is /foo/bar.",
|
||||
"FailedToProvisionCe": "Failed to provision vcpkg-artifacts.",
|
||||
"FailedToReadParagraph": "Failed to read paragraphs from {path}",
|
||||
"_FailedToReadParagraph.comment": "An example of {path} is /foo/bar.",
|
||||
"FailedToRemoveControl": "Failed to remove control file {path}",
|
||||
|
@ -805,14 +785,11 @@
|
|||
"_FileReadFailed.comment": "An example of {path} is /foo/bar. An example of {byte_offset} is 42. An example of {count} is 42.",
|
||||
"FileSeekFailed": "Failed to seek to position {byte_offset} in {path}.",
|
||||
"_FileSeekFailed.comment": "An example of {path} is /foo/bar. An example of {byte_offset} is 42.",
|
||||
"FileSystemOperationFailed": "Filesystem operation failed:",
|
||||
"FilesContainAbsolutePath1": "There should be no absolute paths, such as the following, in an installed package:",
|
||||
"_FilesContainAbsolutePath1.comment": "This message is printed before a list of found absolute paths, followed by FilesContainAbsolutePath2, followed by a list of found files.",
|
||||
"FilesContainAbsolutePath2": "Absolute paths were found in the following files:",
|
||||
"FilesExported": "Files exported at: {path}",
|
||||
"_FilesExported.comment": "An example of {path} is /foo/bar.",
|
||||
"FindHelp": "Searches for the indicated artifact or port. With no parameter after 'artifact' or 'port', displays everything.",
|
||||
"_FindHelp.comment": "'artifact' and 'port' are what the user must literally type.",
|
||||
"FindVersionArtifactsOnly": "--version can't be used with vcpkg search or vcpkg find port",
|
||||
"_FindVersionArtifactsOnly.comment": "'--version', 'vcpkg search', and 'vcpkg find port' are command lines that must not be localized",
|
||||
"FishCompletion": "vcpkg fish completion is already added at \"{path}\".",
|
||||
|
@ -912,10 +889,7 @@
|
|||
"HelpEnvCommand": "Creates a clean shell environment for development or compiling",
|
||||
"HelpExampleCommand": "For more help (including examples) see https://learn.microsoft.com/vcpkg",
|
||||
"HelpExampleManifest": "Example manifest:",
|
||||
"HelpExportCommand": "Exports a package.",
|
||||
"HelpHashCommand": "Hash a file by specific algorithm, default SHA512.",
|
||||
"HelpInstallCommand": "Installs a package",
|
||||
"HelpListCommand": "Lists installed packages",
|
||||
"HelpManifestConstraints": "Manifests can place three kinds of constraints upon the versions used",
|
||||
"HelpMinVersion": "Vcpkg will select the minimum version found that matches all applicable constraints, including the version from the baseline specified at top-level as well as any \"version>=\" constraints in the graph.",
|
||||
"HelpOverrides": "When used as the top-level manifest (such as when running `vcpkg install` in the directory), overrides allow a manifest to short-circuit dependency resolution and specify exactly the version to use. These can be used to handle version conflicts, such as with `version-string` dependencies. They will not be considered when transitively depended upon.",
|
||||
|
@ -964,11 +938,9 @@
|
|||
"_IgnoringVcpkgRootEnvironment.comment": "{actual} is the path we actually used, {value} is the path to vcpkg's binary An example of {path} is /foo/bar.",
|
||||
"IllegalFeatures": "List of features is not allowed in this context",
|
||||
"IllegalPlatformSpec": "Platform qualifier is not allowed in this context",
|
||||
"IllegalTriplet": "Triplet is not allowed in this context",
|
||||
"ImproperShaLength": "SHA512's must be 128 hex characters: {value}",
|
||||
"_ImproperShaLength.comment": "{value} is a sha.",
|
||||
"IncorrectArchiveFileSignature": "Incorrect archive file signature",
|
||||
"IncorrectPESignature": "Incorrect PE signature",
|
||||
"InfoSetEnvVar": "You can also set {env_var} to your editor of choice.",
|
||||
"_InfoSetEnvVar.comment": "In this context 'editor' means IDE An example of {env_var} is VCPKG_DEFAULT_TRIPLET.",
|
||||
"InitRegistryFailedNoRepo": "Could not create a registry at {path} because this is not a git repository root.\nUse `git init {command_line}` to create a git repository in this folder.",
|
||||
|
@ -1180,8 +1152,6 @@
|
|||
"_MissingRequiredField2.comment": "An example of {json_field} is identifer.",
|
||||
"MixingBooleanOperationsNotAllowed": "mixing & and | is not allowed; use () to specify order of operations",
|
||||
"MonoInstructions": "This may be caused by an incomplete mono installation. Full mono is available on some systems via `sudo apt install mono-complete`. Ubuntu 18.04 users may need a newer version of mono, available at https://www.mono-project.com/download/stable/",
|
||||
"MsiexecFailedToExtract": "msiexec failed while extracting \"{path}\" with launch or exit code {exit_code} and message:",
|
||||
"_MsiexecFailedToExtract.comment": "An example of {path} is /foo/bar. An example of {exit_code} is 127.",
|
||||
"MultiArch": "Multi-Arch must be 'same' but was {option}",
|
||||
"_MultiArch.comment": "An example of {option} is editable.",
|
||||
"MultipleFeatures": "{package_name} declares {feature} multiple times; please ensure that features have distinct names",
|
||||
|
@ -1196,12 +1166,9 @@
|
|||
"NewOnlyOneVersionKind": "Only one of --version-relaxed, --version-date, or --version-string may be specified.",
|
||||
"NewSpecifyNameVersionOrApplication": "Either specify --name and --version to produce a manifest intended for C++ libraries, or specify --application to indicate that the manifest is not intended to be used as a port.",
|
||||
"NewVersionCannotBeEmpty": "--version cannot be empty.",
|
||||
"NoArgumentsForOption": "The option --{option} does not accept an argument.",
|
||||
"_NoArgumentsForOption.comment": "An example of {option} is editable.",
|
||||
"NoError": "no error",
|
||||
"NoInstalledPackages": "No packages are installed. Did you mean `search`?",
|
||||
"_NoInstalledPackages.comment": "The name 'search' is the name of a command that is not localized.",
|
||||
"NoLocalizationForMessages": "No localized messages for the following: ",
|
||||
"NoOutdatedPackages": "There are no outdated packages.",
|
||||
"NoRegistryForPort": "no registry configured for port {package_name}",
|
||||
"_NoRegistryForPort.comment": "An example of {package_name} is zlib.",
|
||||
|
@ -1270,7 +1237,6 @@
|
|||
"PackageManipulationHeader": "Package Manipulation",
|
||||
"PackageRootDir": "Packages directory (experimental)",
|
||||
"PackagesToInstall": "The following packages will be built and installed:",
|
||||
"PackagesToInstallDirectly": "The following packages will be directly installed:",
|
||||
"PackagesToModify": "Additional packages (*) will be modified to complete this operation.",
|
||||
"PackagesToRebuild": "The following packages will be rebuilt:",
|
||||
"PackagesToRebuildSuggestRecurse": "If you are sure you want to rebuild the above packages, run the command with the --recurse option.",
|
||||
|
@ -1300,8 +1266,6 @@
|
|||
"PathMustBeAbsolute": "Value of environment variable X_VCPKG_REGISTRIES_CACHE is not absolute: {path}",
|
||||
"_PathMustBeAbsolute.comment": "An example of {path} is /foo/bar.",
|
||||
"PerformingPostBuildValidation": "-- Performing post-build validation",
|
||||
"PortBugAllowRestrictedHeaders": "In exceptional circumstances, this policy can be disabled via {env_var}",
|
||||
"_PortBugAllowRestrictedHeaders.comment": "An example of {env_var} is VCPKG_DEFAULT_TRIPLET.",
|
||||
"PortBugBinDirExists": "There should be no bin\\ directory in a static build, but {path} is present.",
|
||||
"_PortBugBinDirExists.comment": "An example of {path} is /foo/bar.",
|
||||
"PortBugDebugBinDirExists": "There should be no debug\\bin\\ directory in a static build, but {path} is present.",
|
||||
|
@ -1372,7 +1336,6 @@
|
|||
"PortVersionMultipleSpecification": "\"port_version\" cannot be combined with an embedded '#' in the version",
|
||||
"PortsAdded": "The following {count} ports were added:",
|
||||
"_PortsAdded.comment": "An example of {count} is 42.",
|
||||
"PortsDiffHelp": "The argument should be a branch/tag/hash to checkout.",
|
||||
"PortsNoDiff": "There were no changes in the ports between the two commits.",
|
||||
"PortsRemoved": "The following {count} ports were removed:",
|
||||
"_PortsRemoved.comment": "An example of {count} is 42.",
|
||||
|
@ -1414,7 +1377,6 @@
|
|||
"ResultsHeader": "RESULTS",
|
||||
"_ResultsHeader.comment": "Displayed before a list of installation results.",
|
||||
"ScriptAssetCacheRequiresScript": "expected arguments: asset config 'x-script' requires exactly the exec template as an argument",
|
||||
"SearchHelp": "The argument should be a substring to search for, or no argument to display all libraries.",
|
||||
"SecretBanner": "*** SECRET ***",
|
||||
"SeeURL": "See {url} for more information.",
|
||||
"_SeeURL.comment": "An example of {url} is https://github.com/microsoft/vcpkg.",
|
||||
|
@ -1439,8 +1401,6 @@
|
|||
"StoreOptionMissingSha": "--store option is invalid without a sha512",
|
||||
"StoredBinariesToDestinations": "Stored binaries in {count} destinations in {elapsed}.",
|
||||
"_StoredBinariesToDestinations.comment": "An example of {count} is 42. An example of {elapsed} is 3.532 min.",
|
||||
"StoredBinaryCache": "Stored binary cache: \"{path}\"",
|
||||
"_StoredBinaryCache.comment": "An example of {path} is /foo/bar.",
|
||||
"SuccessfulyExported": "Exported {package_name} to {path}",
|
||||
"_SuccessfulyExported.comment": "An example of {package_name} is zlib. An example of {path} is /foo/bar.",
|
||||
"SuggestGitPull": "The result may be outdated. Run `git pull` to get the latest results.",
|
||||
|
@ -1490,7 +1450,6 @@
|
|||
"_UnexpectedByteSize.comment": "{expected} is the expected byte size and {actual} is the actual byte size.",
|
||||
"UnexpectedCharExpectedCloseBrace": "Unexpected character; expected property or close brace",
|
||||
"UnexpectedCharExpectedColon": "Unexpected character; expected colon",
|
||||
"UnexpectedCharExpectedComma": "Unexpected character; expected comma or close brace",
|
||||
"UnexpectedCharExpectedName": "Unexpected character; expected property name",
|
||||
"UnexpectedCharExpectedValue": "Unexpected character; expected value",
|
||||
"UnexpectedCharMidArray": "Unexpected character in middle of array",
|
||||
|
@ -1511,8 +1470,6 @@
|
|||
"UnexpectedEOFMidUnicodeEscape": "Unexpected end of file in middle of unicode escape",
|
||||
"UnexpectedErrorDuringBulkDownload": "an unexpected error occurred during bulk download.",
|
||||
"UnexpectedEscapeSequence": "Unexpected escape sequence continuation",
|
||||
"UnexpectedExtension": "Unexpected archive extension: '{extension}'.",
|
||||
"_UnexpectedExtension.comment": "An example of {extension} is .exe.",
|
||||
"UnexpectedField": "unexpected field '{json_field}'",
|
||||
"_UnexpectedField.comment": "An example of {json_field} is identifer.",
|
||||
"UnexpectedFieldSuggest": "unexpected field '{json_field}', did you mean '{value}'?",
|
||||
|
@ -1535,8 +1492,6 @@
|
|||
"UnknownBinaryProviderType": "unknown binary provider type: valid providers are 'clear', 'default', 'nuget', 'nugetconfig', 'nugettimeout', 'interactive', 'x-azblob', 'x-gcs', 'x-aws', 'x-aws-config', 'http', and 'files'",
|
||||
"UnknownBooleanSetting": "unknown boolean setting for {option}: \"{value}\". Valid values are '', '1', '0', 'ON', 'OFF', 'TRUE', and 'FALSE'.",
|
||||
"_UnknownBooleanSetting.comment": "{value} is what {option} is set to An example of {option} is editable.",
|
||||
"UnknownOptions": "Unknown option(s) for command '{command_name}':",
|
||||
"_UnknownOptions.comment": "An example of {command_name} is install.",
|
||||
"UnknownParameterForIntegrate": "Unknown parameter '{value}' for integrate.",
|
||||
"_UnknownParameterForIntegrate.comment": "'{value}' is a user-supplied command line option. For example, given vcpkg integrate frobinate, {value} would be frobinate.",
|
||||
"UnknownPolicySetting": "Unknown setting for policy '{value}': {option}",
|
||||
|
@ -1561,8 +1516,6 @@
|
|||
"_UnsupportedPort.comment": "An example of {package_name} is zlib.",
|
||||
"UnsupportedPortDependency": "- dependency {value} is not supported.",
|
||||
"_UnsupportedPortDependency.comment": "'{value}' is the name of a port dependency.",
|
||||
"UnsupportedShortOptions": "short options are not supported: '{value}'",
|
||||
"_UnsupportedShortOptions.comment": "'{value}' is the short option given",
|
||||
"UnsupportedSyntaxInCDATA": "]]> is not supported in CDATA block",
|
||||
"UnsupportedSystemName": "Could not map VCPKG_CMAKE_SYSTEM_NAME '{system_name}' to a vcvarsall platform. Supported system names are '', 'Windows' and 'WindowsStore'.",
|
||||
"_UnsupportedSystemName.comment": "An example of {system_name} is Darwin.",
|
||||
|
@ -1585,14 +1538,8 @@
|
|||
"UpgradeInManifest": "Upgrade upgrades a classic mode installation and thus does not support manifest mode. Consider updating your dependencies by updating your baseline to a current value with vcpkg x-update-baseline and running vcpkg install.",
|
||||
"_UpgradeInManifest.comment": "'vcpkg x-update-baseline' and 'vcpkg install' are command lines and should not be localized.",
|
||||
"UpgradeRunWithNoDryRun": "If you are sure you want to rebuild the above packages, run this command with the --no-dry-run option.",
|
||||
"UploadedBinaries": "Uploaded binaries to {count} {vendor}.",
|
||||
"_UploadedBinaries.comment": "An example of {count} is 42. An example of {vendor} is Azure.",
|
||||
"UploadedPackagesToVendor": "Uploaded {count} package(s) to {vendor} in {elapsed}",
|
||||
"_UploadedPackagesToVendor.comment": "An example of {count} is 42. An example of {elapsed} is 3.532 min. An example of {vendor} is Azure.",
|
||||
"UploadingBinariesToVendor": "Uploading binaries for '{spec}' to '{vendor}' source \"{path}\".",
|
||||
"_UploadingBinariesToVendor.comment": "An example of {spec} is zlib:x64-windows. An example of {vendor} is Azure. An example of {path} is /foo/bar.",
|
||||
"UploadingBinariesUsingVendor": "Uploading binaries for '{spec}' using '{vendor}' \"{path}\".",
|
||||
"_UploadingBinariesUsingVendor.comment": "An example of {spec} is zlib:x64-windows. An example of {vendor} is Azure. An example of {path} is /foo/bar.",
|
||||
"UseEnvVar": "-- Using {env_var} in environment variables.",
|
||||
"_UseEnvVar.comment": "An example of env_var is \"HTTP(S)_PROXY\"'--' at the beginning must be preserved An example of {env_var} is VCPKG_DEFAULT_TRIPLET.",
|
||||
"UserWideIntegrationDeleted": "User-wide integration is not installed.",
|
||||
|
@ -1605,7 +1552,6 @@
|
|||
"VSNoInstances": "Could not locate a complete Visual Studio instance",
|
||||
"VcpkgCeIsExperimental": "vcpkg-artifacts is experimental and may change at any time.",
|
||||
"_VcpkgCeIsExperimental.comment": "The name of the feature is 'vcpkg-artifacts' and should be singular despite ending in s",
|
||||
"VcpkgCommitTableHeader": "VCPKG Commit",
|
||||
"VcpkgCompletion": "vcpkg {value} completion is already imported to your \"{path}\" file.\nThe following entries were found:",
|
||||
"_VcpkgCompletion.comment": "'{value}' is the subject for completion. i.e. bash, zsh, etc. An example of {path} is /foo/bar.",
|
||||
"VcpkgDisallowedClassicMode": "Could not locate a manifest (vcpkg.json) above the current working directory.\nThis vcpkg distribution does not have a classic mode instance.",
|
||||
|
@ -1635,8 +1581,6 @@
|
|||
"VersionConflictXML": "Expected {path} version: [{expected_version}], but was [{actual_version}]. Please re-run bootstrap-vcpkg.",
|
||||
"_VersionConflictXML.comment": "An example of {path} is /foo/bar. An example of {expected_version} is 1.3.8. An example of {actual_version} is 1.3.8.",
|
||||
"VersionConstraintPortVersionMustBePositiveInteger": "port-version (after the '#') in \"version>=\" must be a non-negative integer",
|
||||
"VersionConstraintUnresolvable": "Cannot resolve a minimum constraint for dependency {package_name} from {spec}.\nThe dependency was not found in the baseline, indicating that the package did not exist at that time. This may be fixed by providing an explicit override version via the \"overrides\" field or by updating the baseline.\nSee `vcpkg help versioning` for more information.",
|
||||
"_VersionConstraintUnresolvable.comment": "An example of {package_name} is zlib. An example of {spec} is zlib:x64-windows.",
|
||||
"VersionConstraintViolated": "dependency {spec} was expected to be at least version {expected_version}, but is currently {actual_version}.",
|
||||
"_VersionConstraintViolated.comment": "An example of {spec} is zlib:x64-windows. An example of {expected_version} is 1.3.8. An example of {actual_version} is 1.3.8.",
|
||||
"VersionDatabaseEntryMissing": "no version entry for {package_name} at {version}.",
|
||||
|
@ -1685,7 +1629,6 @@
|
|||
"VersionSharpMustBeFollowedByPortVersionNonNegativeInteger": "'#' in version text must be followed by a port version (a non-negative integer)",
|
||||
"VersionSpecMismatch": "Failed to load port because versions are inconsistent. The file \"{path}\" contains the version {actual_version}, but the version database indicates that it should be {expected_version}.",
|
||||
"_VersionSpecMismatch.comment": "An example of {path} is /foo/bar. An example of {expected_version} is 1.3.8. An example of {actual_version} is 1.3.8.",
|
||||
"VersionTableHeader": "Version",
|
||||
"VersionVerifiedOK": "{version_spec} is correctly in the version database ({git_tree_sha})",
|
||||
"_VersionVerifiedOK.comment": "An example of {version_spec} is zlib:x64-windows@1.0.0. An example of {git_tree_sha} is 7cfad47ae9f68b183983090afd6337cd60fd4949.",
|
||||
"WaitingForChildrenToExit": "Waiting for child processes to exit...",
|
||||
|
|
|
@ -0,0 +1,52 @@
|
|||
#! /usr/bin/env pwsh
|
||||
|
||||
# Define paths relative to the script's directory
|
||||
$SEARCH_DIR = Resolve-Path -Path (Join-Path -Path $PSScriptRoot -ChildPath "..\")
|
||||
$CPP_MESSAGES = Resolve-Path -Path (Join-Path -Path $PSScriptRoot -ChildPath "..\locales\messages.json")
|
||||
$ARITFACT_MESSAGES = Resolve-Path -Path (Join-Path -Path $PSScriptRoot -ChildPath "..\vcpkg-artifacts\locales\messages.json")
|
||||
|
||||
Write-Host "Processing message declarations..."
|
||||
|
||||
# Read JSON file into a hashtable to accommodate case-sensitive keys
|
||||
$jsonContent = Get-Content $CPP_MESSAGES -Raw | ConvertFrom-Json -AsHashTable
|
||||
$declared_messages = @($jsonContent.Keys) | Where-Object { -not $_.EndsWith('.comment') }
|
||||
|
||||
# Read the JSON file with messages to remove into another hashtable
|
||||
$jsonToRemove = Get-Content $ARITFACT_MESSAGES -Raw | ConvertFrom-Json -AsHashTable
|
||||
$messages_to_remove = @($jsonToRemove.Keys) | Where-Object { -not $_.EndsWith('.comment') }
|
||||
|
||||
# Subtract the artifact messages
|
||||
$declared_messages = Compare-Object -ReferenceObject $declared_messages -DifferenceObject $messages_to_remove -PassThru
|
||||
|
||||
# Find all instances of 'msg' prefixed variables in .cpp and .h files and store them in an array
|
||||
$used_messages = Get-ChildItem -Path $SEARCH_DIR -Include @('*.cpp', '*.h') -Recurse |
|
||||
Select-String -Pattern '\bmsg[A-Za-z0-9_]+\b' -AllMatches |
|
||||
ForEach-Object { $_.Matches } |
|
||||
ForEach-Object { $_.Value } |
|
||||
Sort-Object -Unique
|
||||
|
||||
# Initialize array for unused messages
|
||||
$unused_messages = @()
|
||||
|
||||
# Check each declared message against used messages
|
||||
foreach ($msg in $declared_messages) {
|
||||
$prefixed_msg = "msg$msg"
|
||||
if ($used_messages -notcontains $prefixed_msg) {
|
||||
$unused_messages += $msg
|
||||
}
|
||||
}
|
||||
|
||||
# Remove any empty or whitespace-only entries from unused messages just before reporting
|
||||
$unused_messages = $unused_messages | Where-Object { ![string]::IsNullOrWhiteSpace($_) }
|
||||
|
||||
# Report findings
|
||||
Write-Host "Total messages declared: $($declared_messages.Count)"
|
||||
Write-Host "Total unused messages: $($unused_messages.Count)"
|
||||
|
||||
if ($unused_messages.Count -gt 0) {
|
||||
Write-Host "Please remove the following messages:"
|
||||
foreach ($msg in $unused_messages) {
|
||||
Write-Host "`n$msg"
|
||||
}
|
||||
exit 1
|
||||
}
|
Загрузка…
Ссылка в новой задаче