-
Notifications
You must be signed in to change notification settings - Fork 519
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
🪲 Bug Report - loadTextContent called multiple times for the same file causes bloat #254
Comments
Thanks @KevinRabun for this, once #227 is merged we will start looking at this. Will also consider converting to using |
0.7 is going to release on 6/10, so it still might make it in. We'll see :) |
Merged
9 tasks
jtracey93
added a commit
that referenced
this issue
Jul 19, 2022
…es) & `'` apostrophes + Fix #254 (#288) * update policy to bicep script to handle spaces and hyphens for txt file var outputs * add support for apostrophe escaping * adding parameters * update path and name vars * add more params * remove comment * add param vars for sets * fixing empty paramters file bug * ps1 updates * updates * linter fixes * add should process * surpress false positives * update azure public policies * update mc policies * wiki update * update codetour * more docs * add hyphen support * updates to indents * docs * Update .github/scripts/Invoke-PolicyToBicep-China.ps1 Co-authored-by: Jan Faurskov <22591930+jfaurskov@users.noreply.github.com> * Update .github/scripts/Invoke-PolicyToBicep.ps1 Co-authored-by: Jan Faurskov <22591930+jfaurskov@users.noreply.github.com> Co-authored-by: SeSeicht <Sebastian.Seichter@microsoft.com> Co-authored-by: Jan Faurskov <22591930+jfaurskov@users.noreply.github.com>
ghost
added
the
Status: Fixed
label
Jul 19, 2022
ghost
locked as resolved and limited conversation to collaborators
Aug 18, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
custom-policy-definitions.bicep calls loadTextContent multiple times for the same file. This causes the content of the file to be put into the output file multiple times which bloats the file significantly
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
custom-policy-definitions.bicep should only load each file it needs one time and store the content in a var to prevent file bloat
Screenshots 📷
Good example
Bloated Example (code today)
Correlation ID
A correlation ID really helps us investigate your issue further. Please provide one if possible. Details on how to find a correlation ID can be found here: Correlation ID and support
Additional context
Anything else we should know to help us troubleshoot this bug? I have created a separate but highly related issue on the bicep side here Azure/bicep#6970
The text was updated successfully, but these errors were encountered: