chore: Clean up after creating new gems during autosynth (#2343)

This commit is contained in:
Daniel Azuma authored and GitHub committed 2021-01-09 11:16:24 -08:00
1 parent db94d2b9cb
commit 863409162b
2 files changed
+41

No files matched your search

+6
View File
@@ -9,6 +9,12 @@ def execute cmd
abort unless system cmd
end
# In an autosynth (multi-library) run, a previous library synth may have
# created a new library. If so, autosynth doesn't clean up those newly created
# files (i.e. it runs git reset --hard but not git clean). Do that ourselves,
# so any previously created files don't pollute this and subsequent synth runs.
execute "git clean -df"
Dir.chdir "google-apis-generator"
execute "bundle install"