repo stringclasses 350
values | file_path stringlengths 29 200 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 2 1.01M | tokens int64 2 598k |
|---|---|---|---|---|---|
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/format/snapshots/snap.config.luau | luau | .luau | return {
default = {
-- Every case runs in `--check` mode so a snapshot run can never rewrite its own input.
args = { "format", "--check", "--verbose" },
expectedExitCode = 0,
},
overrides = {
-- `--help` exits before reading any file, so the appended input path is ignored.
["help"] = {
args = { "format... | 213 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/lib/configs.test.luau | luau | .luau | const configs = require("@commands/lib/configs")
const fs = require("@std/fs")
const parseIgnores = require("@commands/lib/parseIgnores")
const path = require("@std/path")
const system = require("@std/system")
const test = require("@std/test")
const testPath = path.join(system.tmpdir(), "lute_cli_configs_test")
const ... | 692 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/lib/files.test.luau | luau | .luau | local files = require("@commands/lib/files")
local fs = require("@std/fs")
local path = require("@std/path")
local system = require("@std/system")
local test = require("@std/test")
local tmpdir = system.tmpdir()
local testPath = path.join(tmpdir, "gitignore_test")
test.suite("CliLibFiles", function(suite)
suite:befo... | 2,287 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/lint/snapshots/duplicate_keys_general_number.snap.luau | luau | .luau | local t = { [1] = 1, [1] = 2 }
| 18 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/lint/snapshots/duplicate_keys_general_string.snap.luau | luau | .luau | local t = { ["a"] = 1, ["a"] = 2 }
| 18 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/lint/snapshots/duplicate_keys_list.snap.luau | luau | .luau | local t = { 1, 2, [2] = 3 }
| 17 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/lint/snapshots/duplicate_keys_no_warn_general_zero.snap.luau | luau | .luau | local t = { [0] = 1 }
| 11 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/lint/snapshots/duplicate_keys_record.snap.luau | luau | .luau | local t = { a = 1, a = 2 }
| 14 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/lint/snapshots/duplicate_keys_string_and_record.snap.luau | luau | .luau | local t = { ["a"] = 1, a = 2 }
| 16 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/lint/snapshots/lint.config.luau | luau | .luau | return {
lute = {
lint = {
ignores = {}, -- explicitly ignore nothing
},
},
}
| 28 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/lint/snapshots/output_flag_to_file.snap.luau | luau | .luau | local x = 1 / 0
| 9 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/lint/snapshots/snap.config.luau | luau | .luau | return {
default = {
args = {
"lint",
"--no-default-lints",
"-c",
"tests/cli/lint/snapshots/lint.config.luau",
"-r",
"lute/cli/commands/lint/rules/duplicate_keys.luau",
},
-- lint exits with code 1 when warnings are found; use expectedExitCode = 0 for no-warning cases
expectedExitCode = 1,
}... | 228 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/loadmodule.test.luau | luau | .luau | local fs = require("@std/fs")
local process = require("@std/process")
local path = require("@std/path")
local system = require("@std/system")
local test = require("@std/test")
local testutil = require("../testutil")
local REQUIRER_CONTENTS = [[
local args = { ... }
assert(#args == 2, "Expected one argument: path to Lu... | 448 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/pkg/fixtures/credentials/invalid-module/credentials/bad.luau | luau | .luau | return {
resolve = function()
return "bad-token"
end,
}
| 15 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/pkg/fixtures/credentials/invalid-providers-type/.config.luau | luau | .luau | return {
lute = {
credentials = {
providers = "./credentials",
},
},
}
| 24 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/pkg/fixtures/credentials/no-match/.config.luau | luau | .luau | return {
lute = {
credentials = {
providers = { "./credentials/other.luau" },
},
},
}
| 30 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/pkg/fixtures/credentials/no-match/credentials/other.luau | luau | .luau | return {
host = "other.example.com",
resolve = function()
return "other-token"
end,
}
| 22 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/pkg/fixtures/resolve_credential.luau | luau | .luau | local credentialProvider = require("@commands/pkg/loom-core/src/credentials")
local protocol, host, repositoryPath, expectedToken = select(2, ...)
local token = credentialProvider.resolveToken(table.freeze({
protocol = protocol,
host = host,
path = repositoryPath,
}))
if expectedToken == "<nil>" then
assert(token... | 100 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/pkg/install.test.luau | luau | .luau | local fs = require("@std/fs")
local path = require("@std/path")
local process = require("@std/process")
local system = require("@std/system")
local test = require("@std/test")
local temporaryDirectory = system.tmpdir()
local workingDirectory = path.join(temporaryDirectory, "lute-pkg")
local lutePath = path.format(proc... | 1,364 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/pkg/resolution.test.luau | luau | .luau | local fs = require("@std/fs")
local path = require("@std/path")
local system = require("@std/system")
local test = require("@std/test")
local resolution = require("@commands/pkg/loom-core/src/resolution")
local parser = require("@commands/pkg/loom-core/src/semver/parser")
local solver = require("@commands/pkg/loom-cor... | 11,673 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/pkg/semver/solver.test.luau | luau | .luau | local test = require("@std/test")
local parser = require("@commands/pkg/loom-core/src/semver/parser")
local solver = require("@commands/pkg/loom-core/src/semver/solver")
local function namedVersion(name: string, vstr: string, deps: { [string]: solver.Requirement }?): solver.PackageVersion
local v = parser.parse(vstr)... | 8,151 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/run.test.luau | luau | .luau | local fs = require("@std/fs")
local pathlib = require("@std/path")
local process = require("@std/process")
local system = require("@std/system")
local test = require("@std/test")
local tmpdir = system.tmpdir()
local rundir = pathlib.join(tmpdir, "lute-run")
local lutePath = pathlib.format(process.execPath())
test.s... | 469 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/self.test.luau | luau | .luau | local fs = require("@std/fs")
local path = require("@std/path")
local process = require("@std/process")
local system = require("@std/system")
local test = require("@std/test")
local release = require("@commands/self/release")
local lutePath = path.format(process.execPath())
local function run(...: string): process.P... | 1,339 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/test.test.luau | luau | .luau | local path = require("@std/path")
local process = require("@std/process")
local test = require("@std/test")
local testutil = require("../testutil")
local lutePath = path.format(process.execPath())
local expected = [[Anonymous:
passing
ExampleSuite:
shouldPass
SmokeSuite:
makeFail
makePass
]]
test.suite("LuteTest... | 724 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/cli/transform.test.luau | luau | .luau | local fs = require("@std/fs")
local path = require("@std/path")
local process = require("@std/process")
local system = require("@std/system")
local test = require("@std/test")
local testutil = require("../testutil")
local TRANSFORMEE_CONTENT = [[
local x = math.sqrt(-1)
local b = x ~= x
]]
local LUAURC_CONTENT = [[
{... | 1,575 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/lute/crypto.test.luau | luau | .luau | local test = require("@std/test")
local crypto = require("@lute/crypto")
test.suite("CryptoRuntimeTests", function(suite)
suite:case("secretboxIsARoundtripStrings", function(assert)
local message = "Remember, remember the Fifth of November."
local box = crypto.secretbox.seal(message)
local opened = crypto.sec... | 892 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/lute/debugger.test.luau | luau | .luau | local test = require("@std/test")
local task = require("@lute/task")
local debug = require("@lute/debugger")
local path = require("@std/path")
local proc = require("@std/process")
local function normalizePath(p: string): string
return (p:gsub("\\", "/"))
end
-- a helper function that basically polls a boolean, sinc... | 8,137 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/lute/task.test.luau | luau | .luau | local test = require("@std/test")
local task = require("@lute/task")
test.suite("LuteTaskSuite", function(suite)
suite:case("simpleTaskWait", function(assert)
local startTime = os.clock()
task.wait(0.5)
local endTime = os.clock()
-- task.wait(0.5) actually waits ~0.48 seconds :)
assert.that(math.ceil(endTi... | 1,062 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/lute/vm.test.luau | luau | .luau | local test = require("@std/test")
local fs = require("@std/fs")
local path = require("@std/path")
local process = require("@std/process")
local system = require("@std/system")
test.suite("LuteVmSuite", function(suite)
suite:case("childVmHasAccessToBuiltins", function(assert)
local tmpdir = system.tmpdir()
local c... | 2,233 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/assignment-1.luau | luau | .luau | x = 1
a, b = 1, true
a, b, c.d.e[f][g][1], h:i().j[k]:l()[m] = true, false, 1, 4
| 48 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/attributes-1.luau | luau | .luau | -- lute-lint-global-ignore(unused_variable)
@native
local function foo() end
@native
function bar() end
local x = @native function() end
| 37 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/break-continue-1.luau | luau | .luau | while true do
break
end
while true do
continue
end
| 16 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/compound-assignment-1.luau | luau | .luau | -- lute-lint-global-ignore(unused_variable)
local x = 1
local y = 2
x += 5
x -= 5
x *= 5
x /= 5
x //= 5
x %= 5
x ^= 5
x += y
x -= y
x *= y
x /= y
x //= y
x %= y
x ^= y
local str1 = "Hello, "
local str2 = "world!"
str1 ..= "world!"
str1 ..= str2
| 115 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/compound-types-1.luau | luau | .luau | type A = string | number
type B = string & number
| 14 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/compound-types-2.luau | luau | .luau | type A = | string | number
type B = & string & number
| 16 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/compound-types-3.luau | luau | .luau | type A = string?
type B = string? | number
| 13 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/explicit-generic-instantiation-1.luau | luau | .luau | function foo<A, B...>(_x: A, ...: B...)
return nil :: any
end
local _x = foo<<string, number...>>("hello", 1, 2, 3)
| 45 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/function-declaration-1.luau | luau | .luau | function x()
call()
end
function x.y:z() end
| 15 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/function-declaration-2.luau | luau | .luau | -- lute-lint-global-ignore(unused_variable)
-- stylua: ignore
function x(x , y, z)
end
| 30 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/function-declaration-3.luau | luau | .luau | function a<A>() end
function b<A...>() end
function c<A, B>() end
function d<A..., B...>() end
function e<A, B, C..., D...>() end
| 43 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/function-declaration-4.luau | luau | .luau | -- lute-lint-global-ignore(unused_variable)
function a(x: number) end
function b(x: number, y: number) end
function c(x: number, ...: number) end
function d(): number end
| 49 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/function-type-1.luau | luau | .luau | type A = () -> ()
type B = (number, string) -> number
type C = (x: number, y: string) -> (number, number)
type D = (number, x: string) -> ()
| 47 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/function-type-2.luau | luau | .luau | type A = <T>() -> ()
type B = <T...>() -> ()
type C = <A, B>() -> ()
type D = <A..., B...>() -> ()
type E = <A, B, C..., D...>() -> ()
| 53 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/function-type-3.luau | luau | .luau | type Foo = () -> () -> ()
| 8 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/generic-for-loop-1.luau | luau | .luau | for index, value in pairs(list) do
call(index, value)
end
for index, value in next, list do
call(index, value)
end
for index, value in list do
call(index, value)
end
| 49 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/if-expression-1.luau | luau | .luau | -- lute-lint-global-ignore(unused_variable)
local x = if true then 1 else 2
local y = if true then 1 elseif false then 2 else 3
| 40 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/if-expression-2.luau | luau | .luau | -- stylua: ignore
local _ = if true
then call()
else if false
then call()
else call() | 27 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/if-statement-1.luau | luau | .luau | if true then
print()
end
if true then
print()
else
print()
end
if true then
print()
elseif false then
print()
else
print()
end
| 38 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/interpolated-string-1.luau | luau | .luau | -- lute-lint-global-ignore(unused_variable)
local a = `simple`
local b = `start{true}`
local c = `start{true}end`
local d = `start \
{true} end`
| 47 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/interpolated-string-2.luau | luau | .luau | -- stylua: ignore
local _ =
`test`
-- stylua: ignore
print(
`test {subject} with {subject}`
) | 32 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/local-assignment-1.luau | luau | .luau | -- lute-lint-global-ignore(unused_variable)
local a = 1
local b, c = 2, nil
local d: string = ""
| 33 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/local-function-declaration-1.luau | luau | .luau | local function _()
call(1)
end
| 10 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/numeric-for-loop-1.luau | luau | .luau | for index = 1, 10 do
call(index)
end
for _ = start, final do
end
for _ = 1, 10, 2 do
end
| 40 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/repeat-until-1.luau | luau | .luau | repeat
call()
until condition
| 7 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/table-1.luau | luau | .luau | local _ = { 1, 2, 3 }
| 13 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/table-2.luau | luau | .luau | local _ = {
["test"] = true,
}
| 12 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/type-alias-1.luau | luau | .luau | type A<X> = string
type B<X...> = string
type C<X, Y...> = string
type D<X = string> = string
type E<X = string, Y... = ...string> = string
| 49 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/type-alias-2.luau | luau | .luau | type Null = nil
| 5 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/type-assertion-1.luau | luau | .luau | local _ = 1 :: number
| 8 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/type-function-1.luau | luau | .luau | -- stylua: ignore start
type function Foo()
end
export type function Bar()
end | 19 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/type-singletons-1.luau | luau | .luau | type A = "string"
type B = true
| 11 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/type-tables-1.luau | luau | .luau | type A = { string }
type B = { foo: string }
type C = { [string]: number }
type D = { foo: string, [string]: number, bar: string }
type E = { ["a type"]: string }
| 50 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/type-tables-2.luau | luau | .luau | -- stylua: ignore
type A = { [ "a type"]: string } | 18 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/parserExamples/while-1.luau | luau | .luau | while condition do
call()
end
| 8 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/debug/compile_error.luau | luau | .luau | local _x = )
| 5 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/debug/exception.luau | luau | .luau | local _ok, _err = pcall(function()
local y = nil
return y.foo
end)
local z = nil
print(z.foo)
| 31 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/debug/global_import.luau | luau | .luau | local M = {}
_global_var = 6
function M.f()
return 1
end
return M
| 23 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/debug/global_scope.luau | luau | .luau | local imp = require("./global_import")
_global_var = 3
_global_var2 = 5
imp.f()
| 24 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/debug/infiniteloop.luau | luau | .luau | local _step1 = 0
while true do
_step1 = 1 - _step1
end
| 25 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/debug/loop.luau | luau | .luau | local _step1 = 0
local _step2 = 0
for _ = 1, 5 do
_step1 = _step1 + 1
for _ = 1, 5 do
_step2 = _step2 + 1
_step2 = _step2 + 1
_step1 = _step1 + 1
end
end
| 87 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/debug/metatable.luau | luau | .luau | local t = {}
setmetatable(t, {
__index = function(_, k)
return k
end,
__call = function(_, k)
return k
end,
})
t(5)
local _z = t[7]
| 50 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/debug/pow.luau | luau | .luau | local function pow(n: int)
if n == 0 then
return 1
end
return 2 * pow(n - 1)
end
pow(5)
| 37 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/debug/print.luau | luau | .luau | local t = setmetatable({}, {
__tostring = function()
return "custom_value"
end,
})
print(3, "abc", false)
print(t)
| 35 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/debug/recursion.luau | luau | .luau | local b: (n: number) -> number
local function a(n: number): number
return n + b(n)
end
b = function(n: number): number
if n == 0 then
return 0
end
return n + a(n - 1)
end
a(3)
| 66 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/debug/require_main.luau | luau | .luau | local func = require("./require_triang")
local _sum = 0
for _ = 1, 5 do
_sum += func.triangular(3)
end
| 38 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/debug/require_triang.luau | luau | .luau | local M = {}
function M.triangular(x: number)
local result = 0
for i = 1, x do
result += i
end
return result
end
return M
| 43 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/debug/simple.luau | luau | .luau | local x = 1
local y = 2
local _ = x + y
| 19 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/debug/step.luau | luau | .luau | local function f(x: int)
local tot = 0
for i = 1, 10 do
tot += x * i
end
return tot
end
local _a = 0
local ret = f(5)
local ret2 = f(9)
_a += ret + ret2
| 67 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/debug/task.luau | luau | .luau | local task = require("@lute/task")
local total_sum = 0
task.defer(function()
for _i = 1, 5 do
task.wait(0)
total_sum += 1
end
end)
task.defer(function()
for _i = 1, 5 do
task.wait(0)
total_sum += 1
end
end)
while total_sum ~= 10 do
task.wait(0.01)
end
-- just for checking after we joined both threads
to... | 113 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/debug/variables.luau | luau | .luau | _global_var = 16
local a = 12
local _b = 1.2
local _c = "test"
local _d = { 1, 2, 3 }
local _e = { a = 4, b = "5", [4] = { r = 13 } }
local _f = true
local _largeinteger = 123456789101112
local _smallnumber = 12e-15
local _largenumber = 353e104
local _escapechar = '\n\\\r\t"'
local _precise = 1.234567891011
local func... | 157 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/debug/xpcall.luau | luau | .luau | local returned, _data = xpcall(function()
x("This will error")
end, function(_err)
return "error found"
end)
local _test = returned
| 36 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/modulepathroot/Foo/bar.luau | luau | .luau | return { "bar" }
| 6 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/modulepathroot/ambiguous.luau | luau | .luau | return { "ambiguous_file" }
| 7 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/modulepathroot/ambiguous/init.luau | luau | .luau | return { "ambiguous_init" }
| 7 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/modulepathroot/baredir.luau | luau | .luau | return { "baredir" }
| 8 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/modulepathroot/baredir/child.luau | luau | .luau | return { "child" }
| 6 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/modulepathroot/foo.luau | luau | .luau | return { "foo" }
| 6 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/modulepathroot/module/init.luau | luau | .luau | return { "placeholder" }
| 6 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/packages/package_aware_require/dep/module.luau | luau | .luau | local result = require("@dep")
result[#result + 1] = "external"
return result
| 21 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/packages/package_aware_require/internaldep/init.luau | luau | .luau | return { "internal" }
| 6 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/packages/package_aware_require/packageentry/entry.luau | luau | .luau | --!strict
local result = require("@dep") :: { string }
assert(type(result) == "table")
assert(#result == 2)
assert(result[1] == "internal")
assert(result[2] == "external")
| 48 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/packages/pkgrun_deep_path_deps/loom.lock.luau | luau | .luau | return {
version = 3,
dependencies = {
app = "app",
},
packages = {
["app"] = {
name = "app",
source = "packages/app",
sourceKind = "path",
installPath = "packages/app",
dependencies = {
lib = "lib",
shared = "shared",
},
},
["lib"] = {
name = "lib",
source = "packages/lib",
... | 233 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/packages/pkgrun_deep_path_deps/packageentry/entry.luau | luau | .luau | --!strict
local result = require("@app")
assert(result == "app+lib+shared+helpers+shared")
| 25 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/packages/pkgrun_deep_path_deps/packages/app/loom.config.luau | luau | .luau | return {
package = {
name = "app",
version = "0.0.0",
dependencies = {
lib = {
sourceKind = "path",
source = "../lib",
},
shared = {
sourceKind = "path",
source = "../shared",
},
},
},
}
| 74 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/packages/pkgrun_deep_path_deps/packages/app/src/init.luau | luau | .luau | local lib = require("@lib")
local shared = require("@shared")
return `app+{lib}+{shared}`
| 25 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/packages/pkgrun_deep_path_deps/packages/helpers/src/init.luau | luau | .luau | return "helpers"
| 4 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/packages/pkgrun_deep_path_deps/packages/lib/loom.config.luau | luau | .luau | return {
package = {
name = "lib",
version = "0.0.0",
dependencies = {
utils = {
name = "shared",
sourceKind = "path",
source = "../shared",
},
h = {
name = "helpers",
sourceKind = "path",
source = "../helpers",
},
},
},
}
| 85 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/packages/pkgrun_deep_path_deps/packages/lib/src/init.luau | luau | .luau | local utils = require("@utils")
local h = require("@h")
return `lib+{utils}+{h}`
| 25 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/packages/pkgrun_deep_path_deps/packages/shared/src/init.luau | luau | .luau | return "shared"
| 4 |
luau-lang/lute | luau-lang-lute-c57dec9/tests/src/packages/pkgrun_transitive_deps/Packages/dep@v1.2.3/src/init.luau | luau | .luau | local result = require("@internaldepAlias")
result[#result + 1] = "external"
return result
| 23 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.