Skip to content

Commit

Permalink
POC: $Fork
Browse files Browse the repository at this point in the history
  • Loading branch information
N-o-Z committed Nov 22, 2024
1 parent b351a64 commit 8ff40f2
Show file tree
Hide file tree
Showing 20 changed files with 1,300 additions and 13 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ require (
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/uuid v1.6.0
github.com/hashicorp/go-multierror v1.1.1
github.com/hnlq715/golang-lru v0.3.0
github.com/hnlq715/golang-lru v0.4.0
github.com/jamiealquiza/tachymeter v2.0.0+incompatible
github.com/jedib0t/go-pretty/v6 v6.5.9
github.com/manifoldco/promptui v0.9.0
Expand Down
3 changes: 1 addition & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,7 @@ github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/hnlq715/golang-lru v0.3.0 h1:eJtRD3bIw/dxwha16+urdY7bGfoCy/fAM+A/gahvYJM=
github.com/hnlq715/golang-lru v0.3.0/go.mod h1:RBkgDAtlu0SgTPvpb4VW2/RQnkCBMRD3Lr6B9RhsAS8=
github.com/hnlq715/golang-lru v0.4.0 h1:gyo/wIvLE6Upf1wucAfwTjpR+BQ5Lli2766H2MnNPv0=
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/huandu/xstrings v1.3.3 h1:/Gcsuc1x8JVbJ9/rlye4xZnVAbEkGauT8lbebqcQws4=
github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
Expand Down
6 changes: 6 additions & 0 deletions go.work
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
go 1.22.7

use (
.
./modules/cache
)
637 changes: 637 additions & 0 deletions go.work.sum

Large diffs are not rendered by default.

File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/cache/cache_test.go → modules/cache/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/treeverse/lakefs/pkg/cache"
"github.com/treeverse/lakefs/modules/cache"
)

func TestCache(t *testing.T) {
Expand Down
5 changes: 5 additions & 0 deletions modules/cache/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/treeverse/lakefs/modules/cache

go 1.22.7

// This module uses the go.work file to get all package dependencies from lakefs
6 changes: 6 additions & 0 deletions modules/cache/go.work
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
go 1.22.7

use (
.
../../../lakefs
)
634 changes: 634 additions & 0 deletions modules/cache/go.work.sum

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/treeverse/lakefs/pkg/cache"
"github.com/treeverse/lakefs/modules/cache"
"github.com/treeverse/lakefs/pkg/testutil"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/api/serve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (

"github.com/deepmap/oapi-codegen/pkg/securityprovider"
"github.com/spf13/viper"
"github.com/treeverse/lakefs/modules/cache"
"github.com/treeverse/lakefs/pkg/actions"
"github.com/treeverse/lakefs/pkg/api"
"github.com/treeverse/lakefs/pkg/api/apigen"
Expand All @@ -23,7 +24,6 @@ import (
authparams "github.com/treeverse/lakefs/pkg/auth/params"
"github.com/treeverse/lakefs/pkg/authentication"
"github.com/treeverse/lakefs/pkg/block"
"github.com/treeverse/lakefs/pkg/cache"
"github.com/treeverse/lakefs/pkg/catalog"
"github.com/treeverse/lakefs/pkg/config"
"github.com/treeverse/lakefs/pkg/graveler/settings"
Expand Down
2 changes: 1 addition & 1 deletion pkg/auth/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package auth
import (
"time"

"github.com/treeverse/lakefs/modules/cache"
"github.com/treeverse/lakefs/pkg/auth/model"
"github.com/treeverse/lakefs/pkg/cache"
)

type CredentialSetFn func() (*model.Credential, error)
Expand Down
2 changes: 1 addition & 1 deletion pkg/catalog/actions_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"io"
"time"

"github.com/treeverse/lakefs/modules/cache"
"github.com/treeverse/lakefs/pkg/block"
"github.com/treeverse/lakefs/pkg/cache"
"github.com/treeverse/lakefs/pkg/graveler"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/graveler/branch/protection_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"

"github.com/gobwas/glob"
"github.com/treeverse/lakefs/pkg/cache"
"github.com/treeverse/lakefs/modules/cache"
"github.com/treeverse/lakefs/pkg/graveler"
"github.com/treeverse/lakefs/pkg/graveler/settings"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/graveler/ref/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"time"

"github.com/hashicorp/go-multierror"
"github.com/treeverse/lakefs/modules/cache"
"github.com/treeverse/lakefs/pkg/batch"
"github.com/treeverse/lakefs/pkg/cache"
"github.com/treeverse/lakefs/pkg/distributed"
"github.com/treeverse/lakefs/pkg/graveler"
"github.com/treeverse/lakefs/pkg/httputil"
Expand Down
2 changes: 1 addition & 1 deletion pkg/graveler/settings/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"crypto/sha256"
"encoding/hex"
"errors"
"github.com/treeverse/lakefs/modules/cache"
"time"

"github.com/go-openapi/swag"
"github.com/treeverse/lakefs/pkg/cache"
"github.com/treeverse/lakefs/pkg/graveler"
"github.com/treeverse/lakefs/pkg/kv"
"github.com/treeverse/lakefs/pkg/logging"
Expand Down
2 changes: 1 addition & 1 deletion pkg/graveler/settings/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/go-test/deep"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/require"
"github.com/treeverse/lakefs/pkg/cache"
"github.com/treeverse/lakefs/modules/cache"
"github.com/treeverse/lakefs/pkg/graveler"
"github.com/treeverse/lakefs/pkg/graveler/mock"
"github.com/treeverse/lakefs/pkg/graveler/settings"
Expand Down
2 changes: 1 addition & 1 deletion pkg/pyramid/tier_fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"strings"

"github.com/google/uuid"
"github.com/treeverse/lakefs/modules/cache"
"github.com/treeverse/lakefs/pkg/block"
"github.com/treeverse/lakefs/pkg/cache"
"github.com/treeverse/lakefs/pkg/logging"
"github.com/treeverse/lakefs/pkg/pyramid/params"
)
Expand Down

0 comments on commit 8ff40f2

Please sign in to comment.