Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport of Use the apparentlymart/go-versions library to parse modul…
…e constraints into v1.3 (#32393) * backport of commit 5b27ff2 * backport of commit 1f12d16 * backport of commit e82ef31 * backport of commit 57ef86b * backport of commit a1d4541 Co-authored-by: Liam Cervante <liam.cervante@hashicorp.com>
- Loading branch information
1 parent
64b7e08
commit 67552a3
Showing
4 changed files
with
104 additions
and
3 deletions.
There are no files selected for viewing
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
7 changes: 7 additions & 0 deletions
7
internal/initwd/testdata/prerelease-version-constraint-match/root.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# We expect this test to download the requested version because it is an exact | ||
# match for a prerelease version. | ||
|
||
module "acctest_exact" { | ||
source = "hashicorp/module-installer-acctest/aws" | ||
version = "=0.0.3-alpha.1" | ||
} |
8 changes: 8 additions & 0 deletions
8
internal/initwd/testdata/prerelease-version-constraint/root.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# We expect this test to download the version 0.0.2, the one before the | ||
# specified version even with the equality because the specified version is a | ||
# prerelease. | ||
|
||
module "acctest_partial" { | ||
source = "hashicorp/module-installer-acctest/aws" | ||
version = "<=0.0.3-alpha.1" | ||
} |