Building and testing packages
This guide will walk you through the process of building and testing packages locally on your system, regardless of whether they come from new package recipes or existing ones you are updating.
Build the package
Section titled “Build the package”Once you have created or updated a package recipe, you will need to build it locally. If you are only updating one package, you can either keep your local repository disabled prior to building the package. If you prefer to keep it enabled, make sure there are no other packages indexed locally that could interfere with your new package build.
The command to build the updated package is:
just buildIf the package is successfully built, you will need to move it to your local repository. You can do this using the following command:
just mv-localIf you have not yet enabled the local repository, you do this with the following command:
sudo moss repo enable localYou will then need to sync the local repository using the command:
sudo moss sync -uNote, if you already have an older version of the package installed, you will be asked if you want to update to the new local version you have just built. If you have not yet installed this package, you would install it as normal using the command:
sudo moss install "package name"Once you have tested the package, you can make a submission for including the update in the repository.