Skip to content

Commit

Permalink
Merge branch 'rewrite-script-updates' into FEATURE-BRANCH-rewrite-swi…
Browse files Browse the repository at this point in the history
…tchover-preview

* rewrite-script-updates:
  remove newline
  remove "already modified" error
  rewrite - script tweaks to replace path and QoL branching
  tweaks to convert-go.sh (GoogleCloudPlatform#11762)
  • Loading branch information
c2thorn committed Sep 24, 2024
2 parents 1056fad + b09e9e2 commit eb5345e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions mmv1/provider/file_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ class FileTemplate
# Once the file's contents are written, set the proper [chmod] mode and
# format the file with a language-appropriate formatter.
def generate(pwd, template, path, provider)
# If we've modified a file since starting an MM run, it's a reasonable
# assumption that it was this run that modified it.
if File.exist?(path) && File.mtime(path) > @env[:start_time]
raise "#{path} was already modified during this run.. check to see if " \
'there is both a .go and .go.erb version of this file'
end

# You're looking at some magic here!
# This is how variables are made available in templates; we iterate
# through each key:value pair in this object, and we set them
Expand Down

0 comments on commit eb5345e

Please sign in to comment.