rename project to gitforgefs
This commit is contained in:
parent
d3e211e1cb
commit
46217c1a9d
|
@ -1,6 +0,0 @@
|
|||
FROM alpine
|
||||
|
||||
COPY ./bin/gitlabfs /usr/bin/gitlabfs
|
||||
|
||||
ENTRYPOINT ["gitlabfs"]
|
||||
|
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
|||
PROGRAM := gitlabfs
|
||||
PROGRAM := gitforgefs
|
||||
TARGET_DIR := ./bin
|
||||
VERSION := $(shell git describe --tags --always)
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ gitea:
|
|||
|
||||
git:
|
||||
# Path to the local repository cache. Repositories in the filesystem will symlink to a folder in this path.
|
||||
# Default to $XDG_DATA_HOME/gitlabfs, or $HOME/.local/share/gitlabfs if the environment variable $XDG_DATA_HOME is unset.
|
||||
# Default to $XDG_DATA_HOME/gitforgefs, or $HOME/.local/share/gitforgefs if the environment variable $XDG_DATA_HOME is unset.
|
||||
#clone_location:
|
||||
|
||||
# The name of the remote in the local clone.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
fs:
|
||||
mountpoint: /tmp/gitlabfs/test/mnt/gitlab
|
||||
mountpoint: /tmp/gitforgefs/test/mnt/gitlab
|
||||
mountoptions: nodev
|
||||
forge: gitlab
|
||||
|
||||
|
@ -36,7 +36,7 @@ gitea:
|
|||
include_current_user: true
|
||||
|
||||
git:
|
||||
clone_location: /tmp/gitlabfs/test/cache/gitlab
|
||||
clone_location: /tmp/gitforgefs/test/cache/gitlab
|
||||
remote: origin
|
||||
on_clone: clone
|
||||
auto_pull: false
|
||||
|
|
|
@ -83,7 +83,7 @@ func LoadConfig(configPath string) (*Config, error) {
|
|||
if dataHome == "" {
|
||||
dataHome = filepath.Join(os.Getenv("HOME"), ".local/share")
|
||||
}
|
||||
defaultCloneLocation := filepath.Join(dataHome, "gitlabfs")
|
||||
defaultCloneLocation := filepath.Join(dataHome, "gitforgefs")
|
||||
|
||||
config := &Config{
|
||||
FS: FSConfig{
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/badjware/gitlabfs/config"
|
||||
"github.com/badjware/gitforgefs/config"
|
||||
)
|
||||
|
||||
func TestLoadConfig(t *testing.T) {
|
||||
|
@ -16,7 +16,7 @@ func TestLoadConfig(t *testing.T) {
|
|||
input: "config.test.yaml",
|
||||
expected: &config.Config{
|
||||
FS: config.FSConfig{
|
||||
Mountpoint: "/tmp/gitlabfs/test/mnt/gitlab",
|
||||
Mountpoint: "/tmp/gitforgefs/test/mnt/gitlab",
|
||||
MountOptions: "nodev",
|
||||
Forge: "gitlab",
|
||||
},
|
||||
|
@ -47,7 +47,7 @@ func TestLoadConfig(t *testing.T) {
|
|||
IncludeCurrentUser: true,
|
||||
},
|
||||
Git: config.GitClientConfig{
|
||||
CloneLocation: "/tmp/gitlabfs/test/cache/gitlab",
|
||||
CloneLocation: "/tmp/gitforgefs/test/cache/gitlab",
|
||||
Remote: "origin",
|
||||
OnClone: "clone",
|
||||
AutoPull: false,
|
||||
|
|
|
@ -4,7 +4,7 @@ Wants=network-online.target
|
|||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=%h/go/bin/gitlabfs -config %E/gitlabfs/%i.yaml
|
||||
ExecStart=%h/go/bin/gitforgefs -config %E/gitforgefs/%i.yaml
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
|
@ -6,8 +6,8 @@ import (
|
|||
"sync"
|
||||
|
||||
"code.gitea.io/sdk/gitea"
|
||||
"github.com/badjware/gitlabfs/config"
|
||||
"github.com/badjware/gitlabfs/fstree"
|
||||
"github.com/badjware/gitforgefs/config"
|
||||
"github.com/badjware/gitforgefs/fstree"
|
||||
)
|
||||
|
||||
type giteaClient struct {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"sync"
|
||||
|
||||
"code.gitea.io/sdk/gitea"
|
||||
"github.com/badjware/gitlabfs/fstree"
|
||||
"github.com/badjware/gitforgefs/fstree"
|
||||
)
|
||||
|
||||
type Organization struct {
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"path"
|
||||
|
||||
"code.gitea.io/sdk/gitea"
|
||||
"github.com/badjware/gitlabfs/config"
|
||||
"github.com/badjware/gitforgefs/config"
|
||||
)
|
||||
|
||||
type Repository struct {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"sync"
|
||||
|
||||
"code.gitea.io/sdk/gitea"
|
||||
"github.com/badjware/gitlabfs/fstree"
|
||||
"github.com/badjware/gitforgefs/fstree"
|
||||
)
|
||||
|
||||
type User struct {
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"log/slog"
|
||||
"sync"
|
||||
|
||||
"github.com/badjware/gitlabfs/config"
|
||||
"github.com/badjware/gitlabfs/fstree"
|
||||
"github.com/badjware/gitforgefs/config"
|
||||
"github.com/badjware/gitforgefs/fstree"
|
||||
"github.com/google/go-github/v63/github"
|
||||
)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
"sync"
|
||||
|
||||
"github.com/badjware/gitlabfs/fstree"
|
||||
"github.com/badjware/gitforgefs/fstree"
|
||||
"github.com/google/go-github/v63/github"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package github
|
|||
import (
|
||||
"path"
|
||||
|
||||
"github.com/badjware/gitlabfs/config"
|
||||
"github.com/badjware/gitforgefs/config"
|
||||
"github.com/google/go-github/v63/github"
|
||||
)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
"sync"
|
||||
|
||||
"github.com/badjware/gitlabfs/fstree"
|
||||
"github.com/badjware/gitforgefs/fstree"
|
||||
"github.com/google/go-github/v63/github"
|
||||
)
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"slices"
|
||||
"sync"
|
||||
|
||||
"github.com/badjware/gitlabfs/config"
|
||||
"github.com/badjware/gitlabfs/fstree"
|
||||
"github.com/badjware/gitforgefs/config"
|
||||
"github.com/badjware/gitforgefs/fstree"
|
||||
"github.com/xanzy/go-gitlab"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"sync"
|
||||
|
||||
"github.com/badjware/gitlabfs/fstree"
|
||||
"github.com/badjware/gitforgefs/fstree"
|
||||
"github.com/xanzy/go-gitlab"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package gitlab
|
|||
import (
|
||||
"path"
|
||||
|
||||
"github.com/badjware/gitlabfs/config"
|
||||
"github.com/badjware/gitforgefs/config"
|
||||
"github.com/xanzy/go-gitlab"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"sync"
|
||||
|
||||
"github.com/badjware/gitlabfs/fstree"
|
||||
"github.com/badjware/gitforgefs/fstree"
|
||||
"github.com/xanzy/go-gitlab"
|
||||
)
|
||||
|
||||
|
|
|
@ -10,9 +10,9 @@ import (
|
|||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/badjware/gitlabfs/config"
|
||||
"github.com/badjware/gitlabfs/fstree"
|
||||
"github.com/badjware/gitlabfs/utils"
|
||||
"github.com/badjware/gitforgefs/config"
|
||||
"github.com/badjware/gitforgefs/fstree"
|
||||
"github.com/badjware/gitforgefs/utils"
|
||||
"github.com/vmihailenco/taskq/v3"
|
||||
"github.com/vmihailenco/taskq/v3/memqueue"
|
||||
)
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/badjware/gitlabfs/utils"
|
||||
"github.com/badjware/gitforgefs/utils"
|
||||
)
|
||||
|
||||
func (c *gitClient) clone(url string, defaultBranch string, dst string) error {
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/badjware/gitlabfs/utils"
|
||||
"github.com/badjware/gitforgefs/utils"
|
||||
)
|
||||
|
||||
func (c *gitClient) pull(repoPath string, defaultBranch string) error {
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module github.com/badjware/gitlabfs
|
||||
module github.com/badjware/gitforgefs
|
||||
|
||||
go 1.21
|
||||
|
||||
|
|
12
main.go
12
main.go
|
@ -7,12 +7,12 @@ import (
|
|||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/badjware/gitlabfs/config"
|
||||
"github.com/badjware/gitlabfs/forges/gitea"
|
||||
"github.com/badjware/gitlabfs/forges/github"
|
||||
"github.com/badjware/gitlabfs/forges/gitlab"
|
||||
"github.com/badjware/gitlabfs/fstree"
|
||||
"github.com/badjware/gitlabfs/git"
|
||||
"github.com/badjware/gitforgefs/config"
|
||||
"github.com/badjware/gitforgefs/forges/gitea"
|
||||
"github.com/badjware/gitforgefs/forges/github"
|
||||
"github.com/badjware/gitforgefs/forges/gitlab"
|
||||
"github.com/badjware/gitforgefs/fstree"
|
||||
"github.com/badjware/gitforgefs/git"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
Loading…
Reference in New Issue