There was an error while loading. Please reload this page.
1 parent db8c0aa commit 071c291Copy full SHA for 071c291
1 file changed
rake-tasks/buck.rb
@@ -7,6 +7,7 @@ module Buck
7
def self.download
8
@@buck_bin ||= (
9
if File.exist?('.nobuckcheck') && present?('buck')
10
+ # We'll assume the user knows how to kill buck themselves
11
return ["buck"]
12
end
13
@@ -17,6 +18,8 @@ def self.download
17
18
out_hash = File.exist?(out) ? Digest::MD5.file(out).hexdigest : nil
19
20
if cached_hash == out_hash
21
+ # Make sure we're running a pristine buck instance
22
+ sh "python #{out} kill"
23
return ["python", out]
24
25
@@ -35,6 +38,7 @@ def self.download
35
38
36
39
ant.get('src' => url, 'dest' => out, 'verbose' => true)
37
40
File.chmod(0755, out)
41
42
["python", out]
43
)
44
0 commit comments