Skip to content

Commit 1382f3b

Browse files
committed
remove use of obsolete golang.org/x/net/context package
This package is an alias for "context", which has been part of stdlib since go1.7, so should no longer be needed. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 2ac5c8a commit 1382f3b

File tree

8 files changed

+2
-564
lines changed

8 files changed

+2
-564
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ require (
1818
github.com/zmap/zcrypto v0.0.0-20210511125630-18f1e0152cfc
1919
github.com/zmap/zlint/v3 v3.1.0
2020
golang.org/x/crypto v0.3.0
21-
golang.org/x/net v0.2.0
2221
)
2322

2423
require (
@@ -37,6 +36,7 @@ require (
3736
github.com/prometheus/procfs v0.8.0 // indirect
3837
github.com/weppos/publicsuffix-go v0.15.1-0.20210511084619-b1f36a2d6c0b // indirect
3938
github.com/ziutek/mymysql v1.5.4 // indirect
39+
golang.org/x/net v0.2.0 // indirect
4040
golang.org/x/sys v0.2.0 // indirect
4141
golang.org/x/text v0.4.0 // indirect
4242
google.golang.org/protobuf v1.28.1 // indirect

signer/local/local.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package local
33

44
import (
55
"bytes"
6+
"context"
67
"crypto"
78
"crypto/ecdsa"
89
"crypto/elliptic"
@@ -38,7 +39,6 @@ import (
3839
zx509 "github.com/zmap/zcrypto/x509"
3940
"github.com/zmap/zlint/v3"
4041
"github.com/zmap/zlint/v3/lint"
41-
"golang.org/x/net/context"
4242
)
4343

4444
// Signer contains a signer that uses the standard library to

vendor/golang.org/x/net/context/context.go

Lines changed: 0 additions & 56 deletions
This file was deleted.

vendor/golang.org/x/net/context/go17.go

Lines changed: 0 additions & 73 deletions
This file was deleted.

vendor/golang.org/x/net/context/go19.go

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)