Skip to content

Commit 5d4972b

Browse files
authored
[rb][build] improve ruby local_dev generation (#16495)
Adding a command that requires using the ruby binary forces ruby binary to be staged and usable by IDEs
1 parent 792df95 commit 5d4972b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Rakefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,9 +747,12 @@ namespace :rb do
747747

748748
desc 'Update generated Ruby files for local development'
749749
task :local_dev do
750+
puts 'installing ruby, this may take a minute'
750751
Bazel.execute('build', [], '@bundle//:bundle')
751752
Rake::Task['rb:build'].invoke
752753
Rake::Task['grid'].invoke
754+
# A command like this is required to move ruby binary into working directory
755+
Bazel.execute('build', %w[--test_arg --dry-run], '@bundle//bin:rubocop')
753756
end
754757

755758
desc 'Push Ruby gems to rubygems'

0 commit comments

Comments
 (0)