refactor: collapse pkg/vfs/ → root for clean import path
Subsystem code lives in package vfs at repo root. Importers now use `github.com/hanzoai/vfs` (no /pkg/vfs/ nesting). Standalone shim moved to cmd/vfs/ where applicable. Per Hanzo Go-stdlib pattern: repo IS the package.
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ import (
|
||||
_ "github.com/hanzoai/vfs/pkg/backend/file" // registers file://
|
||||
_ "github.com/hanzoai/vfs/pkg/backend/s3" // registers s3://
|
||||
"github.com/hanzoai/vfs/pkg/mount"
|
||||
"github.com/hanzoai/vfs/pkg/vfs"
|
||||
"github.com/hanzoai/vfs"
|
||||
|
||||
"github.com/luxfi/age"
|
||||
)
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ import (
|
||||
"github.com/hanzoai/vfs/pkg/backend"
|
||||
_ "github.com/hanzoai/vfs/pkg/backend/file"
|
||||
_ "github.com/hanzoai/vfs/pkg/backend/s3"
|
||||
"github.com/hanzoai/vfs/pkg/vfs"
|
||||
"github.com/hanzoai/vfs"
|
||||
"github.com/hanzoai/zip"
|
||||
"github.com/hanzoai/zip/middleware"
|
||||
)
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
"github.com/hanzoai/vfs/pkg/backend"
|
||||
_ "github.com/hanzoai/vfs/pkg/backend/file"
|
||||
"github.com/hanzoai/vfs/pkg/vfs"
|
||||
"github.com/hanzoai/vfs"
|
||||
)
|
||||
|
||||
func newFS(t *testing.T) *vfs.FS {
|
||||
@@ -4,7 +4,7 @@
|
||||
//
|
||||
// Wire shape:
|
||||
//
|
||||
// import _ "github.com/hanzoai/vfs/pkg/vfs" // init() registers
|
||||
// import _ "github.com/hanzoai/vfs" // init() registers
|
||||
//
|
||||
// VFS has no public HTTP surface today — it's an S3-backed virtual
|
||||
// block filesystem driven through FUSE mounts and CLI/sidecar usage.
|
||||
@@ -34,7 +34,7 @@ import (
|
||||
)
|
||||
|
||||
// Version is overridden at build time via -ldflags
|
||||
// "-X github.com/hanzoai/vfs/pkg/vfs.Version=...".
|
||||
// "-X github.com/hanzoai/vfs.Version=...".
|
||||
var Version = "dev"
|
||||
|
||||
// mountedInstance is the VFS handle the HTTP routes operate against.
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
"github.com/hanzoai/cloud/pkg/cloud"
|
||||
"github.com/hanzoai/vfs/pkg/backend"
|
||||
_ "github.com/hanzoai/vfs/pkg/backend/file"
|
||||
"github.com/hanzoai/vfs/pkg/vfs"
|
||||
"github.com/hanzoai/vfs"
|
||||
"github.com/hanzoai/zip"
|
||||
)
|
||||
|
||||
@@ -23,7 +23,7 @@ import (
|
||||
"github.com/jacobsa/fuse/fuseops"
|
||||
"github.com/jacobsa/fuse/fuseutil"
|
||||
|
||||
"github.com/hanzoai/vfs/pkg/vfs"
|
||||
"github.com/hanzoai/vfs"
|
||||
)
|
||||
|
||||
// Mount mounts the given *vfs.FS at mountpoint and serves until the
|
||||
|
||||
@@ -33,7 +33,7 @@ import (
|
||||
"github.com/hanzoai/vfs/pkg/backend"
|
||||
_ "github.com/hanzoai/vfs/pkg/backend/file"
|
||||
"github.com/hanzoai/vfs/pkg/mount"
|
||||
"github.com/hanzoai/vfs/pkg/vfs"
|
||||
"github.com/hanzoai/vfs"
|
||||
)
|
||||
|
||||
func TestFUSESQLite(t *testing.T) {
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/hanzoai/vfs/pkg/vfs"
|
||||
"github.com/hanzoai/vfs"
|
||||
)
|
||||
|
||||
// Mount returns a build-tag error. Build with `-tags fuse` to enable.
|
||||
|
||||
@@ -26,7 +26,7 @@ import (
|
||||
"bazil.org/fuse"
|
||||
bzfs "bazil.org/fuse/fs"
|
||||
|
||||
"github.com/hanzoai/vfs/pkg/vfs"
|
||||
"github.com/hanzoai/vfs"
|
||||
)
|
||||
|
||||
// Mount mounts the given *vfs.FS at mountpoint and serves until the
|
||||
|
||||
@@ -40,7 +40,7 @@ import (
|
||||
|
||||
"github.com/hanzoai/vfs/pkg/backend"
|
||||
_ "github.com/hanzoai/vfs/pkg/backend/file"
|
||||
"github.com/hanzoai/vfs/pkg/vfs"
|
||||
"github.com/hanzoai/vfs"
|
||||
)
|
||||
|
||||
func TestSQLiteRoundTrip(t *testing.T) {
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/hanzoai/vfs/pkg/backend"
|
||||
_ "github.com/hanzoai/vfs/pkg/backend/file"
|
||||
"github.com/hanzoai/vfs/pkg/vfs"
|
||||
"github.com/hanzoai/vfs"
|
||||
)
|
||||
|
||||
func newRoundTripVFS(t *testing.T) *vfs.VFS {
|
||||
Reference in New Issue
Block a user