-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add fallback to include all paths functionality (#2868)
Changes autodetect functionality so that if no paths are detected from an initial provider/backend block project detection we fallback to include all paths. This is particularly usefull for module repositories which often do not contain provider/backend blocks.
- Loading branch information
Showing
5 changed files
with
72 additions
and
20 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
cmd/infracost/testdata/generate/with_no_directories_with_providers/expected.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: 0.1 | ||
|
||
projects: | ||
- path: modules/bar | ||
name: modules-bar | ||
skip_autodetect: true | ||
- path: modules/baz | ||
name: modules-baz | ||
skip_autodetect: true | ||
- path: modules/foo | ||
name: modules-foo | ||
skip_autodetect: true | ||
|
8 changes: 8 additions & 0 deletions
8
cmd/infracost/testdata/generate/with_no_directories_with_providers/tree.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
. | ||
└── modules | ||
├── foo | ||
│ └── test.tf | ||
├── bar | ||
│ └── test.tf | ||
└── baz | ||
└── test.tf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters