Repositories
Repositories provide reusable recipes, layers, build rules, and tooling environments, facilitating straightforward sharing within the Rugix community. Instead of operating its own distribution infrastructure, an external Git repository or local directory within the project directory can be used as a repository. The builtin core repository is always implicitly available. Additional repositories can be included via the repositories section in the project configuration. For instance, the quick-start templates may include the rugix-extra repository with:
[repositories]
rugix-extra = { git = "https://github.com/rugix/rugix-extra.git", branch = "v0.9" }
The recipes and layers provided by a repository can then be used by prefixing their name with the name given to the repository. For instance, the zsh recipe from the rugix-extra repository can be referenced with rugix-extra/zsh. Note that this name is determined by the key in the repositories section and can be freely chosen. Local directories can be included by specifying a path instead of git.
Note that the path must be relative to and contained in the project directory.
Repository Structure
To be used as a repository, a Git repository or local directory must include a repository configuration file rugix-repository.toml, providing a name and a description for the repository. Here is an example from rugix-extra:
name = "rugix-extra"
description = "Additional recipes and layers for Rugix Bakery."
The structure of a repository follows the structure of a project. It can contain layers with layer configurations, recipes with recipes, rules with build rules, and envs with tooling environment definitions. Check out the rugix-extra repository as an example.
For reference, here is the complete schema for repository configuration files:
RepositoryConfigobject
Repository configuration.
Properties
namestring
descriptionstring
repositoriesobject
Additional properties
valueSourceConfig
Repository source.
Any of
option 1object
Properties
gitstringrequired
tagstring
branchstring
revstring
dirstring
option 2object
Properties
pathstringrequired
You will find the most recent version of this schema on GitHub.