Skip to content

Commit dd082ae

Browse files
vagruchijohnweldon
authored andcommitted
Rename asn1 ber dependency. (#243)
* Rename asn1.ber dependency. * go mod tidy * Update travic CI to new asn1 ber * Update travis go_import_path
1 parent c135faa commit dd082ae

24 files changed

+29
-27
lines changed

.travis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ go:
1313
- tip
1414

1515
git:
16-
depth: 1
16+
depth: 1
1717

1818
matrix:
1919
fast_finish: true
2020
allow_failures:
2121
- go: tip
22-
go_import_path: gopkg.in/ldap.v3
22+
go_import_path: github.com/go-ldap/ldap
2323
install:
24-
- go get gopkg.in/asn1-ber.v1
24+
- go get github.com/go-asn1-ber/asn1-ber
2525
- go get code.google.com/p/go.tools/cmd/cover || go get golang.org/x/tools/cmd/cover
2626
- go get github.com/golang/lint/golint || go get golang.org/x/lint/golint || true
2727
- go build -v ./...

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Import the latest version with:
1515

1616
## Required Libraries:
1717

18-
- gopkg.in/asn1-ber.v1
18+
- github.com/go-asn1-ber/asn1-ber
1919

2020
## Features:
2121

add.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ package ldap
1212
import (
1313
"log"
1414

15-
ber "gopkg.in/asn1-ber.v1"
15+
ber "github.com/go-asn1-ber/asn1-ber"
1616
)
1717

1818
// Attribute represents an LDAP attribute

bind.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"errors"
55
"fmt"
66

7-
ber "gopkg.in/asn1-ber.v1"
7+
ber "github.com/go-asn1-ber/asn1-ber"
88
)
99

1010
// SimpleBindRequest represents a username/password bind operation

compare.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ package ldap
2222
import (
2323
"fmt"
2424

25-
ber "gopkg.in/asn1-ber.v1"
25+
ber "github.com/go-asn1-ber/asn1-ber"
2626
)
2727

2828
// CompareRequest represents an LDAP CompareRequest operation.

conn.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"sync/atomic"
1212
"time"
1313

14-
ber "gopkg.in/asn1-ber.v1"
14+
ber "github.com/go-asn1-ber/asn1-ber"
1515
)
1616

1717
const (

conn_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"testing"
1313
"time"
1414

15-
"gopkg.in/asn1-ber.v1"
15+
"github.com/go-asn1-ber/asn1-ber"
1616
)
1717

1818
func TestUnresponsiveConnection(t *testing.T) {

control.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"strconv"
66

7-
"gopkg.in/asn1-ber.v1"
7+
"github.com/go-asn1-ber/asn1-ber"
88
)
99

1010
const (

control_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"runtime"
88
"testing"
99

10-
ber "gopkg.in/asn1-ber.v1"
10+
ber "github.com/go-asn1-ber/asn1-ber"
1111
)
1212

1313
func TestControlPaging(t *testing.T) {

debug.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package ldap
33
import (
44
"log"
55

6-
ber "gopkg.in/asn1-ber.v1"
6+
ber "github.com/go-asn1-ber/asn1-ber"
77
)
88

99
// debugging type

del.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package ldap
88
import (
99
"log"
1010

11-
ber "gopkg.in/asn1-ber.v1"
11+
ber "github.com/go-asn1-ber/asn1-ber"
1212
)
1313

1414
// DelRequest implements an LDAP deletion request

dn.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import (
4848
"fmt"
4949
"strings"
5050

51-
"gopkg.in/asn1-ber.v1"
51+
"github.com/go-asn1-ber/asn1-ber"
5252
)
5353

5454
// AttributeTypeAndValue represents an attributeTypeAndValue from https://tools.ietf.org/html/rfc4514

error.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package ldap
33
import (
44
"fmt"
55

6-
ber "gopkg.in/asn1-ber.v1"
6+
ber "github.com/go-asn1-ber/asn1-ber"
77
)
88

99
// LDAP Result Codes

error_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"testing"
88
"time"
99

10-
"gopkg.in/asn1-ber.v1"
10+
"github.com/go-asn1-ber/asn1-ber"
1111
)
1212

1313
// TestNilPacket tests that nil packets don't cause a panic.

filter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99
"unicode/utf8"
1010

11-
"gopkg.in/asn1-ber.v1"
11+
"github.com/go-asn1-ber/asn1-ber"
1212
)
1313

1414
// Filter choices

filter_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"strings"
55
"testing"
66

7-
"gopkg.in/asn1-ber.v1"
7+
"github.com/go-asn1-ber/asn1-ber"
88
)
99

1010
type compileTest struct {

go.mod

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
module github.com/go-ldap/ldap
22

3-
require gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d
3+
require github.com/go-asn1-ber/asn1-ber v1.3.1
4+
5+
go 1.13

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d h1:TxyelI5cVkbREznMhfzycHdkp5cLA7DpE+GKjSslYhM=
2-
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw=
1+
github.com/go-asn1-ber/asn1-ber v1.3.1 h1:gvPdv/Hr++TRFCl0UbPFHC54P9N9jgsRPnmnr419Uck=
2+
github.com/go-asn1-ber/asn1-ber v1.3.1/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0=

ldap.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"io/ioutil"
66
"os"
77

8-
ber "gopkg.in/asn1-ber.v1"
8+
ber "github.com/go-asn1-ber/asn1-ber"
99
)
1010

1111
// LDAP Application Codes

moddn.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ package ldap
1313
import (
1414
"log"
1515

16-
ber "gopkg.in/asn1-ber.v1"
16+
ber "github.com/go-asn1-ber/asn1-ber"
1717
)
1818

1919
// ModifyDNRequest holds the request to modify a DN

modify.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ package ldap
2828
import (
2929
"log"
3030

31-
ber "gopkg.in/asn1-ber.v1"
31+
ber "github.com/go-asn1-ber/asn1-ber"
3232
)
3333

3434
// Change operation choices

passwdmodify.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package ldap
88
import (
99
"fmt"
1010

11-
ber "gopkg.in/asn1-ber.v1"
11+
ber "github.com/go-asn1-ber/asn1-ber"
1212
)
1313

1414
const (

request.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package ldap
33
import (
44
"errors"
55

6-
ber "gopkg.in/asn1-ber.v1"
6+
ber "github.com/go-asn1-ber/asn1-ber"
77
)
88

99
var (

search.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ import (
6161
"sort"
6262
"strings"
6363

64-
ber "gopkg.in/asn1-ber.v1"
64+
ber "github.com/go-asn1-ber/asn1-ber"
6565
)
6666

6767
// scope choices

0 commit comments

Comments
 (0)