Skip to content

Commit

Permalink
fix: source URL handling when load log
Browse files Browse the repository at this point in the history
  • Loading branch information
macrat committed Apr 14, 2021
1 parent 01ca716 commit 96f175e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func ParseRecord(s string) (Record, error) {
return Record{}, err
}

if r.Target.Scheme == "exec" && r.Target.Opaque == "" {
if (r.Target.Scheme == "exec" || r.Target.Scheme == "source") && r.Target.Opaque == "" {
r.Target.Opaque = r.Target.Path
r.Target.Path = ""
}
Expand Down

0 comments on commit 96f175e

Please sign in to comment.