Skip to content

Commit 071c291

Browse files
committed
Kill an existing buckd before starting a build
Just in case the build ripples over a buck update
1 parent db8c0aa commit 071c291

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

rake-tasks/buck.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module Buck
77
def self.download
88
@@buck_bin ||= (
99
if File.exist?('.nobuckcheck') && present?('buck')
10+
# We'll assume the user knows how to kill buck themselves
1011
return ["buck"]
1112
end
1213

@@ -17,6 +18,8 @@ def self.download
1718
out_hash = File.exist?(out) ? Digest::MD5.file(out).hexdigest : nil
1819

1920
if cached_hash == out_hash
21+
# Make sure we're running a pristine buck instance
22+
sh "python #{out} kill"
2023
return ["python", out]
2124
end
2225

@@ -35,6 +38,7 @@ def self.download
3538

3639
ant.get('src' => url, 'dest' => out, 'verbose' => true)
3740
File.chmod(0755, out)
41+
sh "python #{out} kill"
3842
["python", out]
3943
)
4044
end

0 commit comments

Comments
 (0)