-
Notifications
You must be signed in to change notification settings - Fork 730
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
Strange issue with User Defined types + container registry #13254
Labels
Comments
@alex-frankel sorry to bother you but I think this is quite important bug as well. |
@slavizh some questions:
|
Answers below
|
Thanks! I have a fix out for it here: #13278 Given the recent type issues, I suspect we're going to want to do a hotfix release, so this may be released soon! |
anthony-c-martin
added a commit
that referenced
this issue
Feb 9, 2024
Closes #13254 ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/Azure/bicep/pull/13278)
@anthony-c-martin awesome! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bicep version
Bicep CLI version 0.25.3 (8627085)
Describe the bug
I am storing Bicep templates to container registry. The bicep templates have user defined types (schemas). Often we find some issues with user defined types where for example we have put incorrect type for property/parameter. We store bicep templates with versioning so for solution with name exampl1 we can have the following tags example1:1, example1:1.1, example1:1.1.2. Once we find some issue in the schema we force update tags example1:1 and example1:1.1 and we create a new tag example1:1.1.3. In the bicep parameters file if I reference in using statement example1:1 and I do command in VSC restore bicep modules force, the modules are restored successfully but those changes are not somehow available in VSC. Below you can see issue that flagged in VSC:
If I browser the actual file that was downloaded. In my case: C:\Users<user name>.bicep\br<container url><solution name>\1$
I can see that the schema is correct:
![image](https://private-user-images.githubusercontent.com/11890856/303036590-d8c6c71a-df0b-4d63-8565-3399e03d71b1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIyMTQ5NzUsIm5iZiI6MTcyMjIxNDY3NSwicGF0aCI6Ii8xMTg5MDg1Ni8zMDMwMzY1OTAtZDhjNmM3MWEtZGYwYi00ZDYzLTg1NjUtMzM5OWUwM2Q3MWIxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI5VDAwNTc1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBkNWZkMGY5NTliYjNjZGM1YjE3NTZkZGY4MzI4ODI4MDY4MWVmN2JhYWMwMDUwNTAxYmYwZGJmZDA3NTM1MzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.BltEUpcQbxitq3brDfRQ7bfRgJGsLdgCtzFkHgPAmBk)
but the issue stands in VSC. So there must be some other cache that somehow does not validates the schema correctly when there are changes.
Can you figure out where this issue is and why it is happening?
To Reproduce
I think I have described it well
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: