go-macaroon-bakery/macaroon-bakery

Use golang.org/x/net/publicsuffix

Closed this issue · 3 comments

tv42 commented
diff --git i/httpbakery/client.go w/httpbakery/client.go
index 53eb7ac..3e39194 100644
--- i/httpbakery/client.go
+++ w/httpbakery/client.go
@@ -11,8 +11,8 @@ import (
        "net/url"
        "strings"

-       "code.google.com/p/go.net/publicsuffix"
        "github.com/juju/loggo"
+       "golang.org/x/net/publicsuffix"
        "gopkg.in/errgo.v1"
        "gopkg.in/macaroon.v1"

tv42 commented
diff --git i/bakery/example/idservice/idservice_test.go w/bakery/example/idservice/idservice_test.go
index bd1f016..8bba97d 100644
--- i/bakery/example/idservice/idservice_test.go
+++ w/bakery/example/idservice/idservice_test.go
@@ -134,7 +134,7 @@ func (s *suite) clientRequest(serverEndpoint string, visitWebPage func(*url.URL)
 // Alternatives to this might be (in likely ascending order of complexity):
 // - use the template itself as the pattern.
 // - parse the html with encoding/xml
-// - parse the html with code.google.com/p/go.net/html
+// - parse the html with golang.org/x/net/html
 var (
        actionPat = regexp.MustCompile(`<form action="([^"]+)"`)
        waitIdPat = regexp.MustCompile(`name="waitid" value="([^"]+)"`)

+1 for getting this one fixed soon. Will propose a PR if I can get back to it this afternoon.

This has been fixed.