Skip to content

Commit

Permalink
Follow up of upstream Magic Modules changes (#4)
Browse files Browse the repository at this point in the history
* Follow up of GoogleCloudPlatform#8720

* Disable parallelization

Follow up of GoogleCloudPlatform#8381

Since the TFLint provider uses class variables to pass the list of rule names
to the final step, parallelization cannot be used.
  • Loading branch information
wata727 authored Sep 10, 2023
1 parent 79c4fbf commit e70e863
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion mmv1/compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
# products_for_version entries are a hash of product definitions (:definitions)
# and provider config (:overrides) for the product
# rubocop:disable Metrics/BlockLength
products_for_version = Parallel.map(all_product_files, in_processes: 8) do |product_name|
products_for_version = all_product_files.map do |product_name|
product_override_path = ''
product_override_path = File.join(override_dir, product_name, 'product.yaml') if override_dir
product_yaml_path = File.join(product_name, 'product.yaml')
Expand Down
2 changes: 0 additions & 2 deletions mmv1/provider/tflint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ def compile_common_files(output_folder, products, common_compile_file)
def copy_common_files(output_folder, generate_code, generate_docs)
Google::LOGGER.info 'Copying common files.'
copy_file_list(output_folder, [
['validation.go',
'third_party/terraform/utils/validation.go'],
['verify/validation.go',
'third_party/terraform/verify/validation.go'],
])
Expand Down

0 comments on commit e70e863

Please sign in to comment.