Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Commit

Permalink
*: use a go vanity import path
Browse files Browse the repository at this point in the history
Ensure the project has independence from GitHub over the long term.
  • Loading branch information
philips committed Aug 5, 2019
1 parent 14a5098 commit 3eb5112
Show file tree
Hide file tree
Showing 15 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
@@ -1,7 +1,7 @@
# Start by building the application. # Start by building the application.
FROM golang:1.12 as build FROM golang:1.12 as build


WORKDIR /go/src/github.com/merklecounty/rget WORKDIR /go/src/go.merklecounty.com/rget
COPY . . COPY . .


ENV GO111MODULE=on ENV GO111MODULE=on
Expand Down
2 changes: 1 addition & 1 deletion autocert/autocert.go
Expand Up @@ -6,7 +6,7 @@
// and any other ACME-based CA. // and any other ACME-based CA.
// //
// This package is a work in progress and makes no API stability promises. // This package is a work in progress and makes no API stability promises.
package autocert package autocert // import "go.merklecounty.com/rget/autocert"


import ( import (
"bytes" "bytes"
Expand Down
2 changes: 1 addition & 1 deletion autocert/autocert_test.go
Expand Up @@ -31,7 +31,7 @@ import (
"testing" "testing"
"time" "time"


"github.com/merklecounty/rget/autocert/internal/acmetest" "go.merklecounty.com/rget/autocert/internal/acmetest"
"golang.org/x/crypto/acme" "golang.org/x/crypto/acme"
) )


Expand Down
4 changes: 2 additions & 2 deletions gitcache/gitcache.go
@@ -1,4 +1,4 @@
package gitcache package gitcache // import "go.merklecounty.com/rget/gitcache"


import ( import (
"context" "context"
Expand All @@ -14,7 +14,7 @@ import (
"gopkg.in/src-d/go-git.v4/plumbing/object" "gopkg.in/src-d/go-git.v4/plumbing/object"
"gopkg.in/src-d/go-git.v4/plumbing/transport" "gopkg.in/src-d/go-git.v4/plumbing/transport"


"github.com/merklecounty/rget/autocert" "go.merklecounty.com/rget/autocert"
) )


type GitCache struct { type GitCache struct {
Expand Down
2 changes: 1 addition & 1 deletion gitcache/gitcache_test.go
Expand Up @@ -10,7 +10,7 @@ import (


"gopkg.in/src-d/go-git.v4" "gopkg.in/src-d/go-git.v4"


"github.com/merklecounty/rget/internal/testutil" "go.merklecounty.com/rget/internal/testutil"
) )


func TestPrefix(t *testing.T) { func TestPrefix(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
@@ -1,4 +1,4 @@
module github.com/merklecounty/rget module go.merklecounty.com/rget


go 1.12 go 1.12


Expand Down
2 changes: 1 addition & 1 deletion rget/cmd/github.go
Expand Up @@ -17,7 +17,7 @@ package cmd
import ( import (
"github.com/spf13/cobra" "github.com/spf13/cobra"


"github.com/merklecounty/rget/rget/github" "go.merklecounty.com/rget/rget/github"
) )


// githubCmd represents the github command // githubCmd represents the github command
Expand Down
6 changes: 3 additions & 3 deletions rget/cmd/root.go
Expand Up @@ -36,9 +36,9 @@ import (
"github.com/google/certificate-transparency-go/x509" "github.com/google/certificate-transparency-go/x509"
"github.com/google/certificate-transparency-go/x509util" "github.com/google/certificate-transparency-go/x509util"


"github.com/merklecounty/rget/rgetct" "go.merklecounty.com/rget/rgetct"
"github.com/merklecounty/rget/rgethash" "go.merklecounty.com/rget/rgethash"
"github.com/merklecounty/rget/rgetwellknown" "go.merklecounty.com/rget/rgetwellknown"
) )


var cfgFile string var cfgFile string
Expand Down
8 changes: 4 additions & 4 deletions rget/cmd/server.go
Expand Up @@ -27,10 +27,10 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
githttp "gopkg.in/src-d/go-git.v4/plumbing/transport/http" githttp "gopkg.in/src-d/go-git.v4/plumbing/transport/http"


"github.com/merklecounty/rget/autocert" "go.merklecounty.com/rget/autocert"
"github.com/merklecounty/rget/gitcache" "go.merklecounty.com/rget/gitcache"
"github.com/merklecounty/rget/rgethash" "go.merklecounty.com/rget/rgethash"
"github.com/merklecounty/rget/rgetserver" "go.merklecounty.com/rget/rgetserver"
) )


// serverCmd represents the server command // serverCmd represents the server command
Expand Down
4 changes: 2 additions & 2 deletions rget/cmd/submit.go
Expand Up @@ -21,8 +21,8 @@ import (
"net/url" "net/url"
"os" "os"


"github.com/merklecounty/rget/rgetgithub" "go.merklecounty.com/rget/rgetgithub"
"github.com/merklecounty/rget/rgetwellknown" "go.merklecounty.com/rget/rgetwellknown"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )


Expand Down
6 changes: 3 additions & 3 deletions rget/github/publish-release-sums.go
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/oauth2" "golang.org/x/oauth2"


"github.com/merklecounty/rget/rgetgithub" "go.merklecounty.com/rget/rgetgithub"
"github.com/merklecounty/rget/rgethash" "go.merklecounty.com/rget/rgethash"
"github.com/merklecounty/rget/rgetwellknown" "go.merklecounty.com/rget/rgetwellknown"
) )


var publishReleaseSumsCmd = &cobra.Command{ var publishReleaseSumsCmd = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions rget/main.go
Expand Up @@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.


package main package main // import "go.merklecounty.com/rget"


import "github.com/merklecounty/rget/rget/cmd" import "go.merklecounty.com/rget/rget/cmd"


func main() { func main() {
cmd.Execute() cmd.Execute()
Expand Down
8 changes: 4 additions & 4 deletions rgethash/sgethash.go
@@ -1,4 +1,4 @@
package rgethash package rgethash // import "go.merklecounty.com/rget/rgethash"


import ( import (
"bufio" "bufio"
Expand All @@ -16,9 +16,9 @@ import (
"github.com/google/trillian/merkle/rfc6962" "github.com/google/trillian/merkle/rfc6962"
"golang.org/x/net/context/ctxhttp" "golang.org/x/net/context/ctxhttp"


"github.com/merklecounty/rget/autocert" "go.merklecounty.com/rget/autocert"
"github.com/merklecounty/rget/gitcache" "go.merklecounty.com/rget/gitcache"
"github.com/merklecounty/rget/rgetwellknown" "go.merklecounty.com/rget/rgetwellknown"
) )


type URLSum struct { type URLSum struct {
Expand Down
8 changes: 4 additions & 4 deletions rgethash/sgethash_test.go
Expand Up @@ -8,10 +8,10 @@ import (
"reflect" "reflect"
"testing" "testing"


"github.com/merklecounty/rget/autocert" "go.merklecounty.com/rget/autocert"
"github.com/merklecounty/rget/gitcache" "go.merklecounty.com/rget/gitcache"
"github.com/merklecounty/rget/internal/testutil" "go.merklecounty.com/rget/internal/testutil"
"github.com/merklecounty/rget/rgetwellknown" "go.merklecounty.com/rget/rgetwellknown"
) )


func TestDomain(t *testing.T) { func TestDomain(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions rgetserver/rgetserver.go
@@ -1,4 +1,4 @@
package rgetserver package rgetserver // import "go.merklecounty.com/rgetserver"


import ( import (
"context" "context"
Expand All @@ -11,9 +11,9 @@ import (


"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"


"github.com/merklecounty/rget/gitcache" "go.merklecounty.com/rget/gitcache"
"github.com/merklecounty/rget/rgethash" "go.merklecounty.com/rget/rgethash"
"github.com/merklecounty/rget/rgetwellknown" "go.merklecounty.com/rget/rgetwellknown"
) )


type Server struct { type Server struct {
Expand Down Expand Up @@ -48,7 +48,7 @@ func init() {
<h2>Merkle County</h2> <h2>Merkle County</h2>
<ul> <ul>
<li><a href="https://merklecounty.substack.com">Newsletter and Blog</a></li> <li><a href="https://merklecounty.substack.com">Newsletter and Blog</a></li>
<li><a href="https://github.com/merklecounty/rget">GitHub</a></li> <li><a href="https://go.merklecounty.com/rget">GitHub</a></li>
<li><a href="https://go.merklecounty.com">Go Packages</a></li> <li><a href="https://go.merklecounty.com">Go Packages</a></li>
</ul> </ul>
</body> </body>
Expand Down

0 comments on commit 3eb5112

Please sign in to comment.