From 4d56716fe80999b15330960d6ffb12c723a897aa Mon Sep 17 00:00:00 2001 From: mediocregopher <> Date: Sun, 29 Mar 2020 15:16:36 -0600 Subject: [PATCH] Give the project a proper root, dehub.dev/src/dehub.git --- type: change message: |- Give the project a proper root, dehub.dev/src/dehub.git "dehub" was being used as a placeholder up till this point, but now that the project has matured enough to have a home, and people will want to be installing the binary, it's time to give it a proper import root. change_hash: ADTjLNnPARatUjx6HDo7m3O+0KUcWvcMJq1kNrj9++PU credentials: - type: pgp_signature pub_key_id: 95C46FA6A41148AC body: iQIzBAABAgAdFiEEJ6tQKp6olvZKJ0lwlcRvpqQRSKwFAl6BECkACgkQlcRvpqQRSKyeJBAAocdHTs8AB2u9kZmMcJNf136Cq8KWjglvhuH49Nj9ILkeGOBF7+fIHBRSYxBQm4IIDWsjaQaRRhESJxKrkHUd7BG/z5iVsCfjYTyY7LPgv0oYJKEGbPOF2LDK2fuLLpRlA5v1fwamTdFYxs5j7yxW7weWiiKEgjMGjOiWQCWuqhw8rwOG6vjvYttQ5pekI7GvkdqWe+qODKmIF9xFFuhz7BMsFUAAwLz97W1wZkHA+O1BXGTe9hGwH88RY9IGJZftA6wuGes/SqwWJk+hpb89KV1yR0woMrwz7ITZZeNBboXO7KyxUXrfiLtxeRD4t15tJkdRY0FbIZvNCktviTqjPXOtoVh7c3m3p/LR5vcbgYDxaZKk51DYruovfaRI96Q9CYCK2kVb2PIJ4BJhlsUPzw8AWNVxXFECYZNEZly10hqNh4Xophr/x7PWOmoPoKL2PvXLtOHzk0r4Tw6JqUaC+7/08U/+lhlSKFKLdCj7Xru57qB7gxgd+P3g4rfqjIHqiB4tlViqR5RV7V8Z/goBMJg2uOJXIJGvwEZF9nj+QDgaofImMiQmcLrE6IBCYEELYz274w/6ugSCcdwVIC/n3VHuNY4zJDKN7Q/FgI9/GBS7UoNhTaHF2JmSKR9ErMKpm3PYPZr/VnsaXjfCBO5bVquvWLzfJ9aQ4t+tsRkuAvQ= account: mediocregopher --- accessctl/access_control.go | 2 +- accessctl/access_control_test.go | 2 +- accessctl/filter.go | 2 +- accessctl/filter_sig_test.go | 2 +- cmd/dehub/cmd_commit.go | 4 ++-- cmd/dehub/cmd_hook.go | 3 ++- cmd/dehub/cmd_verify.go | 5 +++-- cmd/dehub/main.go | 5 +++-- commit.go | 8 ++++---- commit_change.go | 6 +++--- commit_change_test.go | 2 +- commit_comment.go | 2 +- commit_credential.go | 2 +- commit_credential_test.go | 2 +- commit_test.go | 2 +- config.go | 6 +++--- go.mod | 2 +- repo.go | 2 +- repo_test.go | 2 +- sigcred/credential.go | 2 +- sigcred/pgp.go | 4 ++-- sigcred/pgp_test.go | 2 +- sigcred/signifier.go | 4 ++-- 23 files changed, 38 insertions(+), 35 deletions(-) diff --git a/accessctl/access_control.go b/accessctl/access_control.go index 0ab442a..a47afb4 100644 --- a/accessctl/access_control.go +++ b/accessctl/access_control.go @@ -3,7 +3,7 @@ package accessctl import ( - "dehub/sigcred" + "dehub.dev/src/dehub.git/sigcred" "errors" "fmt" diff --git a/accessctl/access_control_test.go b/accessctl/access_control_test.go index 89f19f4..8b8da09 100644 --- a/accessctl/access_control_test.go +++ b/accessctl/access_control_test.go @@ -1,7 +1,7 @@ package accessctl import ( - "dehub/sigcred" + "dehub.dev/src/dehub.git/sigcred" "errors" "testing" ) diff --git a/accessctl/filter.go b/accessctl/filter.go index a0c6265..aade201 100644 --- a/accessctl/filter.go +++ b/accessctl/filter.go @@ -1,7 +1,7 @@ package accessctl import ( - "dehub/typeobj" + "dehub.dev/src/dehub.git/typeobj" "errors" "fmt" ) diff --git a/accessctl/filter_sig_test.go b/accessctl/filter_sig_test.go index 6982d8c..2cabf1d 100644 --- a/accessctl/filter_sig_test.go +++ b/accessctl/filter_sig_test.go @@ -1,7 +1,7 @@ package accessctl import ( - "dehub/sigcred" + "dehub.dev/src/dehub.git/sigcred" "testing" ) diff --git a/cmd/dehub/cmd_commit.go b/cmd/dehub/cmd_commit.go index 91d0f82..40265b1 100644 --- a/cmd/dehub/cmd_commit.go +++ b/cmd/dehub/cmd_commit.go @@ -2,11 +2,11 @@ package main import ( "context" - "dehub" "errors" "fmt" - "dehub/cmd/dehub/dcmd" + "dehub.dev/src/dehub.git" + "dehub.dev/src/dehub.git/cmd/dehub/dcmd" "gopkg.in/src-d/go-git.v4/plumbing" ) diff --git a/cmd/dehub/cmd_hook.go b/cmd/dehub/cmd_hook.go index 88a3b2d..1414150 100644 --- a/cmd/dehub/cmd_hook.go +++ b/cmd/dehub/cmd_hook.go @@ -3,13 +3,14 @@ package main import ( "bufio" "context" - "dehub/cmd/dehub/dcmd" "errors" "fmt" "io" "os" "strings" + "dehub.dev/src/dehub.git/cmd/dehub/dcmd" + "gopkg.in/src-d/go-git.v4/plumbing" ) diff --git a/cmd/dehub/cmd_verify.go b/cmd/dehub/cmd_verify.go index bdd416d..702a44e 100644 --- a/cmd/dehub/cmd_verify.go +++ b/cmd/dehub/cmd_verify.go @@ -2,10 +2,11 @@ package main import ( "context" - "dehub" - "dehub/cmd/dehub/dcmd" "fmt" + "dehub.dev/src/dehub.git" + "dehub.dev/src/dehub.git/cmd/dehub/dcmd" + "gopkg.in/src-d/go-git.v4/plumbing" ) diff --git a/cmd/dehub/main.go b/cmd/dehub/main.go index 5fc7d96..2492383 100644 --- a/cmd/dehub/main.go +++ b/cmd/dehub/main.go @@ -2,10 +2,11 @@ package main import ( "context" - "dehub" - "dehub/cmd/dehub/dcmd" "fmt" "os" + + "dehub.dev/src/dehub.git" + "dehub.dev/src/dehub.git/cmd/dehub/dcmd" ) type cmdCtxKey int diff --git a/commit.go b/commit.go index 932dced..80cbda6 100644 --- a/commit.go +++ b/commit.go @@ -2,10 +2,10 @@ package dehub import ( "bytes" - "dehub/accessctl" - "dehub/fs" - "dehub/sigcred" - "dehub/typeobj" + "dehub.dev/src/dehub.git/accessctl" + "dehub.dev/src/dehub.git/fs" + "dehub.dev/src/dehub.git/sigcred" + "dehub.dev/src/dehub.git/typeobj" "encoding/base64" "errors" "fmt" diff --git a/commit_change.go b/commit_change.go index 8ff815b..5afa89f 100644 --- a/commit_change.go +++ b/commit_change.go @@ -2,9 +2,9 @@ package dehub import ( "bytes" - "dehub/fs" - "dehub/sigcred" - "dehub/yamlutil" + "dehub.dev/src/dehub.git/fs" + "dehub.dev/src/dehub.git/sigcred" + "dehub.dev/src/dehub.git/yamlutil" "errors" "fmt" "sort" diff --git a/commit_change_test.go b/commit_change_test.go index 7c12107..0b5851c 100644 --- a/commit_change_test.go +++ b/commit_change_test.go @@ -1,7 +1,7 @@ package dehub import ( - "dehub/sigcred" + "dehub.dev/src/dehub.git/sigcred" "reflect" "strings" "testing" diff --git a/commit_comment.go b/commit_comment.go index 920855d..527e6cb 100644 --- a/commit_comment.go +++ b/commit_comment.go @@ -1,7 +1,7 @@ package dehub import ( - "dehub/yamlutil" + "dehub.dev/src/dehub.git/yamlutil" "fmt" "strings" diff --git a/commit_credential.go b/commit_credential.go index 7df6ffa..8175571 100644 --- a/commit_credential.go +++ b/commit_credential.go @@ -1,7 +1,7 @@ package dehub import ( - "dehub/yamlutil" + "dehub.dev/src/dehub.git/yamlutil" "encoding/base64" "fmt" "strings" diff --git a/commit_credential_test.go b/commit_credential_test.go index ad994f8..c99fb0e 100644 --- a/commit_credential_test.go +++ b/commit_credential_test.go @@ -1,7 +1,7 @@ package dehub import ( - "dehub/sigcred" + "dehub.dev/src/dehub.git/sigcred" "testing" "gopkg.in/src-d/go-git.v4/plumbing" diff --git a/commit_test.go b/commit_test.go index bfda7f5..46b6a1a 100644 --- a/commit_test.go +++ b/commit_test.go @@ -1,7 +1,7 @@ package dehub import ( - "dehub/sigcred" + "dehub.dev/src/dehub.git/sigcred" "testing" ) diff --git a/config.go b/config.go index aad4041..fd0484c 100644 --- a/config.go +++ b/config.go @@ -1,9 +1,9 @@ package dehub import ( - "dehub/accessctl" - "dehub/fs" - "dehub/sigcred" + "dehub.dev/src/dehub.git/accessctl" + "dehub.dev/src/dehub.git/fs" + "dehub.dev/src/dehub.git/sigcred" "errors" "fmt" diff --git a/go.mod b/go.mod index e86a563..82d24c5 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module dehub +module dehub.dev/src/dehub.git go 1.13 diff --git a/repo.go b/repo.go index 9d2cd22..035be81 100644 --- a/repo.go +++ b/repo.go @@ -2,7 +2,7 @@ package dehub import ( - "dehub/fs" + "dehub.dev/src/dehub.git/fs" "errors" "fmt" "path/filepath" diff --git a/repo_test.go b/repo_test.go index 3f5ab19..19775ee 100644 --- a/repo_test.go +++ b/repo_test.go @@ -2,7 +2,7 @@ package dehub import ( "bytes" - "dehub/sigcred" + "dehub.dev/src/dehub.git/sigcred" "errors" "io" "math/rand" diff --git a/sigcred/credential.go b/sigcred/credential.go index eee463b..8935aef 100644 --- a/sigcred/credential.go +++ b/sigcred/credential.go @@ -1,6 +1,6 @@ package sigcred -import "dehub/typeobj" +import "dehub.dev/src/dehub.git/typeobj" // Credential represents a credential which has been attached to a commit which // hopefully will allow it to be included in the main. Exactly one field tagged diff --git a/sigcred/pgp.go b/sigcred/pgp.go index c5ddea1..50c13c9 100644 --- a/sigcred/pgp.go +++ b/sigcred/pgp.go @@ -6,8 +6,8 @@ import ( "crypto/ecdsa" "crypto/elliptic" "crypto/sha256" - "dehub/fs" - "dehub/yamlutil" + "dehub.dev/src/dehub.git/fs" + "dehub.dev/src/dehub.git/yamlutil" "fmt" "io" "io/ioutil" diff --git a/sigcred/pgp_test.go b/sigcred/pgp_test.go index ecc5598..1465947 100644 --- a/sigcred/pgp_test.go +++ b/sigcred/pgp_test.go @@ -1,7 +1,7 @@ package sigcred import ( - "dehub/fs" + "dehub.dev/src/dehub.git/fs" "math/rand" "testing" "time" diff --git a/sigcred/signifier.go b/sigcred/signifier.go index f97e76c..8e69cc0 100644 --- a/sigcred/signifier.go +++ b/sigcred/signifier.go @@ -1,8 +1,8 @@ package sigcred import ( - "dehub/fs" - "dehub/typeobj" + "dehub.dev/src/dehub.git/fs" + "dehub.dev/src/dehub.git/typeobj" ) // Signifier reprsents a single signing method being defined in the Config. Only