Skip to content

Commit 8907c14

Browse files
committed
mantle: replace deprecated golang.org/x/net/context import
SA1019: "golang.org/x/net/context" is deprecated: Use the standard library context package instead.
1 parent 7640001 commit 8907c14

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

mantle/lang/worker/group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
package worker
1616

1717
import (
18+
"context"
1819
"sync"
1920

2021
"github.com/coreos/pkg/multierror"
21-
"golang.org/x/net/context"
2222
)
2323

2424
// Worker is a function that WorkerGroup will run in a new goroutine.

mantle/platform/api/gcloud/image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
package gcloud
1616

1717
import (
18+
"context"
1819
"fmt"
1920
"runtime"
2021
"strings"
2122

22-
"golang.org/x/net/context"
2323
"google.golang.org/api/compute/v1"
2424
)
2525

mantle/platform/platform.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package platform
1616

1717
import (
1818
"bytes"
19+
"context"
1920
"encoding/json"
2021
"fmt"
2122
"io"
@@ -30,7 +31,6 @@ import (
3031
"github.com/kballard/go-shellquote"
3132
"github.com/pkg/errors"
3233
"golang.org/x/crypto/ssh"
33-
"golang.org/x/net/context"
3434

3535
"github.com/coreos/coreos-assembler/mantle/platform/conf"
3636
"github.com/coreos/coreos-assembler/mantle/util"

0 commit comments

Comments
 (0)