Skip to content

Commit

Permalink
Merge pull request #169 from grafana/fix-intermediate-var
Browse files Browse the repository at this point in the history
Lineage: Fix intermediate variable calc
  • Loading branch information
sam boyer committed Jun 8, 2023
2 parents e3eaca4 + cb59e75 commit f8ae108
Show file tree
Hide file tree
Showing 2 changed files with 440 additions and 49 deletions.
2 changes: 1 addition & 1 deletion lineage.cue
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ import (
// _basis keeps the index of the first schema in each major version
// within the overall canonical schema sort ordering. This allows trivial
// schema retrieval from a syntactic version.
_basis: [0, for maj, _ in list.Drop(_counts, len(_counts)-1) {
_basis: [0, for maj, _ in list.Drop(_counts, 1) {
list.Sum(list.Take(_counts, maj+1))
}]

Expand Down

0 comments on commit f8ae108

Please sign in to comment.