Skip to content

Commit

Permalink
remove use of obsolete golang.org/x/net/context package
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
thaJeztah committed Dec 8, 2022
1 parent 2ac5c8a commit 1382f3b
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 564 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ require (
github.com/zmap/zcrypto v0.0.0-20210511125630-18f1e0152cfc
github.com/zmap/zlint/v3 v3.1.0
golang.org/x/crypto v0.3.0
golang.org/x/net v0.2.0
)

require (
Expand All @@ -37,6 +36,7 @@ require (
github.com/prometheus/procfs v0.8.0 // indirect
github.com/weppos/publicsuffix-go v0.15.1-0.20210511084619-b1f36a2d6c0b // indirect
github.com/ziutek/mymysql v1.5.4 // indirect
golang.org/x/net v0.2.0 // indirect
golang.org/x/sys v0.2.0 // indirect
golang.org/x/text v0.4.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
Expand Down
2 changes: 1 addition & 1 deletion signer/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package local

import (
"bytes"
"context"
"crypto"
"crypto/ecdsa"
"crypto/elliptic"
Expand Down Expand Up @@ -38,7 +39,6 @@ import (
zx509 "github.com/zmap/zcrypto/x509"
"github.com/zmap/zlint/v3"
"github.com/zmap/zlint/v3/lint"
"golang.org/x/net/context"
)

// Signer contains a signer that uses the standard library to
Expand Down
56 changes: 0 additions & 56 deletions vendor/golang.org/x/net/context/context.go

This file was deleted.

73 changes: 0 additions & 73 deletions vendor/golang.org/x/net/context/go17.go

This file was deleted.

21 changes: 0 additions & 21 deletions vendor/golang.org/x/net/context/go19.go

This file was deleted.

Loading

0 comments on commit 1382f3b

Please sign in to comment.