-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change detects duplicate object names (monikers) and issues a nice error message with source context include. For example: index.ts(260,22): error MU2006: Duplicate objects with the same name: prod::ec2instance:index::aws:ec2/securityGroup:SecurityGroup::group The prior code asserted and failed abruptly, whereas this actually points us to the offending line of code: let group1 = new aws.ec2.SecurityGroup("group", { ... }); let group2 = new aws.ec2.SecurityGroup("group", { ... }); ^^^^^^^^^^^^^^^^^^^^^^^^^
- Loading branch information
Showing
8 changed files
with
121 additions
and
101 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
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
Oops, something went wrong.