Skip to content

Commit

Permalink
Temporarily disable daemon on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gsoltis committed Sep 29, 2022
1 parent 005413b commit ba19bc1
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions cli/internal/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"os/exec"
"path/filepath"
"regexp"
"runtime"
"sort"
"strconv"
"strings"
Expand Down Expand Up @@ -197,17 +198,19 @@ func (r *run) run(ctx gocontext.Context, targets []string) error {
if err != nil {
return err
}
if ui.IsCI && !r.opts.runOpts.noDaemon {
r.base.Logger.Info("skipping turbod since we appear to be in a non-interactive context")
} else if !r.opts.runOpts.noDaemon {
turbodClient, err := daemon.GetClient(ctx, r.base.RepoRoot, r.base.Logger, r.base.TurboVersion, daemon.ClientOpts{})
if err != nil {
r.base.LogWarning("", errors.Wrap(err, "failed to contact turbod. Continuing in standalone mode"))
} else {
defer func() { _ = turbodClient.Close() }()
r.base.Logger.Debug("running in daemon mode")
daemonClient := daemonclient.New(turbodClient)
r.opts.runcacheOpts.OutputWatcher = daemonClient
if runtime.GOOS != "windows" {
if ui.IsCI && !r.opts.runOpts.noDaemon {
r.base.Logger.Info("skipping turbod since we appear to be in a non-interactive context")
} else if !r.opts.runOpts.noDaemon {
turbodClient, err := daemon.GetClient(ctx, r.base.RepoRoot, r.base.Logger, r.base.TurboVersion, daemon.ClientOpts{})
if err != nil {
r.base.LogWarning("", errors.Wrap(err, "failed to contact turbod. Continuing in standalone mode"))
} else {
defer func() { _ = turbodClient.Close() }()
r.base.Logger.Debug("running in daemon mode")
daemonClient := daemonclient.New(turbodClient)
r.opts.runcacheOpts.OutputWatcher = daemonClient
}
}
}

Expand Down

0 comments on commit ba19bc1

Please sign in to comment.