Precompiled.Plan (Precompiled v0.10.5)

Copy Markdown View Source

What Precompiled.install/2 would install (dry_run: true returns it).

skipped lists {app, dep} for each optional dependency dep of app that is neither on the device nor requested, and so is not installed.

transfer says what the dry run moved, in bytes: %{documents: %{fetched: n, reused: n}, files: %{fetched: n, reused: n}}, fetched from the network or reused from the store. Documents are the root, the batch, the manifests and the systems table; files are the .app files read while planning. nil for a file:// bundle.

Summary

Types

t()

What a dry run moved, in bytes: fetched from the network, reused from the store.

Types

install()

@type install() :: %{
  app: atom(),
  version: String.t(),
  target: String.t(),
  build: map(),
  role: :requested | :dependency,
  bytes: non_neg_integer(),
  manifest: %{sha: String.t(), path: String.t()},
  deferred_env: [map()]
}

t()

@type t() :: %Precompiled.Plan{
  bytes: non_neg_integer(),
  installs: [install()],
  present: [{atom(), String.t()}],
  skipped: [{atom(), atom()}],
  transfer: transfer() | nil,
  warnings: [String.t()]
}

transfer()

@type transfer() :: %{
  documents: %{fetched: non_neg_integer(), reused: non_neg_integer()},
  files: %{fetched: non_neg_integer(), reused: non_neg_integer()}
}

What a dry run moved, in bytes: fetched from the network, reused from the store.