-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core/convert: Correct conversion of array types
The existing conversion used the old multiplication of lists when converting Go Array types to CUE. E.g. [3]string{} -> [string] * 3. This was deprecated years ago, and removed in issue #2237 and https://review.gerrithub.io/c/cue-lang/cue/+/1200221 Instead, we now convert [3]string{} -> list.Repeat([string], 3) Signed-off-by: Matthew Sackman <[email protected]> Change-Id: I49aa552a5d7cb04ba5279b10d54d6b4804747f0e Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1207907 Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
- Loading branch information
1 parent
e9ad52f
commit 8dc16dd
Showing
2 changed files
with
61 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters