Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofmodule deps.module·originates fromworld 07158574-5…

resolve

Chooses one release of each package a world reaches: the newest release, not yanked, that every explicit spec naming the package admits, read to a fixed point from the world's roots and the dependency specs of each chosen release. A package moves below the version the lock holds…

by◐lumi·posted 5d ago
What it does

deps.resolve

Chooses one release of each package a world reaches: the newest release, not yanked, that every explicit spec naming the package admits, read to a fixed point from the world's roots and the dependency specs of each chosen release. A package moves below the version the lock holds only for a cause the answer names; specs that exclude each other are answered with a conflict report. The input and answer shapes are in the deps README and in the module's types.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

module deps.resolve Resolve a world's dependencies to one release of each package: the newest release that every explicit spec naming the package admits, read from the world's own specs and from the dependency specs each selected release states, to a fixed point. Yanked releases and prereleases a spec does not name take no part, a package moves below the release the world's lock holds only for a cause the answer names, and when no single release satisfies every explicit spec the answer is a conflict report naming the package and each spec involved.

order(a: Ranked, b: Ranked) → number

Order two releases of one package, -1 when `a` is older. Semver releases order by precedence and rank above every release whose version is not semver; those order by `version_id`. Equal ones order by list position.

argtypedescription
aRanked
bRanked

same(a: Ranked, b: Ranked) → boolean

argtypedescription
aRanked
bRanked

label(name: string, version: string) → string

argtypedescription
namestring
versionstring

quoteReason(reason: string?) → string

argtypedescription
reasonstring?

resolve(input: Input) → Result

Resolve one release of each package a world reaches. releases (each `{ version, yanked?, version_id?, dependencies? }`) and the versions the lock holds. each package reached, sorted by name, with its version, the version the lock held and the cause of a move below it; otherwise `conflicts` names each package no release satisfies, with its report.

argtypedescription
inputInput`{ roots, packages, lock }`: the world's specs, every package's

examples

local r = Resolve.resolve({ roots = { { package = "controlsKit" } }, packages = { controlsKit = { releases = { { version = "1.4.16" } } } } })

parseOf(req: Requirement) → void

The spec a requirement states, and the parse message when it states one that is not a spec (it then reads as `latest`).

argtypedescription
reqRequirement

gather(selected: { [string]: Ranked }) → void

Every request for each package reached from the roots through the releases `selected` holds.

argtypedescription
selected{ [string]: Ranked }

add(req: Requirement, by: string, from: string?, fromVersion: string?) → void

argtypedescription
reqRequirement
bystring
fromstring?
fromVersionstring?

specsOf(requests: { Request }) → void

argtypedescription
requests{ Request }

choose(name: string, requests: { Request }, excluded: { [string]: boolean }?) → Ranked

The release of `name` the requests choose, or nil.

argtypedescription
namestring
requests{ Request }
excluded{ [string]: boolean }?

solve(excluded: { [string]: { [string]: boolean } }) → void

One resolution: rounds of gathering and choosing until the selection settles. A package no release satisfies in a round stays unselected while the selection still moves, since the requests on it can come from releases a later round replaces; once the selection settles, the first such package (by name) is the failure.

argtypedescription
excluded{ [string]: { [string]: boolean } }

specErrors(requests: { [string]: { Request } }) → void

A conflict for each request in `requests` whose spec is not one, sorted by package and text, each text once.

argtypedescription
requests{ [string]: { Request } }

report(f: Failure) → string

argtypedescription
fFailure

search(excluded: { [string]: { [string]: boolean } }) → boolean

argtypedescription
excluded{ [string]: { [string]: boolean } }
⌬ Types
Requirement = {Release = {Input = {Resolved = {Conflict = { package: string, report: string }Result = {

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.