Browse Source

Revert "Rename go.yml to .github/workflows/go.yml (#14)"

This reverts commit f126f655867778806cdadfe092d3ee50ecb51c97.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
ron minnich 2 years ago
parent
commit
28163321c6

+ 3 - 3
cmd/tmpfs/tmpfs.go

@@ -8,9 +8,9 @@ import (
 	"os"
 	"sync"
 
-	"harvey-os.org/ninep/protocol"
-	"harvey-os.org/ninep/tmpfs"
-	"harvey-os.org/sys"
+	"harvey-os.org/internal/tmpfs"
+	"harvey-os.org/pkg/ninep/protocol"
+	"harvey-os.org/pkg/sys"
 )
 
 var (

+ 1 - 1
cmd/tmpfs/tmpfs_test.go

@@ -8,7 +8,7 @@ import (
 	"log"
 	"testing"
 
-	"harvey-os.org/ninep/tmpfs"
+	"harvey-os.org/internal/tmpfs"
 )
 
 // Lots of tests shamelessly lifted from the ninep/ufs code

+ 3 - 3
cmd/tmpfs/tmpfs_test_plan9.go

@@ -7,9 +7,9 @@ import (
 	"os"
 	"testing"
 
-	"harvey-os.org/ninep/protocol"
-	"harvey-os.org/ninep/tmpfs"
-	"harvey-os.org/sys"
+	"harvey-os.org/internal/tmpfs"
+	"harvey-os.org/pkg/ninep/protocol"
+	"harvey-os.org/pkg/sys"
 )
 
 func TestNwTmpfs(t *testing.T) {

+ 2 - 2
cmd/ufs/ufs.go

@@ -9,8 +9,8 @@ import (
 	"log"
 	"net"
 
-	"harvey-os.org/ninep/protocol"
-	"harvey-os.org/ninep/ufs"
+	"harvey-os.org/internal/ufs"
+	"harvey-os.org/pkg/ninep/protocol"
 )
 
 var (

+ 0 - 0
.github/workflows/go.yml → go.yml


+ 1 - 1
ninep/tmpfs/archive.go → internal/tmpfs/archive.go

@@ -10,7 +10,7 @@ import (
 	"strings"
 	"time"
 
-	"harvey-os.org/ninep/protocol"
+	"harvey-os.org/pkg/ninep/protocol"
 )
 
 // Archive contains the directories and files from a decompressed archive

+ 1 - 4
ninep/tmpfs/archive_test.go → internal/tmpfs/archive_test.go

@@ -65,10 +65,7 @@ func createTestImage() *bytes.Buffer {
 }
 
 func TestReadArchive(t *testing.T) {
-	arch, err := ReadImage(createTestImage())
-	if err != nil {
-		t.Fatal(err)
-	}
+	arch := ReadImage(createTestImage())
 
 	// Read root
 	root := arch.Root()

+ 2 - 2
ninep/ufs/filesystem.go → internal/ufs/filesystem.go

@@ -15,8 +15,8 @@ import (
 	"sync"
 	"time"
 
-	"harvey-os.org/ninep"
-	"harvey-os.org/ninep/protocol"
+	"harvey-os.org/pkg/ninep"
+	"harvey-os.org/pkg/ninep/protocol"
 )
 
 type file struct {

+ 2 - 2
ninep/ufs/filesystem_test.go → internal/ufs/filesystem_test.go

@@ -10,7 +10,7 @@ import (
 	"strings"
 	"testing"
 
-	"harvey-os.org/ninep/protocol"
+	"harvey-os.org/pkg/ninep/protocol"
 )
 
 func print(f string, args ...interface{}) {
@@ -79,7 +79,7 @@ func TestMount(t *testing.T) {
 	}
 	t.Logf("Client is %v", c.String())
 
-	n, err := NewUFS("", 0, func(l *protocol.NetListener) error {
+	n, err := NewUFS("", 0, func(l *protocol.Listener) error {
 		l.Trace = print //t.Logf
 		return nil
 	})

+ 0 - 0
ninep/ufs/filesystem_unix.go → internal/ufs/filesystem_unix.go


+ 0 - 0
ninep/ufs/filesystem_windows.go → internal/ufs/filesystem_windows.go


+ 1 - 1
ninep/ufs/ninep.go → internal/ufs/ninep.go

@@ -10,7 +10,7 @@ import (
 	"flag"
 	"os"
 
-	"harvey-os.org/ninep/protocol"
+	"harvey-os.org/pkg/ninep/protocol"
 )
 
 var (

+ 1 - 1
ninep/ufs/ninep_unix.go → internal/ufs/ninep_unix.go

@@ -12,7 +12,7 @@ import (
 	"os"
 	"syscall"
 
-	"harvey-os.org/ninep/protocol"
+	"harvey-os.org/pkg/ninep/protocol"
 )
 
 func fileInfoToQID(d os.FileInfo) protocol.QID {

+ 1 - 1
ninep/ufs/ninep_windows.go → internal/ufs/ninep_windows.go

@@ -11,7 +11,7 @@ package ufs
 import (
 	"os"
 
-	"harvey-os.org/ninep/protocol"
+	"harvey-os.org/pkg/ninep/protocol"
 )
 
 func fileInfoToQID(d os.FileInfo) protocol.QID {

+ 1 - 1
ninep/debug.go → pkg/ninep/debug.go

@@ -8,7 +8,7 @@ import (
 	"bytes"
 	"log"
 
-	"harvey-os.org/ninep/protocol"
+	"harvey-os.org/pkg/ninep/protocol"
 )
 
 type DebugFileServer struct {

+ 0 - 0
ninep/protocol/client.go → pkg/ninep/protocol/client.go


+ 1 - 1
ninep/protocol/gen.go → pkg/ninep/protocol/gen.go

@@ -33,7 +33,7 @@ import (
 	"text/template"
 
 	"golang.org/x/tools/imports"
-	"harvey-os.org/ninep/protocol"
+	"harvey-os.org/pkg/ninep/protocol"
 )
 
 const (

+ 0 - 0
ninep/protocol/genout.go → pkg/ninep/protocol/genout.go


+ 0 - 0
ninep/protocol/pprof.go → pkg/ninep/protocol/pprof.go


+ 0 - 0
ninep/protocol/protocol.go → pkg/ninep/protocol/protocol.go


+ 5 - 5
ninep/protocol/protocol_test.go → pkg/ninep/protocol/protocol_test.go

@@ -329,9 +329,9 @@ func TestTManyRPCs(t *testing.T) {
 	}
 	t.Logf("Client is %v", c.String())
 
-	s, err := NewNetListener(
+	s, err := NewListener(
 		func() NineServer { return newEcho() },
-		func(l *NetListener) error {
+		func(l *Listener) error {
 			l.Trace = print
 			return nil
 		})
@@ -368,9 +368,9 @@ func TestTMessages(t *testing.T) {
 	}
 	t.Logf("Client is %v", c.String())
 
-	s, err := NewNetListener(
+	s, err := NewListener(
 		func() NineServer { return newEcho() },
-		func(l *NetListener) error {
+		func(l *Listener) error {
 			l.Trace = print // t.Logf
 			return nil
 		})
@@ -512,7 +512,7 @@ func BenchmarkNull(b *testing.B) {
 	}
 	b.Logf("Client is %v", c.String())
 
-	s, err := NewNetListener(
+	s, err := NewListener(
 		func() NineServer {
 			return newEcho()
 		})

+ 0 - 0
ninep/protocol/server.go → pkg/ninep/protocol/server.go


+ 0 - 0
ninep/protocol/types.go → pkg/ninep/protocol/types.go


+ 0 - 0
sys/postpipe.go → pkg/sys/postpipe.go