hugolib: Use stdlib context package
authorGregorio Martinez <greg@gmartinez.com>
Tue, 2 Oct 2018 02:08:10 +0000 (22:08 -0400)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 3 Oct 2018 12:59:35 +0000 (14:59 +0200)
hugolib/page_bundler.go
hugolib/site.go

index 6870dc15296ae3643b0be3bdde25b26903591122..f3aaef826fbad7c1d72ffb110e427914dfab1647 100644 (file)
 package hugolib
 
 import (
+       "context"
        "fmt"
        "math"
        "runtime"
 
-       // Use this until errgroup gets ported to context
-       // See https://github.com/golang/go/issues/19781
-       "golang.org/x/net/context"
        "golang.org/x/sync/errgroup"
 )
 
index 71a8a03e38fe5e8cbe28b34863b3952637d9facf..1196496d3032788b1cf0b77f1732e77775ac27ff 100644 (file)
@@ -14,6 +14,7 @@
 package hugolib
 
 import (
+       "context"
        "errors"
        "fmt"
        "html/template"
@@ -43,7 +44,6 @@ import (
        "github.com/gohugoio/hugo/media"
 
        "github.com/markbates/inflect"
-       "golang.org/x/net/context"
 
        "github.com/fsnotify/fsnotify"
        bp "github.com/gohugoio/hugo/bufferpool"