Kubernetes Operator for Tangled Spindles

add shared loom env, update upstream tangled code

evan.jarrett.net 06b730cc 532b0e32

verified
+8 -5
+5 -2
cmd/runner/main.go
··· 129 129 } 130 130 } 131 131 132 - // Create command 133 - cmd := exec.CommandContext(ctx, "bash", "-c", step.Command) 132 + // Create command that auto-sources LOOM_ENV if it exists 133 + // Users can write "VAR=value" to this file to share env vars between steps 134 + wrappedCommand := `if [ -f "$LOOM_ENV" ]; then set -a; source "$LOOM_ENV"; set +a; fi; ` + step.Command 135 + cmd := exec.CommandContext(ctx, "bash", "-c", wrappedCommand) 134 136 cmd.Dir = "/tangled/workspace" 137 + cmd.Env = append(os.Environ(), "LOOM_ENV=/tangled/workspace/.loom-env") 135 138 136 139 // Capture stdout and stderr 137 140 stdout, err := cmd.StdoutPipe()
+1 -1
go.mod
··· 200 200 ) 201 201 202 202 // Use our custom version of tangled until its upstreamed 203 - replace tangled.org/core => tangled.org/evan.jarrett.net/core v1.11.0-alpha.0.20251215153911-cd243782acda 203 + replace tangled.org/core => tangled.org/evan.jarrett.net/core v1.11.0-alpha.0.20251222181345-eeddc6795e05
+2 -2
go.sum
··· 691 691 sigs.k8s.io/structured-merge-diff/v6 v6.3.0/go.mod h1:M3W8sfWvn2HhQDIbGWj3S099YozAsymCo/wrT5ohRUE= 692 692 sigs.k8s.io/yaml v1.6.0 h1:G8fkbMSAFqgEFgh4b1wmtzDnioxFCUgTZhlbj5P9QYs= 693 693 sigs.k8s.io/yaml v1.6.0/go.mod h1:796bPqUfzR/0jLAl6XjHl3Ck7MiyVv8dbTdyT3/pMf4= 694 - tangled.org/evan.jarrett.net/core v1.11.0-alpha.0.20251215153911-cd243782acda h1:d4H5M0fAAMjU8OFMU+sYD4yXjjQMN4v3IltMQRr/6QM= 695 - tangled.org/evan.jarrett.net/core v1.11.0-alpha.0.20251215153911-cd243782acda/go.mod h1:z291K5Y6pwjOD7CpoPyhxKRGvFboADLEr9RRQe5m08A= 694 + tangled.org/evan.jarrett.net/core v1.11.0-alpha.0.20251222181345-eeddc6795e05 h1:VIvqPWMCOPX58x/1le3mndO7JFRfMp4aILiln9f6PQU= 695 + tangled.org/evan.jarrett.net/core v1.11.0-alpha.0.20251222181345-eeddc6795e05/go.mod h1:1d0JNhjFowfh/ks+jN39ZafXr8FLtROlTGnjgVpycMQ=