Comments (3)
i was able to use it by putting this in my recipe
git_client 'default' do
provider Chef::Provider::GitClient::Source
source_checksum '1497001772f630d49809e981672edfe3e3ce1a1d18e905cd539c4d2f4dbcd75a'
source_url 'https://www.kernel.org/pub/software/scm/git/git-2.13.3.tar.gz'
source_version '2.13.3'
end
this is the resulting output
* git_client[default] action install
Recipe: build-essential::default
* build_essential[install_packages] action install
* yum_package[autoconf, bison, flex, gcc, gcc-c++, gettext, kernel-devel, make, m4, ncurses-devel, patch] action install (up to date)
(up to date)
* yum_package[tar, expat-devel, gettext-devel, libcurl-devel, openssl-devel, perl-ExtUtils-MakeMaker, zlib-devel] action install (up to date)
* remote_file[/tmp/kitchen/cache/git-2.13.3.tar.gz] action create
- create new file /tmp/kitchen/cache/git-2.13.3.tar.gz
- update content in file /tmp/kitchen/cache/git-2.13.3.tar.gz from none to 149700
(new content is binary, diff output suppressed)
- change mode from '' to '0644'
- restore selinux security context
* execute[Extracting and Building Git 2.13.3 from Source] action run
- execute (mkdir git-2.13.3 && tar -zxf git-2.13.3.tar.gz -C git-2.13.3 --strip-components 1)
(cd git-2.13.3 && make prefix=/usr/local install)
from git.
I’m adding the Type: Jump In GitHub label to this issue. This is a great issue for someone to get their feet wet with and we’d love a PR to resolves the issue.
from git.
@giorgian normally all you need is just the action :install
to get an appropriate package for the platform you are on. If you want to install from source you can use the source
provider like @borgified mentioned. You can also use the source recipe and set attributes for the version you wish to install. I opened up #124 to document using git_client
to install from source.
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.