Skip to content
← Back to activity

Public problem

chocolatey_package install fails because the resource lowercases the package name

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

The chocolatey_package resource failed to install a package when a version was specified, because Chef lowercased the package name before querying the source. With a case-sensitive Artifactory Chocolatey repo, the lowercased name did not match, so the install failed. Without a version the case-insensitive search worked, which made the failure confusing.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Chef's behavior is technically correct; the bug was in JFrog Artifactory, which did case-insensitive search without a version but case-sensitive lookup with one. Upgrade Artifactory to 6.1.0 or later, where the issue was fixed upstream, and the same chocolatey_package resource with a version works. Several reporters confirmed the Artifactory upgrade resolved it. Source: https://github.com/chef/chef/issues/6988