Skip to content

Commit

Permalink
Add ability to copy .go files in functions package into downstream
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahFrench committed Feb 22, 2024
1 parent 769652b commit 1c8e3a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions mmv1/provider/terraform/common~copy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@
'<%= dir -%>/envvar/<%= fname -%>': 'third_party/terraform/envvar/<%= fname -%>'
<% end -%>

<%
Dir["third_party/terraform/functions/*.go"].each do |file_path|
fname = file_path.split('/')[-1]
-%>
'<%= dir -%>/functions/<%= fname -%>': 'third_party/terraform/functions/<%= fname -%>'
<% end -%>

<%
Dir["third_party/terraform/scripts/**/*.*"].each do |file_path|
next if file_path.end_with?('.erb')
Expand Down
1 change: 1 addition & 0 deletions mmv1/third_party/terraform/functions/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package functions
2 changes: 0 additions & 2 deletions mmv1/third_party/terraform/functions/main.go.erb

This file was deleted.

0 comments on commit 1c8e3a4

Please sign in to comment.