Terrafile Community Format Support #6
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
Current
Terrafileformat that is supported is a list of sources where each source has a list of versions. e.g.:After vendoring module, it will produce the following directory:
The major downside of current
Terrafileformat is that output contains the version of the module in path, so when you want to upgrade module version, you need to updateTerrafileand all usages of that module in the code, which is kinda losing the major benefit of usingTerrafileCommunity
Terrafilewhich is supported by github: coretech/terrafile and npm: terrafile doesn't have such drawback, because there have aliases for each module version:After vendoring module, it will produce the following directory:
In this way, we will be able to reference the module all over the code without specifying the version. So when we will need to update a module version, it will be changed in only one place (
Terrafile)Description
READMETerrafileformat support. Existing SegmentTerrafileformat implementation is left untouched to ensure backward compatibilityTerrafileformatTesting