Skip to content

Commit

Permalink
Attempts to force build task to reload
Browse files Browse the repository at this point in the history
  • Loading branch information
mscottford committed Sep 5, 2023
1 parent d9746ec commit 807ff30
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,15 @@ namespace :version do
end
end

task :reload_and_build do
Task.clear
load(__FILE__)
Rake::Task['build'].clear_prerequisites
Rake::Task['build'].invoke
end

# Ensure that the grpc files are generated before the build runs
Rake::Task['build'].enhance(['grpc', 'version:bump:patch', 'version:persist', 'version:show'])
Rake::Task['build'].enhance(['grpc', 'version:bump:patch', 'version:persist', 'version:show', 'reload_and_build'])

task default: %i[grpc spec rubocop]

Expand Down

0 comments on commit 807ff30

Please sign in to comment.