Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Initial chocolatey.config configuration file is initialized with empty descriptions #3201

@AdmiringWorm

Description

@AdmiringWorm

Checklist

  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my problem.
  • I have verified this is not an issue for a specific package.
  • I have verified this issue is not security related.

What You Are Seeing?

Right after installing Chocolatey CLI to v2.0.0, the configuration file that gets initialized is missing the description for the elements cacheLocation, containsLegacyPackageInstalls and commandExecutionTimeoutSeconds. This causes issues with Chocolatey GUI due to it not handling empty descriptions. While this is something that needs to be fixed in Chocolatey GUI, we should also ensure that the description gets added when the configuration file is created.

image

What is Expected?

There should not be any empty/missing descriptions in the configuration file.

How Did You Get This To Happen?

  1. Install Chocolatey CLI using the script on https://chocolatey.org/install
  2. Open up the file %ChocolateyInstall%\config\chocolatey.config
  3. See the top three items are missing their description.

System Details

  • Operating System: Windows Server 2022 (10.0.20348.0)
  • Windows PowerShell version: 5.1.20348.859
  • Chocolatey CLI Version: 2.0.0
  • Chocolatey Licensed Extension version: N/A
  • Chocolatey License type: N/A
  • Terminal/Emulator: Windows PowerShell

Installed Packages

N/A

Output Log

2023-06-07 11:08:24,598 2996 [DEBUG] - XmlConfiguration is now operational
2023-06-07 11:08:24,708 2996 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2023-06-07 11:08:24,708 2996 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2023-06-07 11:08:24,708 2996 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2023-06-07 11:08:24,708 2996 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2023-06-07 11:08:24,708 2996 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2023-06-07 11:08:24,723 2996 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2023-06-07 11:08:24,723 2996 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2023-06-07 11:08:24,723 2996 [DEBUG] - Adding new type 'RubyGemsService' for type 'IListSourceRunner' from assembly 'choco'
2023-06-07 11:08:24,723 2996 [DEBUG] - Adding new type 'RubyGemsService' for type 'IInstallSourceRunner' from assembly 'choco'
2023-06-07 11:08:24,723 2996 [DEBUG] - Adding new type 'SystemStateValidation' for type 'IValidation' from assembly 'choco'
2023-06-07 11:08:25,021 2996 [DEBUG] - Adding new type 'EmptyOrInvalidUrlMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-06-07 11:08:25,021 2996 [DEBUG] - Adding new type 'FrameWorkReferencesMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-06-07 11:08:25,021 2996 [DEBUG] - Adding new type 'IconMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-06-07 11:08:25,021 2996 [DEBUG] - Adding new type 'LicenseMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-06-07 11:08:25,021 2996 [DEBUG] - Adding new type 'PackageTypesMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-06-07 11:08:25,036 2996 [DEBUG] - Adding new type 'ReadmeMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-06-07 11:08:25,036 2996 [DEBUG] - Adding new type 'RepositoryMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-06-07 11:08:25,036 2996 [DEBUG] - Adding new type 'RequireLicenseAcceptanceMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-06-07 11:08:25,036 2996 [DEBUG] - Adding new type 'ServicableMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-06-07 11:08:25,036 2996 [DEBUG] - Adding new type 'VersionMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2023-06-07 11:08:25,036 2996 [DEBUG] - Registering new command 'list' in assembly 'choco'
2023-06-07 11:08:25,036 2996 [DEBUG] - Registering new command 'template' in assembly 'choco'
2023-06-07 11:08:25,051 2996 [DEBUG] - Registering new command 'export' in assembly 'choco'
2023-06-07 11:08:25,051 2996 [DEBUG] - Registering new command 'info' in assembly 'choco'
2023-06-07 11:08:25,051 2996 [DEBUG] - Registering new command 'help' in assembly 'choco'
2023-06-07 11:08:25,051 2996 [DEBUG] - Registering new command 'config' in assembly 'choco'
2023-06-07 11:08:25,051 2996 [DEBUG] - Registering new command 'feature' in assembly 'choco'
2023-06-07 11:08:25,051 2996 [DEBUG] - Registering new command 'new' in assembly 'choco'
2023-06-07 11:08:25,051 2996 [DEBUG] - Registering new command 'outdated' in assembly 'choco'
2023-06-07 11:08:25,051 2996 [DEBUG] - Registering new command 'pack' in assembly 'choco'
2023-06-07 11:08:25,051 2996 [DEBUG] - Registering new command 'pin' in assembly 'choco'
2023-06-07 11:08:25,051 2996 [DEBUG] - Registering new command 'push' in assembly 'choco'
2023-06-07 11:08:25,051 2996 [DEBUG] - Registering new command 'apikey' in assembly 'choco'
2023-06-07 11:08:25,051 2996 [DEBUG] - Registering new command 'source' in assembly 'choco'
2023-06-07 11:08:25,051 2996 [DEBUG] - Registering new command 'uninstall' in assembly 'choco'
2023-06-07 11:08:25,051 2996 [DEBUG] - Registering new command 'upgrade' in assembly 'choco'
2023-06-07 11:08:25,051 2996 [DEBUG] - Registering new command 'search' in assembly 'choco'
2023-06-07 11:08:25,051 2996 [DEBUG] - Registering new command 'unpackself' in assembly 'choco'
2023-06-07 11:08:25,051 2996 [DEBUG] - Registering new command 'install' in assembly 'choco'
2023-06-07 11:08:25,193 2996 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\config".
2023-06-07 11:08:25,741 2996 [INFO ] - ============================================================
2023-06-07 11:08:26,367 2996 [DEBUG] - Attempting to replace "C:\ProgramData\chocolatey\config\chocolatey.config"
 with "C:\ProgramData\chocolatey\config\chocolatey.config.2996.update".
 Backup placed at "C:\ProgramData\chocolatey\config\chocolatey.config.backup".
2023-06-07 11:08:26,367 2996 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\config\chocolatey.config.2996.update"
 to "C:\ProgramData\chocolatey\config\chocolatey.config".
2023-06-07 11:08:26,382 2996 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\config\chocolatey.config.2996.update".
2023-06-07 11:08:26,382 2996 [INFO ] - 2.0.0
2023-06-07 11:08:26,382 2996 [DEBUG] - Exiting with 0

Additional Context

No response

Metadata

Metadata

Assignees

Labels

5 - ReleasedThe issue has been resolved, and released to the public for consumption.BugIssues where something has happened which was not expected or intended.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions