Comments (3)
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.
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.
This should be fixed up in 4.3.2
from git.
Related Issues (20)
- undefined method `provides' for Chef::Provider::GitClient::Osx:Class
- Source recipe fails on subsequent converge if package based install used in between HOT 7
- Provide an option to also install man pages?
- Funky % parsing for attributes breaks basic Windows usage HOT 3
- package_version doesn't install the specified version HOT 2
- NoMethodError-> undefined method `set' for Chef::Platform:Class HOT 6
- References to default versions in README.md need to be modified HOT 1
- git 6.1.0 seems to be broken with latest chef client? HOT 4
- getting issue while installing git on a node from chefdk HOT 1
- Checkout modifies mtimes HOT 1
- not pulling the latest git version HOT 2
- No need to download sources if the installed version is same as expected version. HOT 2
- suggestion: Install from kernel.org and verify GPG signatures HOT 3
- cookbook requires 13.0+ instead of 12.7+ HOT 3
- STDERR: No provider of 'git=2.26.2-27.36.1' found. HOT 3
- MacOS need the option to overwrite the previously installed Git client
- wrong package name on smartos
- Windows PATH bug
- Dependency Dashboard
- ### :speaking_head
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git.