diff options
Diffstat (limited to 'internal/pkg')
| -rw-r--r-- | internal/pkg/exec.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/pkg/exec.go b/internal/pkg/exec.go index 0fe20848..4dd9fc26 100644 --- a/internal/pkg/exec.go +++ b/internal/pkg/exec.go @@ -591,6 +591,7 @@ var ( func (c *Cache) EnterExec( ctx context.Context, a Artifact, + hostname string, retainSession bool, stdin io.Reader, stdout, stderr io.Writer, @@ -671,6 +672,9 @@ func (c *Cache) EnterExec( z.Env = append(z.Env, "TERM="+s) } } + if hostname != "" { + z.Hostname = hostname + } if err = z.Start(); err != nil { return |
