diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-05 21:27:17 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-05 21:27:17 +0800 |
commit | e0635b47c2f30719e1ea026812af85c988632c0e (patch) | |
tree | f112904c018dc294cf6f902423745f1f1932449c | |
parent | Export symbols from database.go (diff) | |
download | forge-e0635b47c2f30719e1ea026812af85c988632c0e.tar.gz forge-e0635b47c2f30719e1ea026812af85c988632c0e.tar.zst forge-e0635b47c2f30719e1ea026812af85c988632c0e.zip |
Move things to internal/v0.1.23
-rw-r--r-- | git_hooks_handle_linux.go | 4 | ||||
-rw-r--r-- | git_hooks_handle_other.go | 4 | ||||
-rw-r--r-- | git_plumbing.go | 2 | ||||
-rw-r--r-- | http_handle_branches.go | 2 | ||||
-rw-r--r-- | http_handle_group_index.go | 2 | ||||
-rw-r--r-- | http_handle_repo_commit.go | 2 | ||||
-rw-r--r-- | http_handle_repo_index.go | 4 | ||||
-rw-r--r-- | http_handle_repo_raw.go | 4 | ||||
-rw-r--r-- | http_handle_repo_tree.go | 4 | ||||
-rw-r--r-- | http_server.go | 2 | ||||
-rw-r--r-- | internal/ansiec/colors.go (renamed from ansiec/colors.go) | 0 | ||||
-rw-r--r-- | internal/ansiec/reset.go (renamed from ansiec/reset.go) | 0 | ||||
-rw-r--r-- | internal/ansiec/style.go (renamed from ansiec/style.go) | 0 | ||||
-rw-r--r-- | internal/git2c/client.go (renamed from git2c/client.go) | 0 | ||||
-rw-r--r-- | internal/git2c/cmd1.go (renamed from git2c/cmd1.go) | 0 | ||||
-rw-r--r-- | internal/git2c/cmd2.go (renamed from git2c/cmd2.go) | 0 | ||||
-rw-r--r-- | internal/git2c/git_types.go (renamed from git2c/git_types.go) | 0 | ||||
-rw-r--r-- | internal/misc/misc.go (renamed from misc/misc.go) | 0 | ||||
-rw-r--r-- | internal/misc/unsafe.go (renamed from misc/unsafe.go) | 0 | ||||
-rw-r--r-- | internal/misc/url.go (renamed from misc/url.go) | 0 | ||||
-rw-r--r-- | internal/render/chroma.go (renamed from render/chroma.go) | 0 | ||||
-rw-r--r-- | internal/render/escape.go (renamed from render/escape.go) | 0 | ||||
-rw-r--r-- | internal/render/readme.go (renamed from render/readme.go) | 2 | ||||
-rw-r--r-- | lmtp_handle_patch.go | 2 | ||||
-rw-r--r-- | lmtp_server.go | 2 | ||||
-rw-r--r-- | remote_url.go | 2 | ||||
-rw-r--r-- | resources.go | 2 | ||||
-rw-r--r-- | ssh_server.go | 4 | ||||
-rw-r--r-- | ssh_utils.go | 4 |
29 files changed, 24 insertions, 24 deletions
diff --git a/git_hooks_handle_linux.go b/git_hooks_handle_linux.go index 1101302..3d8c011 100644 --- a/git_hooks_handle_linux.go +++ b/git_hooks_handle_linux.go @@ -23,8 +23,8 @@ import ( "github.com/go-git/go-git/v5/plumbing" "github.com/go-git/go-git/v5/plumbing/object" "github.com/jackc/pgx/v5" - "go.lindenii.runxiyu.org/forge/ansiec" - "go.lindenii.runxiyu.org/forge/misc" + "go.lindenii.runxiyu.org/forge/internal/ansiec" + "go.lindenii.runxiyu.org/forge/internal/misc" ) var ( diff --git a/git_hooks_handle_other.go b/git_hooks_handle_other.go index 4a4328f..f125ecb 100644 --- a/git_hooks_handle_other.go +++ b/git_hooks_handle_other.go @@ -21,8 +21,8 @@ import ( "github.com/go-git/go-git/v5/plumbing" "github.com/go-git/go-git/v5/plumbing/object" "github.com/jackc/pgx/v5" - "go.lindenii.runxiyu.org/forge/ansiec" - "go.lindenii.runxiyu.org/forge/misc" + "go.lindenii.runxiyu.org/forge/internal/ansiec" + "go.lindenii.runxiyu.org/forge/internal/misc" ) var errGetFD = errors.New("unable to get file descriptor") diff --git a/git_plumbing.go b/git_plumbing.go index 440de7c..8c73a93 100644 --- a/git_plumbing.go +++ b/git_plumbing.go @@ -14,7 +14,7 @@ import ( "sort" "strings" - "go.lindenii.runxiyu.org/forge/misc" + "go.lindenii.runxiyu.org/forge/internal/misc" ) func writeTree(ctx context.Context, repoPath string, entries []treeEntry) (string, error) { diff --git a/http_handle_branches.go b/http_handle_branches.go index 96c4ac7..659287f 100644 --- a/http_handle_branches.go +++ b/http_handle_branches.go @@ -10,7 +10,7 @@ import ( "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/plumbing" "github.com/go-git/go-git/v5/plumbing/storer" - "go.lindenii.runxiyu.org/forge/misc" + "go.lindenii.runxiyu.org/forge/internal/misc" ) // httpHandleRepoBranches provides the branches page in repos. diff --git a/http_handle_group_index.go b/http_handle_group_index.go index e0e460d..3f6ed68 100644 --- a/http_handle_group_index.go +++ b/http_handle_group_index.go @@ -11,7 +11,7 @@ import ( "github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5/pgtype" - "go.lindenii.runxiyu.org/forge/misc" + "go.lindenii.runxiyu.org/forge/internal/misc" ) // httpHandleGroupIndex provides index pages for groups, which includes a list diff --git a/http_handle_repo_commit.go b/http_handle_repo_commit.go index 88ade4b..1042aff 100644 --- a/http_handle_repo_commit.go +++ b/http_handle_repo_commit.go @@ -13,7 +13,7 @@ import ( "github.com/go-git/go-git/v5/plumbing/filemode" "github.com/go-git/go-git/v5/plumbing/format/diff" "github.com/go-git/go-git/v5/plumbing/object" - "go.lindenii.runxiyu.org/forge/misc" + "go.lindenii.runxiyu.org/forge/internal/misc" ) // usableFilePatch is a [diff.FilePatch] that is structured in a way more diff --git a/http_handle_repo_index.go b/http_handle_repo_index.go index edba57b..40fd9b0 100644 --- a/http_handle_repo_index.go +++ b/http_handle_repo_index.go @@ -6,8 +6,8 @@ package forge import ( "net/http" - "go.lindenii.runxiyu.org/forge/git2c" - "go.lindenii.runxiyu.org/forge/render" + "go.lindenii.runxiyu.org/forge/internal/git2c" + "go.lindenii.runxiyu.org/forge/internal/render" ) type commitDisplay struct { diff --git a/http_handle_repo_raw.go b/http_handle_repo_raw.go index 7e19e02..b714397 100644 --- a/http_handle_repo_raw.go +++ b/http_handle_repo_raw.go @@ -9,8 +9,8 @@ import ( "net/http" "strings" - "go.lindenii.runxiyu.org/forge/git2c" - "go.lindenii.runxiyu.org/forge/misc" + "go.lindenii.runxiyu.org/forge/internal/git2c" + "go.lindenii.runxiyu.org/forge/internal/misc" ) // httpHandleRepoRaw serves raw files, or directory listings that point to raw diff --git a/http_handle_repo_tree.go b/http_handle_repo_tree.go index e8e5ff8..00c6821 100644 --- a/http_handle_repo_tree.go +++ b/http_handle_repo_tree.go @@ -8,8 +8,8 @@ import ( "net/http" "strings" - "go.lindenii.runxiyu.org/forge/git2c" - "go.lindenii.runxiyu.org/forge/render" + "go.lindenii.runxiyu.org/forge/internal/git2c" + "go.lindenii.runxiyu.org/forge/internal/render" ) // httpHandleRepoTree provides a friendly, syntax-highlighted view of diff --git a/http_server.go b/http_server.go index fdb55b4..cad3a3d 100644 --- a/http_server.go +++ b/http_server.go @@ -12,7 +12,7 @@ import ( "strings" "github.com/jackc/pgx/v5" - "go.lindenii.runxiyu.org/forge/misc" + "go.lindenii.runxiyu.org/forge/internal/misc" ) // ServeHTTP handles all incoming HTTP requests and routes them to the correct diff --git a/ansiec/colors.go b/internal/ansiec/colors.go index fa8ea4f..fa8ea4f 100644 --- a/ansiec/colors.go +++ b/internal/ansiec/colors.go diff --git a/ansiec/reset.go b/internal/ansiec/reset.go index 82a56d5..82a56d5 100644 --- a/ansiec/reset.go +++ b/internal/ansiec/reset.go diff --git a/ansiec/style.go b/internal/ansiec/style.go index 18050df..18050df 100644 --- a/ansiec/style.go +++ b/internal/ansiec/style.go diff --git a/git2c/client.go b/internal/git2c/client.go index c4c3ab4..c4c3ab4 100644 --- a/git2c/client.go +++ b/internal/git2c/client.go diff --git a/git2c/cmd1.go b/internal/git2c/cmd1.go index ba59b5a..ba59b5a 100644 --- a/git2c/cmd1.go +++ b/internal/git2c/cmd1.go diff --git a/git2c/cmd2.go b/internal/git2c/cmd2.go index c688dd2..c688dd2 100644 --- a/git2c/cmd2.go +++ b/internal/git2c/cmd2.go diff --git a/git2c/git_types.go b/internal/git2c/git_types.go index da90db6..da90db6 100644 --- a/git2c/git_types.go +++ b/internal/git2c/git_types.go diff --git a/misc/misc.go b/internal/misc/misc.go index ee0fd7a..ee0fd7a 100644 --- a/misc/misc.go +++ b/internal/misc/misc.go diff --git a/misc/unsafe.go b/internal/misc/unsafe.go index 6c2192f..6c2192f 100644 --- a/misc/unsafe.go +++ b/internal/misc/unsafe.go diff --git a/misc/url.go b/internal/misc/url.go index b77d8ce..b77d8ce 100644 --- a/misc/url.go +++ b/internal/misc/url.go diff --git a/render/chroma.go b/internal/render/chroma.go index c7d64ec..c7d64ec 100644 --- a/render/chroma.go +++ b/internal/render/chroma.go diff --git a/render/escape.go b/internal/render/escape.go index 44c56f3..44c56f3 100644 --- a/render/escape.go +++ b/internal/render/escape.go diff --git a/render/readme.go b/internal/render/readme.go index 1a153fb..aecd2f7 100644 --- a/render/readme.go +++ b/internal/render/readme.go @@ -13,7 +13,7 @@ import ( "github.com/niklasfasching/go-org/org" "github.com/yuin/goldmark" "github.com/yuin/goldmark/extension" - "go.lindenii.runxiyu.org/forge/misc" + "go.lindenii.runxiyu.org/forge/internal/misc" ) var markdownConverter = goldmark.New(goldmark.WithExtensions(extension.GFM)) diff --git a/lmtp_handle_patch.go b/lmtp_handle_patch.go index bf1b94c..6841444 100644 --- a/lmtp_handle_patch.go +++ b/lmtp_handle_patch.go @@ -16,7 +16,7 @@ import ( "github.com/bluekeyes/go-gitdiff/gitdiff" "github.com/go-git/go-git/v5" - "go.lindenii.runxiyu.org/forge/misc" + "go.lindenii.runxiyu.org/forge/internal/misc" ) func (s *Server) lmtpHandlePatch(session *lmtpSession, groupPath []string, repoName string, mbox io.Reader) (err error) { diff --git a/lmtp_server.go b/lmtp_server.go index 863a5c0..ae912c5 100644 --- a/lmtp_server.go +++ b/lmtp_server.go @@ -17,7 +17,7 @@ import ( "github.com/emersion/go-message" "github.com/emersion/go-smtp" - "go.lindenii.runxiyu.org/forge/misc" + "go.lindenii.runxiyu.org/forge/internal/misc" ) type lmtpHandler struct{} diff --git a/remote_url.go b/remote_url.go index 453ddeb..8fc5528 100644 --- a/remote_url.go +++ b/remote_url.go @@ -7,7 +7,7 @@ import ( "net/url" "strings" - "go.lindenii.runxiyu.org/forge/misc" + "go.lindenii.runxiyu.org/forge/internal/misc" ) // We don't use path.Join because it collapses multiple slashes into one. diff --git a/resources.go b/resources.go index ffe1008..0f2e1a9 100644 --- a/resources.go +++ b/resources.go @@ -10,7 +10,7 @@ import ( "github.com/tdewolff/minify/v2" "github.com/tdewolff/minify/v2/html" - "go.lindenii.runxiyu.org/forge/misc" + "go.lindenii.runxiyu.org/forge/internal/misc" ) //go:embed LICENSE source.tar.gz diff --git a/ssh_server.go b/ssh_server.go index ed303b9..07a1f34 100644 --- a/ssh_server.go +++ b/ssh_server.go @@ -11,8 +11,8 @@ import ( "strings" gliderSSH "github.com/gliderlabs/ssh" - "go.lindenii.runxiyu.org/forge/ansiec" - "go.lindenii.runxiyu.org/forge/misc" + "go.lindenii.runxiyu.org/forge/internal/ansiec" + "go.lindenii.runxiyu.org/forge/internal/misc" goSSH "golang.org/x/crypto/ssh" ) diff --git a/ssh_utils.go b/ssh_utils.go index 8f04209..7aeedff 100644 --- a/ssh_utils.go +++ b/ssh_utils.go @@ -10,8 +10,8 @@ import ( "io" "net/url" - "go.lindenii.runxiyu.org/forge/ansiec" - "go.lindenii.runxiyu.org/forge/misc" + "go.lindenii.runxiyu.org/forge/internal/ansiec" + "go.lindenii.runxiyu.org/forge/internal/misc" ) var errIllegalSSHRepoPath = errors.New("illegal SSH repo path") |