166166desc  'Update Selenium Manager to latest release' 
167167task  :update_manager  do  |_task ,  _arguments |
168168  puts  'Updating Selenium Manager references' 
169-   Bazel . execute ( 'run' ,  args ,  '//scripts:selenium_manager' ) 
169+   Bazel . execute ( 'run' ,  [ ] ,  '//scripts:selenium_manager' ) 
170170
171171  @git . add ( 'common/selenium_manager.bzl' ) 
172172end 
@@ -1092,18 +1092,6 @@ namespace :rust do
10921092    @git . add ( 'rust/Cargo.Bazel.lock' ) 
10931093    @git . add ( 'rust/Cargo.lock' ) 
10941094  end 
1095- 
1096-   # Creating a special task for this because Rust version needs to be managed at a different place than 
1097-   # everything else; want to use changelog updates later in process 
1098-   namespace  :version  do 
1099-     desc  'Commits updates from Rust version changes' 
1100-     task  :commit  do 
1101-       @git . reset 
1102-       commit! ( "update Rust version to #{ rust_version }  " , 
1103-               [ 'rust/BUILD.bazel' ,  'rust/Cargo.Bazel.lock' ,  'rust/Cargo.lock' ,  'rust/Cargo.toml' ] ) 
1104-       commit! ( 'Rust Changelog' ,  [ 'rust/CHANGELOG.md' ] ) 
1105-     end 
1106-   end 
11071095end 
11081096
11091097namespace  :all  do 
@@ -1181,6 +1169,7 @@ namespace :all do
11811169    Rake ::Task [ 'py:lint' ] . invoke 
11821170  end 
11831171
1172+   # Example: `./go all:prepare 4.31.0 early-stable` 
11841173  desc  'Update everything in preparation for a release' 
11851174  task  :prepare ,  [ :version ,  :channel ]  do  |_task ,  arguments |
11861175    version  =  arguments [ :version ] 
@@ -1203,10 +1192,9 @@ namespace :all do
12031192    Rake ::Task [ 'node:version' ] . invoke ( version ) 
12041193    Rake ::Task [ 'py:version' ] . invoke ( version ) 
12051194    Rake ::Task [ 'dotnet:version' ] . invoke ( version ) 
1206-     Rake ::Task [ 'rust:version' ] . invoke ( version ) 
12071195
12081196    unless  version  == 'nightly' 
1209-       Rake ::Task [ 'all:changelogs' ] 
1197+       Rake ::Task [ 'all:changelogs' ] . invoke 
12101198
12111199      major_minor  =  arguments [ :version ] [ /^\d +\. \d +/ ] 
12121200      file  =  '.github/ISSUE_TEMPLATE/bug-report.yml' 
@@ -1225,7 +1213,6 @@ namespace :all do
12251213    Rake ::Task [ 'node:changelog' ] . invoke 
12261214    Rake ::Task [ 'py:changelog' ] . invoke 
12271215    Rake ::Task [ 'dotnet:changelog' ] . invoke 
1228-     Rake ::Task [ 'rust:changelog' ] . invoke 
12291216  end 
12301217end 
12311218
@@ -1324,13 +1311,3 @@ def update_changelog(version, language, path, changelog, header)
13241311  File . write ( changelog ,  "#{ header } \n #{ commits } \n \n #{ content }  " ) 
13251312  @git . add ( changelog ) 
13261313end 
1327- 
1328- def  commit! ( message ,  files  =  [ ] ,  all : false ) 
1329-   files . each  do  |file |
1330-     puts  "adding: #{ file }  " 
1331-     @git . add ( file ) 
1332-   end 
1333-   all  ? @git . commit_all ( message )  : @git . commit ( message ) 
1334- rescue  Git ::FailedError  =>  e 
1335-   puts  e . message 
1336- end 
0 commit comments