chore: simplify dev setup
4 files changed, 5 insertions(+), 13 deletions(-)
changed files
M justfile → justfile
@@ -30,7 +30,7 @@ build: nix build .# generate-defaults: - wgo run --exit ./cmd/searchix-web defaults > defaults.toml + go run ./cmd/searchix-web defaults > defaults.toml precommit: nix-build -A pre-commit-check@@ -61,10 +61,10 @@ run: dev dev: - modd + watchexec --restart --exts go,toml,mod -- go run ./cmd/searchix-web --config config.toml serve --dev ingest *flags: - wgo run --exit ./cmd/searchix-web --config config.toml ingest --dev {{ flags }} + go run ./cmd/searchix-web --config config.toml ingest --dev {{ flags }} fetch: (ingest "--fetch")
D modd.conf
@@ -1,7 +0,0 @@ -internal/index/indexer.go { - prep +onchange: "just ingest --reindex" -} - -**/*.go config.toml { - daemon +sigint: go run -ldflags="-X alin.ovh/searchix/internal/config.Version=$(git describe --tags --abbrev=0)" ./cmd/searchix-web --config config.toml serve --dev -}
M nix/dev-shell.nix → nix/dev-shell.nix
@@ -15,11 +15,10 @@ [ goEnv sd - modd + watchexec brotli boltbrowser bleve - wgo gomod2nix ] ++ pre-commit-check.enabledPackages;
M nix/pre-commit-checks.nix → nix/pre-commit-checks.nix
@@ -75,7 +75,7 @@ ]; entry = let script = pkgs.writeShellScript "generate-default-config" '' - ${pkgs.wgo}/bin/wgo run -exit ./cmd/searchix-web defaults > defaults.toml + ${pkgs.go}/bin/go run ./cmd/searchix-web defaults > defaults.toml ''; in builtins.toString script;