mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-21 18:10:42 -04:00
FIX: import cycle detection which was broken.
This commit is contained in:
parent
76899cb481
commit
2e38a3486e
@ -1 +1 @@
|
|||||||
import "import_cycle2.ucg" as cycle2;
|
let cycle2 = import "import_cycle2.ucg";
|
@ -1 +1 @@
|
|||||||
import "import_cycle3.ucg" as cycle3;
|
let cycle3 = import "import_cycle3.ucg";
|
@ -1 +1 @@
|
|||||||
import "import_cycle1.ucg" as cycle1;
|
let cycle1 = import "import_cycle1.ucg";
|
@ -465,6 +465,10 @@ impl<'a> FileBuilder<'a> {
|
|||||||
Some(v) => v.clone(),
|
Some(v) => v.clone(),
|
||||||
None => {
|
None => {
|
||||||
let mut b = self.clone_builder();
|
let mut b = self.clone_builder();
|
||||||
|
b.scope
|
||||||
|
.import_stack
|
||||||
|
.push(normalized.to_string_lossy().to_string());
|
||||||
|
|
||||||
match b.build(&normalized) {
|
match b.build(&normalized) {
|
||||||
Ok(_) => b.get_outputs_as_val(),
|
Ok(_) => b.get_outputs_as_val(),
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user