aboutsummaryrefslogtreecommitdiff
path: root/internal/postgres
diff options
context:
space:
mode:
Diffstat (limited to 'internal/postgres')
-rw-r--r--internal/postgres/unit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/postgres/unit.go b/internal/postgres/unit.go
index 2f7fccf9..756f3ad7 100644
--- a/internal/postgres/unit.go
+++ b/internal/postgres/unit.go
@@ -538,7 +538,7 @@ func (db *DB) getUnitWithAllFields(ctx context.Context, um *internal.UnitMeta, b
u.Subdirectories = pkgs
u.UnitMeta = *um
- if um.IsPackage() && doc.Source != nil {
+ if um.IsPackage() && !um.IsCommand() && doc.Source != nil {
if um.ModulePath == stdlib.ModulePath {
u.SymbolHistory, err = GetSymbolHistoryForBuildContext(ctx, db.db, pathID, um.ModulePath, bcMatched)
if err != nil {