Skip to content
Permalink
Browse files

*: use a go vanity import path

Ensure the project has independence from GitHub over the long term.
  • Loading branch information
philips committed Aug 5, 2019
1 parent 14a5098 commit 3eb5112294a0d2dd560fe7ed5fafb7c90268c860
@@ -1,7 +1,7 @@
# Start by building the application.
FROM golang:1.12 as build

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

ENV GO111MODULE=on
@@ -6,7 +6,7 @@
// and any other ACME-based CA.
//
// This package is a work in progress and makes no API stability promises.
package autocert
package autocert // import "go.merklecounty.com/rget/autocert"

import (
"bytes"
@@ -31,7 +31,7 @@ import (
"testing"
"time"

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

@@ -1,4 +1,4 @@
package gitcache
package gitcache // import "go.merklecounty.com/rget/gitcache"

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

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

type GitCache struct {
@@ -10,7 +10,7 @@ import (

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

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

func TestPrefix(t *testing.T) {
2 go.mod
@@ -1,4 +1,4 @@
module github.com/merklecounty/rget
module go.merklecounty.com/rget

go 1.12

@@ -17,7 +17,7 @@ package cmd
import (
"github.com/spf13/cobra"

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

// githubCmd represents the github command
@@ -36,9 +36,9 @@ import (
"github.com/google/certificate-transparency-go/x509"
"github.com/google/certificate-transparency-go/x509util"

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

var cfgFile string
@@ -27,10 +27,10 @@ import (
"github.com/spf13/cobra"
githttp "gopkg.in/src-d/go-git.v4/plumbing/transport/http"

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

// serverCmd represents the server command
@@ -21,8 +21,8 @@ import (
"net/url"
"os"

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

@@ -12,9 +12,9 @@ import (
"github.com/spf13/cobra"
"golang.org/x/oauth2"

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

var publishReleaseSumsCmd = &cobra.Command{
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// 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() {
cmd.Execute()
@@ -1,4 +1,4 @@
package rgethash
package rgethash // import "go.merklecounty.com/rget/rgethash"

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

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

type URLSum struct {
@@ -8,10 +8,10 @@ import (
"reflect"
"testing"

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

func TestDomain(t *testing.T) {
@@ -1,4 +1,4 @@
package rgetserver
package rgetserver // import "go.merklecounty.com/rgetserver"

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

"github.com/prometheus/client_golang/prometheus"

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

type Server struct {
@@ -48,7 +48,7 @@ func init() {
<h2>Merkle County</h2>
<ul>
<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>
</ul>
</body>

0 comments on commit 3eb5112

Please sign in to comment.
You can’t perform that action at this time.