GithubHelp home page GithubHelp logo

Comments (3)

signe avatar signe commented on May 7, 2024

I'm seeing this as well.

Recipe: git::default
  * git_client[default] action install[2015-06-11T23:37:08+00:00] WARN: Ambiguous provider precedence: [Chef::Provider::GitClient::Package, Chef::Provider::GitClient::Source], please use Chef.set_provider_priority_array to provide determinism

    * apt_package[default :create git] action install (up to date)
     (up to date)

from git.

lamont-granquist avatar lamont-granquist commented on May 7, 2024

The problem is that both of those providers declare they provide :git_client, os: 'linux' and the choice of which to use is ambiguous. 12.0 through 12.3 is going to pick the Package provider because we do an alpha sort of the class names and pick the first in that code. In 12.4 that necessarily will reverse and we will get last-class-declared wins which will be by alphabetical sort order of the library files so that the Source provider will win.

When 12.4 gets released this will likely result in people who were doing Package installs with this cookbook getting Source installs instead.

The solution is to:

Chef.set_provider_priority_array :git_client,  Chef::Provider::GitClient::Package, os: "linux"

This can also go directly into the provider library files:

e.g.

https://github.com/chef/chef/blob/master/lib/chef/provider/package.rb#L510-L523

from git.

someara avatar someara commented on May 7, 2024

This should be fixed up in 4.3.2

from git.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.