Skip to content

Commit 5950e87

Browse files
committed
fix: shorten container name to hawk-<hash> (like herm)
1 parent f918ddd commit 5950e87

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sandbox/container.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,8 @@ func (c *ContainerSandbox) HotSwap(ctx context.Context) error {
185185
}
186186

187187
func (c *ContainerSandbox) containerName() string {
188-
base := filepath.Base(c.projectDir)
189188
hash := sha256.Sum256([]byte(c.projectDir))
190-
return fmt.Sprintf("hawk-%s-%x", base, hash[:4])
189+
return fmt.Sprintf("hawk-%x", hash[:4])
191190
}
192191

193192
// ContainerImageTag is set at build time via ldflags. Falls back to "latest".

0 commit comments

Comments
 (0)