Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions acceptance/bundle/variables/cycle/databricks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
bundle:
name: cycle

variables:
a:

@andrewnester andrewnester Jan 16, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant a deeper level of nesting for cycle :) something like


variables:
  a:
    default: ${var.complex.a}
  b:
    default: ${var.a}
  c: 
    default: ${var.b}
  complex:
    default: 
        a: ${var.c}
        b: foo

default: ${var.b}
b:
default: ${var.a}
14 changes: 14 additions & 0 deletions acceptance/bundle/variables/cycle/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Error: cycle detected in field resolution: variables.a.default -> var.b -> var.a -> var.b

{
"a": {
"default": "${var.b}",
"value": "${var.b}"
},
"b": {
"default": "${var.a}",
"value": "${var.a}"
}
}

Exit code: 1
1 change: 1 addition & 0 deletions acceptance/bundle/variables/cycle/script
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$CLI bundle validate -o json | jq .variables