chef/chef-workstation

github usage when using in policyfile gives error: The unauthenticated git protocol on port 9418 is no longer supported.

snohio opened this issue · 0 comments

Description

As a developer, when I try to use github as my source of cookbook (such as cookbook 'mysql', github: 'opscode-cookbooks/mysql', branch: 'master' ) I am no longer able to do so - please update chef-workstation to be able to communicate with github in modern methods. Please see the error below.

Chef Workstation Version

2022.4.891

Platform Version

Windows 10

Error

Installing diiv >= 0.0.0 from github
Error: Failed to generate Policyfile.lock
Reason: (CookbookOmnifetch::GitCommandError) Git error: command `git clone git://github.com/snohio/diiv.git "C:/Users/butler/AppData/Local/chef-workstation/cache/.cache/git/ccc96674eee16041965202e6c3fff80e2da3ceb5" --bare --no-hardlinks` failed. If this error persists, try removing the cache directory at 'C:/Users/butler/AppData/Local/chef-workstation/cache/.cache/git/ccc96674eee16041965202e6c3fff80e2da3ceb5'.Output from the command:

Cloning into bare repository 'C:/Users/butler/AppData/Local/chef-workstation/cache/.cache/git/ccc96674eee16041965202e6c3fff80e2da3ceb5'...
fatal: remote error:
  The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.