Skip to content

Commit 31cf838

Browse files
committed
[build] remove all commit actions from rake tasks
1 parent 0659696 commit 31cf838

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

Rakefile

-22
Original file line numberDiff line numberDiff line change
@@ -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
11071095
end
11081096

11091097
namespace :all do
@@ -1325,13 +1313,3 @@ def update_changelog(version, language, path, changelog, header)
13251313
File.write(changelog, "#{header}\n#{commits}\n\n#{content}")
13261314
@git.add(changelog)
13271315
end
1328-
1329-
def commit!(message, files = [], all: false)
1330-
files.each do |file|
1331-
puts "adding: #{file}"
1332-
@git.add(file)
1333-
end
1334-
all ? @git.commit_all(message) : @git.commit(message)
1335-
rescue Git::FailedError => e
1336-
puts e.message
1337-
end

0 commit comments

Comments
 (0)