Skip to content

Commit 001ccda

Browse files
chore: check container ids match in Equals function
1 parent 88a611d commit 001ccda

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

codersdk/workspaceagents.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,8 @@ func (d WorkspaceAgentDevcontainer) Equals(other WorkspaceAgentDevcontainer) boo
427427
d.WorkspaceFolder == other.WorkspaceFolder &&
428428
d.Status == other.Status &&
429429
d.Dirty == other.Dirty &&
430+
(d.Container == nil && other.Container == nil ||
431+
(d.Container != nil && other.Container != nil && d.Container.ID == other.Container.ID)) &&
430432
d.Error == other.Error
431433
}
432434

0 commit comments

Comments
 (0)