From 27eb3cb211539ce677b0604f87d45b78b3d2b845 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Mon, 24 Feb 2025 12:08:06 -0800 Subject: [PATCH] Add makefile command to make intake-sources available --- Makefile | 5 ++++- cmd/sourceTest.go | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9eea140..1def4f0 100644 --- a/Makefile +++ b/Makefile @@ -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" diff --git a/cmd/sourceTest.go b/cmd/sourceTest.go index e356e9e..9505e72 100644 --- a/cmd/sourceTest.go +++ b/cmd/sourceTest.go @@ -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) }