build turns the repository into the tree the app blob holds. It compiles each workflow folder’s code and packs its
widgets into the definitions, copies everything else, and writes the result to build/.
It makes no API call. It needs no credential and no connectivity, so it runs in a checkout, a pre-commit hook or
the first step of CI. build/ is a pure function of the sources: the same sources give the same bytes.
Synopsis
What it does
- Reads
app.yamland each folder underblobs/with itsblob.yaml. - Copies
app.yaml,README.md,LICENSEand everything underschemas/. - For each folder under
blobs/:- A workflow folder is compiled: each definition that binds code through
buildis written, compiled, at itsfilepath; a widget project is packed from itswidget.yamland thedist/its own build wrote;blob.yamlis written without itsbuildkeys and with each definition’s resolvedcategory; every other definition’sfileand everyobjects[].fileis copied. Source directories such assrc/,__pycache__and dot entries are not. - Any other blob type is copied as it is.
- A workflow folder is compiled: each definition that binds code through
- Writes only the files whose bytes changed, and deletes files in
build/the sources no longer produce.
IMPORT_UNVERIFIED and the build goes on. Without --library-catalog, a widget that declares libraries draws the
advisory WIDGET_LIBRARIES_UNVERIFIED: the build calls nothing, so it has no catalog to check them against. A code
message without a created_at gets a fixed one, so two builds are byte-identical. When git does not ignore build/,
the advisory BUILD_NOT_IGNORED says so; outside a git repository it is silent. The advisories go to stderr and leave
the exit code 0.
Paths and producers
A code entry and a widget project each sit in a directory below their blob’s folder. A published path has one producer: two definitions with the samefile, or an objects[].file naming a definition’s file or blob.yaml, is
MANIFEST_INVALID.
Errors
Every code above, with its remediation, is in Error codes.
See also
blobhub app push— builds, then uploads what changed.app.yamlandblob.yaml— whatbuildreads.- App overview — the repository and the loop.

