Skip to content

Commit 90bee8e

Browse files
authored
chore: Do not import enterprise code (#493)
1 parent 05d3348 commit 90bee8e

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

cmd/src/lsif_upload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"github.com/efritz/pentimento"
1616
"github.com/pkg/browser"
1717
"github.com/pkg/errors"
18-
"github.com/sourcegraph/sourcegraph/enterprise/lib/codeintel/utils"
18+
"github.com/sourcegraph/sourcegraph/lib/codeintel/utils"
1919
"github.com/sourcegraph/src-cli/internal/codeintel"
2020
)
2121

go.mod

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ require (
77
github.com/dustin/go-humanize v1.0.0
88
github.com/efritz/pentimento v0.0.0-20190429011147-ade47d831101
99
github.com/gobwas/glob v0.2.3
10-
github.com/google/go-cmp v0.5.4
11-
github.com/hashicorp/errwrap v1.1.0 // indirect
10+
github.com/google/go-cmp v0.5.5
1211
github.com/hashicorp/go-multierror v1.1.0
1312
github.com/jig/teereadcloser v0.0.0-20181016160506-953720c48e05
1413
github.com/json-iterator/go v1.1.10
@@ -23,7 +22,7 @@ require (
2322
github.com/sourcegraph/batch-change-utils v0.0.0-20210309183117-206c057cc03e
2423
github.com/sourcegraph/go-diff v0.6.1
2524
github.com/sourcegraph/jsonx v0.0.0-20200629203448-1a936bd500cf
26-
github.com/sourcegraph/sourcegraph/enterprise/lib v0.0.0-20210301223818-d8082f761977
25+
github.com/sourcegraph/sourcegraph/lib v0.0.0-20210312004335-4dae89dd19bc
2726
github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf // indirect
2827
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
2928
golang.org/x/net v0.0.0-20200625001655-4c5254603344

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ github.com/efritz/pentimento v0.0.0-20190429011147-ade47d831101/go.mod h1:5ALWO8
1010
github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y=
1111
github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8=
1212
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
13-
github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M=
14-
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
13+
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
14+
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
1515
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
1616
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
1717
github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I=
@@ -53,8 +53,8 @@ github.com/sourcegraph/go-diff v0.6.1 h1:hmA1LzxW0n1c3Q4YbrFgg4P99GSnebYa3x8gr0H
5353
github.com/sourcegraph/go-diff v0.6.1/go.mod h1:iBszgVvyxdc8SFZ7gm69go2KDdt3ag071iBaWPF6cjs=
5454
github.com/sourcegraph/jsonx v0.0.0-20200629203448-1a936bd500cf h1:oAdWFqhStsWiiMP/vkkHiMXqFXzl1XfUNOdxKJbd6bI=
5555
github.com/sourcegraph/jsonx v0.0.0-20200629203448-1a936bd500cf/go.mod h1:ppFaPm6kpcHnZGqQTFhUIAQRIEhdQDWP1PCv4/ON354=
56-
github.com/sourcegraph/sourcegraph/enterprise/lib v0.0.0-20210301223818-d8082f761977 h1:CL4GYvU/Cr0YIEFREUMIL62jnRpCNSR5rCOesxcuGig=
57-
github.com/sourcegraph/sourcegraph/enterprise/lib v0.0.0-20210301223818-d8082f761977/go.mod h1:RaCJRy9qS6T4WSNOh9YKk3a+LC8xV2FmsVEywNAzBqk=
56+
github.com/sourcegraph/sourcegraph/lib v0.0.0-20210312004335-4dae89dd19bc h1:LiXz6LQ7uNqrjIkGG+ZIi2P4nX5GpfRW9sA+K/VvMTA=
57+
github.com/sourcegraph/sourcegraph/lib v0.0.0-20210312004335-4dae89dd19bc/go.mod h1:rLgD/nZsI+CrAcblMx+LSYFg2uFdrXY3oqOG1Ji2H4A=
5858
github.com/sourcegraph/yaml v1.0.1-0.20200714132230-56936252f152 h1:z/MpntplPaW6QW95pzcAR/72Z5TWDyDnSo0EOcyij9o=
5959
github.com/sourcegraph/yaml v1.0.1-0.20200714132230-56936252f152/go.mod h1:GIjDIg/heH5DOkXY3YJ/wNhfHsQHoXGjl8G8amsYQ1I=
6060
github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf h1:pvbZ0lM0XWPBqUKqFU8cmavspvIl9nulOYwdy6IFRRo=

internal/api/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
ioaux "github.com/jig/teereadcloser"
1717
"github.com/kballard/go-shellquote"
1818
"github.com/mattn/go-isatty"
19-
"github.com/sourcegraph/sourcegraph/enterprise/lib/codeintel/utils"
19+
"github.com/sourcegraph/sourcegraph/lib/codeintel/utils"
2020
)
2121

2222
// Client instances provide methods to create API requests.

internal/codeintel/upload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/base64"
55
"fmt"
66

7-
"github.com/sourcegraph/sourcegraph/enterprise/lib/codeintel/utils"
7+
"github.com/sourcegraph/sourcegraph/lib/codeintel/utils"
88
)
99

1010
type UploadIndexOpts = codeintelutils.UploadIndexOpts

0 commit comments

Comments
 (0)