Can build yq with no lua

This commit is contained in:
Mike Farah
2023-10-03 16:22:23 +11:00
parent 5fa41624c9
commit 6e65d44a98
7 changed files with 30 additions and 2 deletions
+4 -1
View File
@@ -1,3 +1,5 @@
//go:build !yq_nolua
package yqlib
import (
@@ -54,6 +56,7 @@ cities:
description: "Basic roundtrip",
skipDoc: true,
scenarioType: "roundtrip",
expression: `.cities[0] = "Adelaide"`,
input: `return {
["country"] = "Australia"; -- this place
["cities"] = {
@@ -67,7 +70,7 @@ cities:
expected: `return {
["country"] = "Australia";
["cities"] = {
"Sydney",
"Adelaide",
"Melbourne",
"Brisbane",
"Perth",