diff --git a/config/config.go b/config/config.go index 8792270..ec2db25 100755 --- a/config/config.go +++ b/config/config.go @@ -4,7 +4,7 @@ import ( "bytes" "fmt" "io/ioutil" - "local/args" + "gogs.inhome.blapointe.com/local/args" "log" "os" "path/filepath" diff --git a/config/rotate.py b/config/rotate.py index 45f9d8c..abbc7ea 100755 --- a/config/rotate.py +++ b/config/rotate.py @@ -1,4 +1,4 @@ -#! /usr/local/bin/python3 +#! /usr/gogs.inhome.blapointe.com/local/bin/python3 def main(args) : print("args", args) diff --git a/filetree/dirs_test.go b/filetree/dirs_test.go index 5c14fc2..39eb43e 100755 --- a/filetree/dirs_test.go +++ b/filetree/dirs_test.go @@ -1,7 +1,7 @@ package filetree import ( - "local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/config" "os" "testing" ) diff --git a/filetree/files_test.go b/filetree/files_test.go index f672427..55c4fd0 100755 --- a/filetree/files_test.go +++ b/filetree/files_test.go @@ -1,7 +1,7 @@ package filetree import ( - "local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/config" "os" "testing" ) diff --git a/filetree/path.go b/filetree/path.go index 135e9c8..b309f33 100755 --- a/filetree/path.go +++ b/filetree/path.go @@ -2,7 +2,7 @@ package filetree import ( "fmt" - "local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/config" "os" "path" "strings" diff --git a/filetree/path_test.go b/filetree/path_test.go index b466ca9..e84d0df 100755 --- a/filetree/path_test.go +++ b/filetree/path_test.go @@ -1,7 +1,7 @@ package filetree import ( - "local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/config" "testing" ) diff --git a/go.mod b/go.mod index eb4a2d4..cd84062 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module local/notes-server +module gogs.inhome.blapointe.com/local/notes-server go 1.16 @@ -8,26 +8,9 @@ require ( github.com/russross/blackfriday v1.6.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 github.com/yuin/goldmark v1.3.4-0.20210326114109-75d8cce5b78c - local/args v0.0.0-00010101000000-000000000000 - local/gziphttp v0.0.0-00010101000000-000000000000 - local/notes-server/notes/md v0.0.0-00010101000000-000000000000 - local/oauth2 v0.0.0-00010101000000-000000000000 - local/router v0.0.0-00010101000000-000000000000 - local/simpleserve v0.0.0-00010101000000-000000000000 + gogs.inhome.blapointe.com/local/args latest + gogs.inhome.blapointe.com/local/gziphttp latest + gogs.inhome.blapointe.com/local/oauth2 latest + gogs.inhome.blapointe.com/local/router latest + gogs.inhome.blapointe.com/local/simpleserve latest ) - -replace local/gziphttp => ../gziphttp - -replace local/logb => ../logb - -replace local/oauth2 => ../oauth2 - -replace local/simpleserve => ../simpleserve - -replace local/args => ../args - -replace local/router => ../router - -replace local/storage => ../storage - -replace local/notes-server/notes/md => ./notes/md diff --git a/main.go b/main.go index 76f9a77..33dfa1a 100755 --- a/main.go +++ b/main.go @@ -1,10 +1,10 @@ package main import ( - "local/notes-server/config" - "local/notes-server/notes/editor" - "local/notes-server/server" - "local/notes-server/versions" + "gogs.inhome.blapointe.com/local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/notes/editor" + "gogs.inhome.blapointe.com/local/notes-server/server" + "gogs.inhome.blapointe.com/local/notes-server/versions" "log" "net/http" "os" diff --git a/main_test.go b/main_test.go index 8b0e07d..01ba620 100755 --- a/main_test.go +++ b/main_test.go @@ -3,8 +3,8 @@ package main import ( "fmt" "io/ioutil" - "local/notes-server/config" - "local/notes-server/server" + "gogs.inhome.blapointe.com/local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/server" "log" "net/http" "net/http/httptest" diff --git a/notes/comment.go b/notes/comment.go index 3f2838b..0528a0e 100755 --- a/notes/comment.go +++ b/notes/comment.go @@ -7,7 +7,7 @@ import ( "fmt" "io" "io/ioutil" - "local/notes-server/filetree" + "gogs.inhome.blapointe.com/local/notes-server/filetree" "os" "path" "strings" diff --git a/notes/comment_test.go b/notes/comment_test.go index e71cbdb..e20019d 100644 --- a/notes/comment_test.go +++ b/notes/comment_test.go @@ -3,7 +3,7 @@ package notes import ( "bytes" "io/ioutil" - "local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/config" "os" "path" "strings" diff --git a/notes/create.go b/notes/create.go index 4835569..5a606d4 100755 --- a/notes/create.go +++ b/notes/create.go @@ -2,7 +2,7 @@ package notes import ( "errors" - "local/notes-server/filetree" + "gogs.inhome.blapointe.com/local/notes-server/filetree" "path" ) diff --git a/notes/create_test.go b/notes/create_test.go index 9d835a5..cdcfc1b 100755 --- a/notes/create_test.go +++ b/notes/create_test.go @@ -1,7 +1,7 @@ package notes import ( - "local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/config" "testing" ) diff --git a/notes/delete.go b/notes/delete.go index 860d8a2..6010f26 100755 --- a/notes/delete.go +++ b/notes/delete.go @@ -2,7 +2,7 @@ package notes import ( "fmt" - "local/notes-server/filetree" + "gogs.inhome.blapointe.com/local/notes-server/filetree" "os" ) diff --git a/notes/delete_test.go b/notes/delete_test.go index 4b7c5f5..ba474cc 100755 --- a/notes/delete_test.go +++ b/notes/delete_test.go @@ -2,7 +2,7 @@ package notes import ( "io/ioutil" - "local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/config" "os" "path" "testing" diff --git a/notes/dir.go b/notes/dir.go index b511815..5ef412f 100755 --- a/notes/dir.go +++ b/notes/dir.go @@ -3,7 +3,7 @@ package notes import ( "errors" "io/ioutil" - "local/notes-server/filetree" + "gogs.inhome.blapointe.com/local/notes-server/filetree" ) func (n *Notes) Dir(urlPath string) (string, string, error) { diff --git a/notes/dir_test.go b/notes/dir_test.go index f90332c..43f56b4 100755 --- a/notes/dir_test.go +++ b/notes/dir_test.go @@ -1,7 +1,7 @@ package notes import ( - "local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/config" "testing" ) diff --git a/notes/edit.go b/notes/edit.go index cfc1c5b..c1582ed 100755 --- a/notes/edit.go +++ b/notes/edit.go @@ -4,8 +4,8 @@ import ( "errors" "fmt" "io/ioutil" - "local/notes-server/filetree" - "local/notes-server/notes/editor" + "gogs.inhome.blapointe.com/local/notes-server/filetree" + "gogs.inhome.blapointe.com/local/notes-server/notes/editor" "strings" ) diff --git a/notes/edit_test.go b/notes/edit_test.go index 3bffa74..86b20fe 100755 --- a/notes/edit_test.go +++ b/notes/edit_test.go @@ -1,7 +1,7 @@ package notes import ( - "local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/config" "strings" "testing" ) diff --git a/notes/file.go b/notes/file.go index 2522781..312a719 100755 --- a/notes/file.go +++ b/notes/file.go @@ -7,8 +7,8 @@ import ( "fmt" "io" "io/ioutil" - "local/notes-server/filetree" - "local/notes-server/notes/md" + "gogs.inhome.blapointe.com/local/notes-server/filetree" + "gogs.inhome.blapointe.com/local/notes-server/notes/md" "path" "regexp" "strings" diff --git a/notes/file_test.go b/notes/file_test.go index 7b9ff28..c9c3039 100755 --- a/notes/file_test.go +++ b/notes/file_test.go @@ -3,7 +3,7 @@ package notes import ( "fmt" "io/ioutil" - "local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/config" "os" "path" "strings" diff --git a/notes/md/go.mod b/notes/md/go.mod index 8278a81..1c59a60 100644 --- a/notes/md/go.mod +++ b/notes/md/go.mod @@ -1,4 +1,4 @@ -module local/notes-server/notes/md +module gogs.inhome.blapointe.com/local/notes-server/notes/md go 1.18 diff --git a/notes/notes.go b/notes/notes.go index 8799ce6..b388c83 100755 --- a/notes/notes.go +++ b/notes/notes.go @@ -1,6 +1,6 @@ package notes -import "local/notes-server/config" +import "gogs.inhome.blapointe.com/local/notes-server/config" type Notes struct { root string diff --git a/notes/search.go b/notes/search.go index c33f51f..2e368e5 100755 --- a/notes/search.go +++ b/notes/search.go @@ -4,7 +4,7 @@ import ( "bufio" "errors" "io" - "local/notes-server/filetree" + "gogs.inhome.blapointe.com/local/notes-server/filetree" "log" "os" "path" diff --git a/notes/search_test.go b/notes/search_test.go index f395cce..ee0858c 100755 --- a/notes/search_test.go +++ b/notes/search_test.go @@ -45,7 +45,7 @@ func TestSearch(t *testing.T) { func TestSearchBigFiles(t *testing.T) { n := New() - n.root = "/usr/local/bin" + n.root = "/usr/gogs.inhome.blapointe.com/local/bin" _, err := n.Search("this file") if err != nil { diff --git a/notes/submit.go b/notes/submit.go index 178ac54..d8e77f3 100755 --- a/notes/submit.go +++ b/notes/submit.go @@ -2,7 +2,7 @@ package notes import ( "io/ioutil" - "local/notes-server/filetree" + "gogs.inhome.blapointe.com/local/notes-server/filetree" "os" "path" ) diff --git a/notes/submit_test.go b/notes/submit_test.go index b39cdb7..611c12c 100755 --- a/notes/submit_test.go +++ b/notes/submit_test.go @@ -2,7 +2,7 @@ package notes import ( "io/ioutil" - "local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/config" "os" "testing" ) diff --git a/server/attach.go b/server/attach.go index 80763ae..dcce4bd 100755 --- a/server/attach.go +++ b/server/attach.go @@ -3,7 +3,7 @@ package server import ( "errors" "io" - "local/notes-server/filetree" + "gogs.inhome.blapointe.com/local/notes-server/filetree" "net/http" "os" "path" diff --git a/server/comment.go b/server/comment.go index 6aa944f..21a71b0 100755 --- a/server/comment.go +++ b/server/comment.go @@ -2,7 +2,7 @@ package server import ( "html" - "local/notes-server/filetree" + "gogs.inhome.blapointe.com/local/notes-server/filetree" "net/http" "path" "strconv" diff --git a/server/edit.go b/server/edit.go index d86731b..9d43954 100755 --- a/server/edit.go +++ b/server/edit.go @@ -2,7 +2,7 @@ package server import ( "fmt" - "local/notes-server/filetree" + "gogs.inhome.blapointe.com/local/notes-server/filetree" "net/http" ) diff --git a/server/html.go b/server/html.go index 57a4c47..39eee0d 100755 --- a/server/html.go +++ b/server/html.go @@ -2,7 +2,7 @@ package server import ( "fmt" - "local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/config" "net/http" ) diff --git a/server/html_test.go b/server/html_test.go index ef81851..ee8fc9e 100755 --- a/server/html_test.go +++ b/server/html_test.go @@ -1,7 +1,7 @@ package server import ( - "local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/config" "net/http/httptest" "regexp" "strings" diff --git a/server/notes.go b/server/notes.go index f230f48..ea1f80e 100755 --- a/server/notes.go +++ b/server/notes.go @@ -2,8 +2,8 @@ package server import ( "fmt" - "local/notes-server/config" - "local/notes-server/filetree" + "gogs.inhome.blapointe.com/local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/filetree" "net/http" "path" "regexp" diff --git a/server/raw.go b/server/raw.go index 655a23b..bc0f1fc 100755 --- a/server/raw.go +++ b/server/raw.go @@ -2,8 +2,8 @@ package server import ( "io" - "local/notes-server/filetree" - "local/simpleserve/simpleserve" + "gogs.inhome.blapointe.com/local/notes-server/filetree" + "gogs.inhome.blapointe.com/local/simpleserve/simpleserve" "net/http" "os" ) diff --git a/server/routes.go b/server/routes.go index d110a59..399391e 100755 --- a/server/routes.go +++ b/server/routes.go @@ -2,9 +2,9 @@ package server import ( "fmt" - "local/gziphttp" - "local/notes-server/config" - "local/router" + "gogs.inhome.blapointe.com/local/gziphttp" + "gogs.inhome.blapointe.com/local/notes-server/config" + "gogs.inhome.blapointe.com/local/router" "net/http" "path/filepath" "strings" diff --git a/server/search.go b/server/search.go index 706e78f..e599c2e 100755 --- a/server/search.go +++ b/server/search.go @@ -3,7 +3,7 @@ package server import ( "fmt" "html" - "local/notes-server/filetree" + "gogs.inhome.blapointe.com/local/notes-server/filetree" "net/http" ) diff --git a/server/server.go b/server/server.go index f2a60e9..4cd3e6e 100755 --- a/server/server.go +++ b/server/server.go @@ -1,10 +1,10 @@ package server import ( - "local/notes-server/config" - "local/notes-server/notes" - "local/oauth2/oauth2client" - "local/router" + "gogs.inhome.blapointe.com/local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/notes" + "gogs.inhome.blapointe.com/local/oauth2/oauth2client" + "gogs.inhome.blapointe.com/local/router" "log" "net/http" ) diff --git a/server/submit.go b/server/submit.go index 0873eb3..c456bbc 100755 --- a/server/submit.go +++ b/server/submit.go @@ -4,7 +4,7 @@ import ( "bytes" "fmt" "html" - "local/notes-server/filetree" + "gogs.inhome.blapointe.com/local/notes-server/filetree" "net/http" "path" "strings" diff --git a/versions/.versions.go b/versions/.versions.go index 67edd33..211d39f 100755 --- a/versions/.versions.go +++ b/versions/.versions.go @@ -1,7 +1,7 @@ package versions import ( - "local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/config" "time" git "gopkg.in/src-d/go-git.v4" diff --git a/versions/.versions_test.go b/versions/.versions_test.go index 5ca1a59..4eb3440 100755 --- a/versions/.versions_test.go +++ b/versions/.versions_test.go @@ -2,7 +2,7 @@ package versions import ( "io/ioutil" - "local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/config" "os" "path" "testing" diff --git a/versions/max_file_size.go b/versions/max_file_size.go index 59d6efe..6fbfa9e 100644 --- a/versions/max_file_size.go +++ b/versions/max_file_size.go @@ -2,7 +2,7 @@ package versions import ( "fmt" - "local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/config" "strings" ) diff --git a/versions/versions.go b/versions/versions.go index 4f3339e..24d76a2 100755 --- a/versions/versions.go +++ b/versions/versions.go @@ -3,7 +3,7 @@ package versions import ( "fmt" "io/ioutil" - "local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/config" "log" "os" "os/exec" diff --git a/versions/versions_test.go b/versions/versions_test.go index 6c8ff1d..7cdd5c0 100755 --- a/versions/versions_test.go +++ b/versions/versions_test.go @@ -2,7 +2,7 @@ package versions import ( "io/ioutil" - "local/notes-server/config" + "gogs.inhome.blapointe.com/local/notes-server/config" "os" "path" "testing"