mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
Enable policy files greater than 64KB in size (#217)
fixes #214 Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
committed by
GitHub
parent
744dad6126
commit
3743f32edc
@@ -38,7 +38,10 @@ fn analyze_file(regos: &[String], expected_scopes: &[Scope]) -> Result<()> {
|
||||
let mut sources = vec![];
|
||||
let mut modules = vec![];
|
||||
for (idx, _) in regos.iter().enumerate() {
|
||||
sources.push(Source::new(format!("rego_{idx}"), regos[idx].clone()));
|
||||
sources.push(Source::from_contents(
|
||||
format!("rego_{idx}"),
|
||||
regos[idx].clone(),
|
||||
)?);
|
||||
}
|
||||
|
||||
for source in &sources {
|
||||
|
||||
Reference in New Issue
Block a user