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:
Hanzo AI
2026-05-18 22:32:17 -07:00
parent 23a68a0710
commit f54c815cb8
19 changed files with 12 additions and 12 deletions
View File
View File
+1 -1
View File
@@ -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
View File
@@ -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"
)
View File
View File
View File
+1 -1
View File
@@ -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 {
+2 -2
View File
@@ -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.
+1 -1
View File
@@ -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"
)
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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) {
View File
+1 -1
View File
@@ -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 {