Skip to content

Commit

Permalink
fix(kzip info): allow paths that begin with /kythe_builtins/ (#5030)
Browse files Browse the repository at this point in the history
this is an exception to the "no absolute paths" rule
  • Loading branch information
justbuchanan committed Aug 10, 2021
1 parent 7babd40 commit 7a909d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kythe/go/platform/kzip/info/info.go
Expand Up @@ -80,7 +80,7 @@ func (a *Accumulator) Accumulate(u *kzip.Unit) {
var srcCorpora stringset.Set
srcsWithRI := stringset.New()
for _, ri := range u.Proto.RequiredInput {
if strings.HasPrefix(ri.GetVName().GetPath(), "/") {
if strings.HasPrefix(ri.GetVName().GetPath(), "/") && !strings.HasPrefix(ri.GetVName().GetPath(), "/kythe_builtins/") {
a.KzipInfo.AbsolutePaths = append(a.KzipInfo.AbsolutePaths, ri.GetVName().GetPath())
}

Expand Down

0 comments on commit 7a909d9

Please sign in to comment.