Skip to content

Commit

Permalink
fix(gpd): add missing condition in MoveTestFiles() (#4118)
Browse files Browse the repository at this point in the history
There is no reason for **CompiledGoFiles** to have external tests and
not **GoFiles**, but it's more consistent in the code to support this
edge case.
  • Loading branch information
lbcjbb authored Sep 24, 2024
1 parent dde2c1d commit 3e44c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/tools/gopackagesdriver/flatpackage.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (fp *FlatPackage) MoveTestFiles() *FlatPackage {

fp.CompiledGoFiles = append(cgf, ctgf...)

if len(xtgf) == 0 {
if len(xtgf) == 0 && len(cxtgf) == 0 {
return nil
}

Expand Down

0 comments on commit 3e44c78

Please sign in to comment.