From c348363f5cef4fb7dca1b5d1206fd87dabf3310f Mon Sep 17 00:00:00 2001 From: Dustin Stiles Date: Tue, 1 Apr 2025 10:57:37 -0400 Subject: [PATCH] chore(project): change module name --- README.md | 4 ++-- cmd/dsfx/main.go | 6 +++--- cmd/dsfxctl/main.go | 6 +++--- docs/internals/axioms.md | 2 +- docs/operating/deploying.md | 2 +- docs/operating/installing.md | 2 +- go.mod | 2 +- internal/client/client.go | 12 ++++++------ internal/lib/crypto/encryption/aead_test.go | 2 +- internal/lib/disk/default_test.go | 2 +- internal/lib/frame/frame_test.go | 2 +- internal/lib/handshake/handshake.go | 12 ++++++------ internal/lib/handshake/handshake_test.go | 4 ++-- internal/lib/network/addr.go | 2 +- internal/lib/network/conn.go | 4 ++-- internal/lib/network/listener.go | 4 ++-- internal/lib/network/network.go | 4 ++-- internal/lib/storage/scoped/scoped.go | 2 +- internal/lib/storage/scoped/scoped_test.go | 4 ++-- internal/lib/system/default.go | 2 +- internal/lib/system/system.go | 2 +- internal/peer/peer.go | 12 ++++++------ internal/sim/disk.go | 2 +- internal/sim/system.go | 4 ++-- internal/tool/genkey/main.go | 2 +- 25 files changed, 51 insertions(+), 51 deletions(-) diff --git a/README.md b/README.md index ad96f3b..83d839c 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,9 @@ ```bash # Run a server -go run numenor-labs.us/dsfx/dsfx/cmd/dsfx@main +go run git.numenor-labs.us/dsfx/cmd/dsfx@main # serving: dsfx://0.0.0.0:8000# # Get the client -go run numenor-labs.us/dsfx/dsfx/cmd/dsfxctl@main test dsfx://0.0.0.0:8000# +go run git.numenor-labs.us/dsfx/cmd/dsfxctl@main test dsfx://0.0.0.0:8000# ``` diff --git a/cmd/dsfx/main.go b/cmd/dsfx/main.go index ae8808c..e63e994 100644 --- a/cmd/dsfx/main.go +++ b/cmd/dsfx/main.go @@ -3,9 +3,9 @@ package main import ( "context" - "numenor-labs.us/dsfx/dsfx/internal/lib/disk" - "numenor-labs.us/dsfx/dsfx/internal/lib/system" - "numenor-labs.us/dsfx/dsfx/internal/peer" + "git.numenor-labs.us/dsfx/internal/lib/disk" + "git.numenor-labs.us/dsfx/internal/lib/system" + "git.numenor-labs.us/dsfx/internal/peer" ) func main() { diff --git a/cmd/dsfxctl/main.go b/cmd/dsfxctl/main.go index 6af181a..d0815d9 100644 --- a/cmd/dsfxctl/main.go +++ b/cmd/dsfxctl/main.go @@ -3,9 +3,9 @@ package main import ( "context" - "numenor-labs.us/dsfx/dsfx/internal/client" - "numenor-labs.us/dsfx/dsfx/internal/lib/disk" - "numenor-labs.us/dsfx/dsfx/internal/lib/system" + "git.numenor-labs.us/dsfx/internal/client" + "git.numenor-labs.us/dsfx/internal/lib/disk" + "git.numenor-labs.us/dsfx/internal/lib/system" ) func main() { diff --git a/docs/internals/axioms.md b/docs/internals/axioms.md index 3c93e18..e999595 100644 --- a/docs/internals/axioms.md +++ b/docs/internals/axioms.md @@ -134,7 +134,7 @@ can slow down the server. To mitigate this, we recommend: ## Handling Errors Errors must always be handled explicitly - they are never ignored. In a function that can produce -more than one error, wrap the errors using `fmt.Errorf("%v")` to provide additional debugging context +more than one error, wrap the errors using `fmt.Errorf("%w")` to provide additional debugging context in a way that preserves the original error for use with `errors.Is` and `errors.As`. This allows for better error handling and debugging, especially in complex systems where multiple errors can occur. diff --git a/docs/operating/deploying.md b/docs/operating/deploying.md index bd74bd5..999539a 100644 --- a/docs/operating/deploying.md +++ b/docs/operating/deploying.md @@ -8,7 +8,7 @@ server on your deployment machine. If you opted to _not_ install dsfx locally, then you can run it directly with the go toolchain. ```bash -go run numenor-labs.us/dsfx/dsfx/cmd/dsfx@main +go run git.numenor-labs.us/dsfx/cmd/dsfx@main ``` Otherwise, you can run the server with the `dsfx` command. For those who built diff --git a/docs/operating/installing.md b/docs/operating/installing.md index f18f852..4cde897 100644 --- a/docs/operating/installing.md +++ b/docs/operating/installing.md @@ -44,7 +44,7 @@ Now that you have the go toolchain set up with access to our repository, you can project by using the `go install` command. ```bash -go install numenor-labs.us/dsfx/dsfx/cmd/dsfx@main +go install git.numenor-labs.us/dsfx/cmd/dsfx@main ``` Assuming that you have the `GOPATH` environment variable set up correctly, you will now be able to diff --git a/go.mod b/go.mod index 3651c37..996f458 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module numenor-labs.us/dsfx/dsfx +module git.numenor-labs.us/dsfx go 1.24.1 diff --git a/internal/client/client.go b/internal/client/client.go index c6357aa..3cdd7c8 100644 --- a/internal/client/client.go +++ b/internal/client/client.go @@ -13,12 +13,12 @@ import ( "net" "os" - "numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity" - "numenor-labs.us/dsfx/dsfx/internal/lib/disk" - "numenor-labs.us/dsfx/dsfx/internal/lib/logging" - "numenor-labs.us/dsfx/dsfx/internal/lib/network" - "numenor-labs.us/dsfx/dsfx/internal/lib/storage/scoped" - "numenor-labs.us/dsfx/dsfx/internal/lib/system" + "git.numenor-labs.us/dsfx/internal/lib/crypto/identity" + "git.numenor-labs.us/dsfx/internal/lib/disk" + "git.numenor-labs.us/dsfx/internal/lib/logging" + "git.numenor-labs.us/dsfx/internal/lib/network" + "git.numenor-labs.us/dsfx/internal/lib/storage/scoped" + "git.numenor-labs.us/dsfx/internal/lib/system" ) const ( diff --git a/internal/lib/crypto/encryption/aead_test.go b/internal/lib/crypto/encryption/aead_test.go index 7ed12b8..f1cda65 100644 --- a/internal/lib/crypto/encryption/aead_test.go +++ b/internal/lib/crypto/encryption/aead_test.go @@ -4,7 +4,7 @@ import ( "crypto/rand" "testing" - "numenor-labs.us/dsfx/dsfx/internal/lib/crypto/encryption" + "git.numenor-labs.us/dsfx/internal/lib/crypto/encryption" ) func TestEncryptDecrypt(t *testing.T) { diff --git a/internal/lib/disk/default_test.go b/internal/lib/disk/default_test.go index 1c6571c..37f6967 100644 --- a/internal/lib/disk/default_test.go +++ b/internal/lib/disk/default_test.go @@ -3,7 +3,7 @@ package disk_test import ( "testing" - "numenor-labs.us/dsfx/dsfx/internal/lib/disk" + "git.numenor-labs.us/dsfx/internal/lib/disk" ) func TestDefaultDisk(t *testing.T) { diff --git a/internal/lib/frame/frame_test.go b/internal/lib/frame/frame_test.go index 4eb4634..d390ff8 100644 --- a/internal/lib/frame/frame_test.go +++ b/internal/lib/frame/frame_test.go @@ -5,7 +5,7 @@ import ( "bytes" "testing" - "numenor-labs.us/dsfx/dsfx/internal/lib/frame" + "git.numenor-labs.us/dsfx/internal/lib/frame" ) func TestLenPrefixedWriteTo(t *testing.T) { diff --git a/internal/lib/handshake/handshake.go b/internal/lib/handshake/handshake.go index 75f9c48..5e4b0b1 100644 --- a/internal/lib/handshake/handshake.go +++ b/internal/lib/handshake/handshake.go @@ -10,12 +10,12 @@ import ( "io" "log/slog" - "numenor-labs.us/dsfx/dsfx/internal/lib/assert" - "numenor-labs.us/dsfx/dsfx/internal/lib/buffer" - "numenor-labs.us/dsfx/dsfx/internal/lib/crypto/encryption" - "numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity" - "numenor-labs.us/dsfx/dsfx/internal/lib/crypto/keyexchange" - "numenor-labs.us/dsfx/dsfx/internal/lib/logging" + "git.numenor-labs.us/dsfx/internal/lib/assert" + "git.numenor-labs.us/dsfx/internal/lib/buffer" + "git.numenor-labs.us/dsfx/internal/lib/crypto/encryption" + "git.numenor-labs.us/dsfx/internal/lib/crypto/identity" + "git.numenor-labs.us/dsfx/internal/lib/crypto/keyexchange" + "git.numenor-labs.us/dsfx/internal/lib/logging" ) const ( diff --git a/internal/lib/handshake/handshake_test.go b/internal/lib/handshake/handshake_test.go index 32d4b95..dcac513 100644 --- a/internal/lib/handshake/handshake_test.go +++ b/internal/lib/handshake/handshake_test.go @@ -10,8 +10,8 @@ import ( "sync" "testing" - "numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity" - "numenor-labs.us/dsfx/dsfx/internal/lib/handshake" + "git.numenor-labs.us/dsfx/internal/lib/crypto/identity" + "git.numenor-labs.us/dsfx/internal/lib/handshake" ) func TestHandshake(t *testing.T) { diff --git a/internal/lib/network/addr.go b/internal/lib/network/addr.go index 29f80e0..433f79a 100644 --- a/internal/lib/network/addr.go +++ b/internal/lib/network/addr.go @@ -8,7 +8,7 @@ import ( "net" "strings" - "numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity" + "git.numenor-labs.us/dsfx/internal/lib/crypto/identity" ) var ( diff --git a/internal/lib/network/conn.go b/internal/lib/network/conn.go index 100418f..9ba50a6 100644 --- a/internal/lib/network/conn.go +++ b/internal/lib/network/conn.go @@ -5,8 +5,8 @@ import ( "net" "time" - "numenor-labs.us/dsfx/dsfx/internal/lib/crypto/encryption" - "numenor-labs.us/dsfx/dsfx/internal/lib/frame" + "git.numenor-labs.us/dsfx/internal/lib/crypto/encryption" + "git.numenor-labs.us/dsfx/internal/lib/frame" ) // Conn is a wrapper around net.TCPConn that encrypts and decrypts data as it is diff --git a/internal/lib/network/listener.go b/internal/lib/network/listener.go index b54b70b..54b8f6d 100644 --- a/internal/lib/network/listener.go +++ b/internal/lib/network/listener.go @@ -6,8 +6,8 @@ import ( "log/slog" "net" - "numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity" - "numenor-labs.us/dsfx/dsfx/internal/lib/handshake" + "git.numenor-labs.us/dsfx/internal/lib/crypto/identity" + "git.numenor-labs.us/dsfx/internal/lib/handshake" ) // Listener ... diff --git a/internal/lib/network/network.go b/internal/lib/network/network.go index d29f1c0..076fbec 100644 --- a/internal/lib/network/network.go +++ b/internal/lib/network/network.go @@ -5,8 +5,8 @@ import ( "crypto/ed25519" "net" - "numenor-labs.us/dsfx/dsfx/internal/lib/handshake" - "numenor-labs.us/dsfx/dsfx/internal/lib/logging" + "git.numenor-labs.us/dsfx/internal/lib/handshake" + "git.numenor-labs.us/dsfx/internal/lib/logging" ) // Dial ... diff --git a/internal/lib/storage/scoped/scoped.go b/internal/lib/storage/scoped/scoped.go index ad1497b..8dedf5c 100644 --- a/internal/lib/storage/scoped/scoped.go +++ b/internal/lib/storage/scoped/scoped.go @@ -4,7 +4,7 @@ import ( "io/fs" "path/filepath" - "numenor-labs.us/dsfx/dsfx/internal/lib/disk" + "git.numenor-labs.us/dsfx/internal/lib/disk" ) // StorageScope is an interface that extends the disk.Disk interface by ensuring diff --git a/internal/lib/storage/scoped/scoped_test.go b/internal/lib/storage/scoped/scoped_test.go index 8d11f67..2d8c330 100644 --- a/internal/lib/storage/scoped/scoped_test.go +++ b/internal/lib/storage/scoped/scoped_test.go @@ -4,8 +4,8 @@ import ( "io/fs" "testing" - "numenor-labs.us/dsfx/dsfx/internal/lib/disk" - "numenor-labs.us/dsfx/dsfx/internal/lib/storage/scoped" + "git.numenor-labs.us/dsfx/internal/lib/disk" + "git.numenor-labs.us/dsfx/internal/lib/storage/scoped" ) func TestScopedStorage_Scope(t *testing.T) { diff --git a/internal/lib/system/default.go b/internal/lib/system/default.go index d682180..2ab9fa9 100644 --- a/internal/lib/system/default.go +++ b/internal/lib/system/default.go @@ -3,7 +3,7 @@ package system import ( "os" - "numenor-labs.us/dsfx/dsfx/internal/lib/disk" + "git.numenor-labs.us/dsfx/internal/lib/disk" ) // Default returns a default implementation of the System interface. diff --git a/internal/lib/system/system.go b/internal/lib/system/system.go index 5c912a6..feedb09 100644 --- a/internal/lib/system/system.go +++ b/internal/lib/system/system.go @@ -1,7 +1,7 @@ package system import ( - "numenor-labs.us/dsfx/dsfx/internal/lib/disk" + "git.numenor-labs.us/dsfx/internal/lib/disk" ) type System interface { diff --git a/internal/peer/peer.go b/internal/peer/peer.go index 4d879bd..d5a40c1 100644 --- a/internal/peer/peer.go +++ b/internal/peer/peer.go @@ -13,12 +13,12 @@ import ( "os" "strings" - "numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity" - "numenor-labs.us/dsfx/dsfx/internal/lib/disk" - "numenor-labs.us/dsfx/dsfx/internal/lib/logging" - "numenor-labs.us/dsfx/dsfx/internal/lib/network" - "numenor-labs.us/dsfx/dsfx/internal/lib/storage/scoped" - "numenor-labs.us/dsfx/dsfx/internal/lib/system" + "git.numenor-labs.us/dsfx/internal/lib/crypto/identity" + "git.numenor-labs.us/dsfx/internal/lib/disk" + "git.numenor-labs.us/dsfx/internal/lib/logging" + "git.numenor-labs.us/dsfx/internal/lib/network" + "git.numenor-labs.us/dsfx/internal/lib/storage/scoped" + "git.numenor-labs.us/dsfx/internal/lib/system" ) const ( diff --git a/internal/sim/disk.go b/internal/sim/disk.go index 929f262..d3aef0e 100644 --- a/internal/sim/disk.go +++ b/internal/sim/disk.go @@ -8,7 +8,7 @@ import ( "sync" "time" - "numenor-labs.us/dsfx/dsfx/internal/lib/disk" + "git.numenor-labs.us/dsfx/internal/lib/disk" ) // Tolerance defines simulation tolerance parameters. diff --git a/internal/sim/system.go b/internal/sim/system.go index ba3c861..b4a8475 100644 --- a/internal/sim/system.go +++ b/internal/sim/system.go @@ -6,8 +6,8 @@ import ( "sync" "time" - "numenor-labs.us/dsfx/dsfx/internal/lib/disk" - "numenor-labs.us/dsfx/dsfx/internal/lib/system" + "git.numenor-labs.us/dsfx/internal/lib/disk" + "git.numenor-labs.us/dsfx/internal/lib/system" ) // SimSystem is a simulated implementation of system.System. diff --git a/internal/tool/genkey/main.go b/internal/tool/genkey/main.go index 0f2bc94..952ae2b 100644 --- a/internal/tool/genkey/main.go +++ b/internal/tool/genkey/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity" + "git.numenor-labs.us/dsfx/internal/lib/crypto/identity" ) func main() {