зеркало из https://github.com/golang/pkgsite.git
internal: add RemoveBuildContexts
This was added in CL 313596, but CL 313598 was merged earlier. Change-Id: Ia60ce11098347ab5dcb873770a131edd7a495209 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/314689 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Родитель
459cbb37ce
Коммит
8f262bafc5
|
@ -123,3 +123,9 @@ func (us *UnitSymbol) SupportsBuild(build BuildContext) bool {
|
|||
func (us *UnitSymbol) InAll() bool {
|
||||
return len(us.builds) == len(BuildContexts)
|
||||
}
|
||||
|
||||
// RemoveBuildContexts removes all of the build contexts associated with this
|
||||
// unit symbol.
|
||||
func (us *UnitSymbol) RemoveBuildContexts() {
|
||||
us.builds = map[BuildContext]bool{}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче