Manifest (knitpkg.yaml)¶
As we saw in the previous section, the main file src/KnitPkgSMA.mq5 tries to include a file that does not exist in the Git repository. To understand where that file comes from, we need to look at the project manifest:
Key manifest points¶
The manifest is the “brain” of a KnitPkg repository: it tells KnitPkg what this repository is, how to build it, and which dependencies it needs.
Pay special attention to the highlighted parts:
include_modeandentrypoints: withinclude_mode: flatand src/KnitPkgSMA.mqh added as the entrypoint for dependency resolution inentrypoints, KnitPkg will use this file as the root to generate the flattened header needed for compilation.dependencies: declares that this project depends on the package@douglasrechia/calc. KnitPkg will use this information to resolve the dependency version and fetch the required code.
In other words: the manifest explains why the repository is missing some includes—because they are produced during installation.
For the complete manifest field reference, see the Manifest reference page