Skip to content

Commit

Permalink
okay need to check it's not circular
Browse files Browse the repository at this point in the history
  • Loading branch information
peterebden committed Oct 2, 2023
1 parent 9c4af31 commit 40f5043
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/build_target.go
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,9 @@ func (target *BuildTarget) AddProvide(language string, label BuildLabel) {
} else {
target.Provides[language] = label
}
target.AddDependency(label)
if label != target.Label {
target.AddDependency(label)
}
}

// ProvideFor returns the build label that we'd provide for the given target.
Expand Down

0 comments on commit 40f5043

Please sign in to comment.