When to Regenerate
You must runmake generate if your change includes any of the following:
- Modifications to the install script template
- Additions or modifications to the list of supported operating systems and architectures
Regenerating the Install Script
To regenerate all generated files, including the install script:- Process the install script template
- Generate platform-specific installation code
- Update all derived files
Continuous Integration
chemzoi’s continuous integration verifies that all generated files are up to date. Changes to generated files should be included in the commit that modifies the source of truth.Workflow
When making changes to the install script:- Edit the template or configuration that defines the install script
- Run
make generateto update the generated files - Review the changes to ensure they match your expectations
- Commit both the source changes and the generated files together
Template Location
The install script template is located in the chezmoi source tree. The exact location and template engine used may vary, so check the repository structure for the current setup.Testing Changes
After regenerating the install script, test it on the target platforms:Supported Platforms
The install script supports a wide range of operating systems and architectures:- Linux (amd64, arm, arm64, i386, ppc64, ppc64le, riscv64, s390x)
- macOS (amd64, arm64)
- FreeBSD (amd64, arm, arm64, i386)
- OpenBSD (amd64, arm, arm64, i386)
- Windows (amd64, arm64, i386)