Fix CI build paths and import formatting
- Fix import grouping in cmd/server/main.go, cmd/server/view.go, and sdk/go/examples/chat/main.go per goimports standards - Update CI workflow to build examples from correct paths (./sdk/go/examples/* instead of ./cmd/example_*) Co-authored-by: cognitive-glitch <152830360+cognitive-glitch@users.noreply.github.com>
copilot-swe-agent[bot] committed
Oct 22, 2025 at 16:37 UTC
b78ea428455ef325e461b679bfd3c70eab261c87
4 files changed
+8
-5
.github/workflows/ci.yml
+2
-2
@@ -90,10 +90,10 @@ jobs:
90
run: go build -v -trimpath -o bin/relaydns-server ./cmd/server
91
92
- name: Build example HTTP client
93
- run: go build -v -trimpath -o bin/relaydns-client ./cmd/example_http_client
93
+ run: go build -v -trimpath -o bin/relaydns-client ./sdk/go/examples/http-client
94
95
- name: Build example chat client
96
- run: go build -v -trimpath -o bin/relaydns-chat ./cmd/example_chat
96
+ run: go build -v -trimpath -o bin/relaydns-chat ./sdk/go/examples/chat
97
98
- name: Upload binaries
99
uses: actions/upload-artifact@v4
cmd/server/main.go
+2
-1
@@ -10,9 +10,10 @@ import (
10
"syscall"
11
"time"
12
13
- "github.com/gosuda/relaydns/relaydns"
13
"github.com/rs/zerolog/log"
14
"github.com/spf13/cobra"
15
+
16
+ "github.com/gosuda/relaydns/relaydns"
17
)
18
19
var rootCmd = &cobra.Command{
cmd/server/view.go
+2
-1
@@ -9,9 +9,10 @@ import (
9
"strings"
10
"time"
11
12
- "github.com/gosuda/relaydns/relaydns"
12
"github.com/libp2p/go-libp2p/core/host"
13
"github.com/rs/zerolog/log"
14
+
15
+ "github.com/gosuda/relaydns/relaydns"
16
)
17
18
// serveHTTP builds the HTTP mux and returns the server.
sdk/go/examples/chat/main.go
+2
-1
@@ -9,9 +9,10 @@ import (
9
"syscall"
10
"time"
11
12
- sdk "github.com/gosuda/relaydns/sdk/go"
12
"github.com/rs/zerolog/log"
13
"github.com/spf13/cobra"
14
+
15
+ sdk "github.com/gosuda/relaydns/sdk/go"
16
)
17
18
var rootCmd = &cobra.Command{