-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loosen migrate command version 2 matcher
Previously, Smithy 2.0 files with a version of `"2"` would be upgraded incorrectly, ending up with duplicate and invalid version control statements, e.g. upgrading the following: ```smithy $version: "2" // ... ``` would result in: ```smithy $version: "2.0" $version: "2" // ... ``` This change loosens the version 2.0 matcher to match version control statements without the decimal suffix `.0`.
- Loading branch information
Steven Yuan
committed
May 11, 2023
1 parent
c959438
commit 7b3e309
Showing
4 changed files
with
22 additions
and
1 deletion.
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
1 change: 1 addition & 0 deletions
1
...test/resources/software/amazon/smithy/cli/commands/upgrade/no-op/decimal-suffix.v2.smithy
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 @@ | ||
$version: "2.0" |
1 change: 1 addition & 0 deletions
1
...t/resources/software/amazon/smithy/cli/commands/upgrade/no-op/no-decimal-suffix.v2.smithy
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 @@ | ||
$version: "2" |