Skip to content

Commit 9f503ac

Browse files
committed
updates for eli 0.35.0
1 parent b6cdfa4 commit 9f503ac

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

build/build.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ local function minify(filePath)
2929
net.download_file("https://github.com/cryi/luasrcdiet/archive/refs/tags/1.1.1.zip", "../build/luasrcdiet.zip",
3030
{ followRedirects = true })
3131
fs.mkdirp("../build/luasrcdiet")
32-
zip.extract("../build/luasrcdiet.zip", "../build/luasrcdiet", { flattenRootDir = true })
32+
zip.extract("../build/luasrcdiet.zip", "../build/luasrcdiet", { flatten_root_dir = true })
3333
end
3434

3535
local _cwd = os.cwd() or ""
@@ -84,13 +84,13 @@ local amiAsctlEntrypoint = "ami-plugin/asctl.lua"
8484
local amiAsctlOutput = "../bin/ami/asctl.lua"
8585
amalg("-o", amiAsctlOutput, "-s", amiAsctlEntrypoint, table.unpack(collect_requires(amiAsctlEntrypoint)))
8686
local fileName = string.interpolate("${pluginName}-${version}.zip", { pluginName = "asctl", version = require"version-info".VERSION })
87-
zip.compress("../bin/ami", path.combine("../bin", fileName), { recurse = true, contentOnly = true, overwrite = true })
87+
zip.compress("../bin/ami", path.combine("../bin", fileName), { recurse = true, content_only = true, overwrite = true })
8888

8989
-- minify
9090
-- if not fs.exists("../build/luasrcdiet") then
9191
-- net.download_file("https://github.com/cryi/luasrcdiet/archive/refs/tags/1.1.1.zip", "../build/luasrcdiet.zip", { followRedirects = true })
9292
-- fs.mkdirp("../build/luasrcdiet")
93-
-- zip.extract("../build/luasrcdiet.zip", "../build/luasrcdiet", { flattenRootDir = true })
93+
-- zip.extract("../build/luasrcdiet.zip", "../build/luasrcdiet", { flatten_root_dir = true })
9494
-- end
9595

9696
-- local _cwd = os.cwd() or ""

src/ascend/internals/env.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ local function normalize_service_definition(name, definition)
268268
log_rotate = module.log_rotate or normalized.log_rotate,
269269
log_max_size = module.log_max_size or normalized.log_max_size,
270270
log_max_files = module.log_max_files or normalized.log_max_files
271-
}, { overwrite = true, arrayMergeStrategy = "prefer-t1" })
271+
}, { overwrite = true, array_merge_strategy = "prefer-t1" })
272272

273273
module = util.merge_tables(module, serviceDefinitionDefaults)
274274
if type(module.healthcheck) == "table" then
@@ -278,7 +278,6 @@ local function normalize_service_definition(name, definition)
278278
normalized.modules[id] = module
279279
end
280280

281-
282281
return {
283282
modules = normalized.modules
284283
}

tests/common/test-env.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ local function update_env(obj, options)
9999

100100
local definition = util.merge_tables(base, serviceDefinition.definition, {
101101
overwrite = true,
102-
arrayMergeStrategy = "prefer-t2",
102+
array_merge_strategy = "prefer-t2",
103103
})
104104
local encodedDefinition = hjson.encode(patch_definition(definition, obj.path))
105105
encodedDefinition = string.interpolate(encodedDefinition, obj.vars)

tests/healtchecks.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ test["health checks - timeout"] = function()
132132
if line and line:match("healthcheck for date:default timed out") then
133133
break
134134
end
135-
if os.time() > startTime + 10 then
135+
if os.time() > startTime + 20 then
136136
return false, "Service did not timeout in time: " .. tostring(os.time() - startTime) .. "s"
137137
end
138138
end

0 commit comments

Comments
 (0)