Skip to content

Commit

Permalink
Merge pull request #350 from DataDog/joachim-bartosik-rake-fix
Browse files Browse the repository at this point in the history
Allow rake to remove toolchaing, clean before testing

Co-authored-by: jbartosik <joachim.bartosik@datadoghq.com>
  • Loading branch information
dd-mergequeue[bot] and jbartosik authored Oct 29, 2024
2 parents 4047779 + 7b1911c commit 008503f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ protoc_jsonschema_version="73d5723"
namespace :codegen do
task :clean do
sh "rm -rf #{gogo_dir}"
if Dir.exist?(toolchain_dir)
sh "chmod u+w -R #{toolchain_dir}"
end
sh "rm -rf #{toolchain_dir}"
end

Expand Down Expand Up @@ -175,7 +178,7 @@ task :deps do
end

desc "Run tests"
task :test do
task :test => ['codegen:clean'] do
cmd = "go list ./... | grep -v vendor | xargs go test -v "
sh cmd
end
Expand Down

0 comments on commit 008503f

Please sign in to comment.