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
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion autocert/autocert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion autocert/autocert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

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

import (
"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/transport"

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

type GitCache struct {
Expand Down
2 changes: 1 addition & 1 deletion gitcache/gitcache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/merklecounty/rget
module go.merklecounty.com/rget

go 1.12

Expand Down
2 changes: 1 addition & 1 deletion rget/cmd/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions rget/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions rget/cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions rget/cmd/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
6 changes: 3 additions & 3 deletions rget/github/publish-release-sums.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
4 changes: 2 additions & 2 deletions rget/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
8 changes: 4 additions & 4 deletions rgethash/sgethash.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rgethash
package rgethash // import "go.merklecounty.com/rget/rgethash"

import (
"bufio"
Expand All @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions rgethash/sgethash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
10 changes: 5 additions & 5 deletions rgetserver/rgetserver.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rgetserver
package rgetserver // import "go.merklecounty.com/rgetserver"

import (
"context"
Expand All @@ -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 {
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 3eb5112

Please sign in to comment.