Skip to content

Instantly share code, notes, and snippets.

@richo
Created November 13, 2012 05:06
Show Gist options
  • Save richo/4064012 to your computer and use it in GitHub Desktop.
Save richo/4064012 to your computer and use it in GitHub Desktop.
vagrant@precise64:~$ babushka 'git' --debug
Defining core:task template
Defining core:installer template
Defining core:external template
Defining core:managed template
Defining core:gem template
Defining core:pip template
Defining core:npm template
Defining core:tmbundle template
Defining core:app template
Defining core:src template
Defining core:lib template
Defining core:bin template
Defining core:fhs template
Defining core:homebrew template
Defining core:babushka template
Loaded 46 deps from /usr/local/babushka/deps.
Defining current dir:vhost template
Defining current dir:elasticsearch_plugin template
Defining current dir:git template
Defining current dir:github template
Defining current dir:config_file template
Defining current dir:nginx_vhost template
Defining current dir:phpext template
Defining current dir:pecl template
Defining current dir:rbenv template
Defining current dir:rbenv_gem template
Defining current dir:supervisor template
Defining current dir:production_server template
Loaded 344 deps from /home/vagrant/babushka-deps.
Loaded 0 deps from /home/vagrant/.babushka/deps.
git() {
(defining git against Babushka::BaseTemplate)
$ uname -s
Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
setup not defined.
'git >= 1.6' is missing.
prepare not defined.
git.installer(version: [default!: "1.6"]) {
(defining git.installer against installer) setup not defined. layout.fhs(path: "/usr/local") { (defining layout.fhs against fhs) /usr/local/babushka/lib/babushka/dep_definer.rb:106:in `define_params!': You can't use :path as a parameter (on 'layout.fhs'), because that's already a method on RelativePaths::Mixin.
@richo
Copy link
Author

richo commented Nov 13, 2012

I applied

diff --git a/deps/git.rb b/deps/git.rb
index d764758..ad82666 100644
--- a/deps/git.rb
+++ b/deps/git.rb
@@ -6,11 +6,11 @@ dep 'git', :version do
   requires_when_unmet {
     # Use the binary installer on OS X, so installing babushka
     # (which pulls in git) doesn't require a compiler.
-    on :osx, 'git.installer'.with(owner.version)
+    otherwise 'git.installer'.with(owner.version)
     # git-1.5 can't clone https:// repos properly. Let's build
     # our own rather than monkeying with unstable debs.
-    on :lenny, 'git.src'.with(owner.version)
-    otherwise 'git.bin'.with(owner.version)
+    #on :lenny, 'git.src'.with(owner.version)
+    #otherwise 'git.bin'.with(owner.version)
   }
   met? { in_path? "git >= #{version}" }
 end

to master in order to force it to load git.installer on a ubuntu vm because I didn't have an osx system to maul.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment