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

LoadTextContent should take only compile-time constants as parameters #5766

Open
miqm opened this issue Jan 27, 2022 · 0 comments
Open

LoadTextContent should take only compile-time constants as parameters #5766

miqm opened this issue Jan 27, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@miqm
Copy link
Collaborator

miqm commented Jan 27, 2022

Repro for triage:

works:

var stringArray = [
  './policies/policy_1.json'
]
  
var policies = [for i in range(0, length(stringArray)): json(loadTextContent(stringArray[i]))]

doesn't work:

var stringArray = [
  './policies/policy_1.json'
  './policies/policy_2.json'
]
  
var policies = [for i in range(0, length(stringArray)): json(loadTextContent(stringArray[i]))]

Originally posted by @alex-frankel in #3816 (comment)

@ghost ghost added the Needs: Triage 🔍 label Jan 27, 2022
@miqm miqm added bug Something isn't working and removed Needs: Triage 🔍 labels Jan 27, 2022
@miqm miqm self-assigned this Jan 27, 2022
@miqm miqm added this to the Not as fast as you would like milestone Oct 5, 2022
@miqm miqm added this to Bicep Oct 5, 2022
@miqm miqm moved this to Todo in Bicep Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant