From 355ef1c3529dd5ba563b6eaccc4a921d16834099 Mon Sep 17 00:00:00 2001 From: Moritz Clasmeier Date: Fri, 10 Apr 2026 14:03:06 +0200 Subject: [PATCH 1/2] Don't pretend that sensor deployment writes envrc file --- cmd/deploy.go | 1 - internal/deployer/deployer.go | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/deploy.go b/cmd/deploy.go index 2c2daf9..e9b8d4a 100644 --- a/cmd/deploy.go +++ b/cmd/deploy.go @@ -179,7 +179,6 @@ func runDeploy(cmd *cobra.Command, args []string) error { } if envrc != "" { - log.Dimf("Writing environment variables to %s", envrc) d.SetEnvrcFile(envrc) } diff --git a/internal/deployer/deployer.go b/internal/deployer/deployer.go index 489d5dc..82860dc 100644 --- a/internal/deployer/deployer.go +++ b/internal/deployer/deployer.go @@ -640,6 +640,7 @@ func (d *Deployer) deployCentral(ctx context.Context, resources, exposure string // envrc may be used from different processes, so use actual endpoint not port-forward if d.envrcFile != "" { + d.logger.Dimf("Writing environment variables to %s", d.envrcFile) if err := d.writeEnvrcFile(ctx, exposure, portForwardWanted); err != nil { d.logger.Warningf("Failed to write envrc file: %v", err) } From e9491adfd06e59dc47417f10df1e8a42cd9b4774 Mon Sep 17 00:00:00 2001 From: Moritz Clasmeier Date: Fri, 10 Apr 2026 14:04:41 +0200 Subject: [PATCH 2/2] Don't require envrc file or running interactively if only sensor shall be deployed --- cmd/deploy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/deploy.go b/cmd/deploy.go index e9b8d4a..67aa6da 100644 --- a/cmd/deploy.go +++ b/cmd/deploy.go @@ -85,7 +85,7 @@ func runDeploy(cmd *cobra.Command, args []string) error { return errors.New("already in a roxie sub-shell (ROXIE_SHELL environment variable is set), please exit the shell and try again") } - if !env.RunningInteractively && envrc == "" { + if components.IncludesCentral() && !env.RunningInteractively && envrc == "" { return errors.New("running without a controlling terminal requires --envrc to be set") }