Skip to content

Constraints

[Source]

primitive val Constraints

Constructors

create

[Source]

new val create()
: Constraints val^

Returns


Public Functions

resolve_version

[Source]

Returns the best revision given a version string and an array of tag choices. If version is a tag, hash or other non-constraint, then return that.

fun box resolve_version(
  version: String val,
  tags: Array[String val] val,
  log: Logger[String val] val)
: String val

Parameters

Returns


best_revision

[Source]

Returns the best choice of possible: a lock revision, a fallback dep revision, and a version. TODO https://github.com/ponylang/corral/issues/59

fun box best_revision(
  lrevision: String val,
  drevision: String val,
  version: String val)
: String val

Parameters

Returns


eq

[Source]

fun box eq(
  that: Constraints val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: Constraints val)
: Bool val

Parameters

Returns