Manually build the socket url (#4205)

This commit is contained in:
Todd authored and Johan Brandhorst-Satzkorn committed 2024-01-05 07:43:21 -08:00
1 parent b7e474d277
commit c94a933578
7 files changed
+17 -30

No files matched your search

@@ -15,7 +15,6 @@ import (
"github.com/hashicorp/boundary/internal/clientcache/internal/daemon"
"github.com/hashicorp/boundary/internal/cmd/base"
"github.com/hashicorp/boundary/internal/errors"
"github.com/mitchellh/cli"
)
@@ -134,10 +133,7 @@ func waitForDaemon(ctx context.Context) error {
}
timer := time.NewTimer(0)
addr, err := daemon.SocketAddress(dotPath)
if err != nil {
return errors.Wrap(ctx, err, op)
}
addr := daemon.SocketAddress(dotPath)
_, err = os.Stat(addr.Path)
for os.IsNotExist(err) {
select {