Add makefile command to make intake-sources available

This commit is contained in:
Tim Van Baak 2025-02-24 12:08:06 -08:00
parent f2ab5ac6d5
commit 27eb3cb211
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
.PHONY: help serve test-data demo
.PHONY: help serve test-data intake-sources demo
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
@ -15,5 +15,8 @@ serve: ## Run "intake serve" with live reload
test-data: ## Recreate test data in tmp/
@test/test_items.sh
intake-sources: ## Nix build intake-sources into tmp/
@nix build git+https://git.alogoulogoi.com/Jaculabilis/intake-sources.git#default --out-link ${ROOT_DIR}/tmp/intake-sources
demo: ## Run the demo vm
@nix run ".#nixosConfigurations.demo.config.system.build.nixos-shell"

View File

@ -46,8 +46,7 @@ func sourceTest(env []string, format string, timeout string, cmd []string) {
}
items, state, _, err := core.Execute("test", cmd, env, nil, "", duration)
log.Printf("returned %d items", len(items))
log.Printf("wrote %d bytes of state", len(state))
log.Printf("returned %d items, %d bytes of state", len(items), len(state))
if err != nil {
log.Fatal(err)
}