Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate symbol names in a module cause fatal error in the bicep file referencing the module #1627

Closed
shenglol opened this issue Feb 25, 2021 · 1 comment · Fixed by #1901
Assignees
Labels
bug Something isn't working
Milestone

Comments

@shenglol
Copy link
Contributor

Bicep version
Bicep CLI version 0.2.464 (0e26cf2)

Describe the bug
myModule.bicep

param foo string
param foo int

main.bicep

// An element with the same key but a different value already exists. Key: 'foo' (Fatal)
module myModule './myModule.bicep' = {
  name: 'myModule'
  ...
}

To Reproduce
Create duplicate symbols in a bicep file and reference the file as a module in another file.

@ghost ghost added the Needs: Triage 🔍 label Feb 25, 2021
@shenglol shenglol added the bug Something isn't working label Feb 25, 2021
@anthony-c-martin
Copy link
Member

Good catch

@alex-frankel alex-frankel added this to the v0.4 milestone Mar 4, 2021
@shenglol shenglol self-assigned this Mar 16, 2021
shenglol added a commit that referenced this issue Mar 16, 2021
shenglol added a commit that referenced this issue Mar 16, 2021
@ghost ghost locked as resolved and limited conversation to collaborators May 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants