This guide will help you set up your development environment for working with the CDK repository.
Before you begin, ensure you have:
Clone your forked repository:
git clone https://github.com/YOUR-USERNAME/cdk.git
cd cdk
CDK uses Nix for building, CI, and managing dev environment.
Note: only Nix
(the language & package manager) and not the NixOS (the Linux distribution) is needed.
Nix can be installed on any Linux distribution and macOS.
While it is technically possible to not use Nix, it is highly recommended as it ensures consistent and reproducible environment for all developers.
You have 2 options to install nix:
Example:
> nix --version
nix (Nix) 2.9.1
The exact version might be different.
If you installed Nix using the "determinate installer" you can skip this step. If you used the "official installer", edit either ~/.config/nix/nix.conf
or /etc/nix/nix.conf
and add:
experimental-features = nix-command flakes
If the Nix installation is in multi-user mode, don’t forget to restart the nix-daemon.
nix develop -c $SHELL
just build
just test
just itest REDB/SQLITE/MEMEORY
just format
just clippy
just final-check
Branch Management
main
feature/new-feature
or fix/bug-description
Commit Messages
feat:
, fix:
, docs:
, chore:
, etc.Testing
nix-collect-garbage -d
Refer to the LICENSE file in the repository for terms of use and distribution.