]> Cypherpunks repositories - gostls13.git/commitdiff
gofix: update go1pkgrename for subrepositories
authorRuss Cox <rsc@golang.org>
Wed, 25 Jan 2012 20:30:03 +0000 (15:30 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 25 Jan 2012 20:30:03 +0000 (15:30 -0500)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5576044

src/cmd/gofix/go1pkgrename.go
src/cmd/gofix/go1pkgrename_test.go

index 91e3cb1caa8a6a25acc04937f89dc4971c4a24fe..7dc952dfad296ff06182c0205aefbcd5d10f5e70 100644 (file)
@@ -50,6 +50,32 @@ var go1PackageRenames = []struct{ old, new string }{
        {"utf16", "unicode/utf16"},
        {"utf8", "unicode/utf8"},
        {"xml", "encoding/xml"},
+
+       // go.crypto sub-repository
+       {"crypto/bcrypt", "code.google.com/p/go.crypto/bcrypt"},
+       {"crypto/blowfish", "code.google.com/p/go.crypto/blowfish"},
+       {"crypto/cast5", "code.google.com/p/go.crypto/cast5"},
+       {"crypto/md4", "code.google.com/p/go.crypto/md4"},
+       {"crypto/ocsp", "code.google.com/p/go.crypto/ocsp"},
+       {"crypto/openpgp", "code.google.com/p/go.crypto/openpgp"},
+       {"crypto/openpgp/armor", "code.google.com/p/go.crypto/openpgp/armor"},
+       {"crypto/openpgp/elgamal", "code.google.com/p/go.crypto/openpgp/elgamal"},
+       {"crypto/openpgp/errors", "code.google.com/p/go.crypto/openpgp/errors"},
+       {"crypto/openpgp/packet", "code.google.com/p/go.crypto/openpgp/packet"},
+       {"crypto/openpgp/s2k", "code.google.com/p/go.crypto/openpgp/s2k"},
+       {"crypto/ripemd160", "code.google.com/p/go.crypto/ripemd160"},
+       {"crypto/twofish", "code.google.com/p/go.crypto/twofish"},
+       {"crypto/xtea", "code.google.com/p/go.crypto/xtea"},
+       {"exp/ssh", "code.google.com/p/go.crypto/ssh"},
+
+       // go.net sub-repository
+       {"net/dict", "code.google.com/p/go.net/dict"},
+       {"net/websocket", "code.google.com/p/go.net/websocket"},
+       {"exp/spdy", "code.google.com/p/go.net/spdy"},
+
+       // go.codereview sub-repository
+       {"encoding/git85", "code.google.com/p/go.codereview/git85"},
+       {"patch", "code.google.com/p/go.codereview/patch"},
 }
 
 var go1PackageNameRenames = []struct{ newPath, old, new string }{
index 32d659653b638a8afcc6ed06bb3b730953ff40dc..736e7ed7fc778c9db3be88e64cd8a3f88b60d369 100644 (file)
@@ -41,6 +41,8 @@ import (
        "utf16"
        "utf8"
        "xml"
+
+       "crypto/bcrypt"
 )
 `,
                Out: `package main
@@ -73,6 +75,8 @@ import (
        "text/template/parse"
        "unicode/utf16"
        "unicode/utf8"
+
+       "code.google.com/p/go.crypto/bcrypt"
 )
 `,
        },