Skip to content

Commit 2db285c

Browse files
authored
🔧 Use github.com/EinStack/glide as module name to support go install cmd
1 parent cf137da commit 2db285c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+261
-188
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module glide
1+
module github.com/EinStack/glide
22

33
go 1.22.1
44

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"log"
55

6-
"glide/pkg/cmd"
6+
"github.com/EinStack/glide/pkg/cmd"
77
)
88

99
// @title Glide

pkg/api/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package api
22

3-
import "glide/pkg/api/http"
3+
import "github.com/EinStack/glide/pkg/api/http"
44

55
// Config defines configuration for all API types we support (e.g. HTTP, gRPC)
66
type Config struct {

pkg/api/http/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"time"
66

7+
"github.com/EinStack/glide/pkg/version"
78
"github.com/gofiber/fiber/v2"
8-
"glide/pkg/version"
99
)
1010

1111
type ServerConfig struct {

pkg/api/http/handlers.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ import (
55
"errors"
66
"sync"
77

8-
"glide/pkg/telemetry"
8+
"github.com/EinStack/glide/pkg/telemetry"
99
"go.uber.org/zap"
1010

11+
"github.com/EinStack/glide/pkg/routers"
12+
13+
"github.com/EinStack/glide/pkg/api/schemas"
14+
1115
"github.com/gofiber/contrib/websocket"
1216
"github.com/gofiber/fiber/v2"
13-
"glide/pkg/api/schemas"
14-
"glide/pkg/routers"
1517
)
1618

1719
type Handler = func(c *fiber.Ctx) error

pkg/api/http/schemas.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package http
22

3-
import "glide/pkg/routers"
3+
import "github.com/EinStack/glide/pkg/routers"
44

55
type ErrorSchema struct {
66
Message string `json:"message"`

pkg/api/http/server.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@ import (
88

99
"github.com/gofiber/swagger"
1010

11-
"glide/docs"
11+
"github.com/EinStack/glide/docs"
1212

1313
"github.com/gofiber/contrib/fiberzap/v2"
1414

15+
_ "github.com/EinStack/glide/docs" // importing docs package to include them into the binary
16+
1517
"github.com/gofiber/fiber/v2"
16-
_ "glide/docs" // importing docs package to include them into the binary
1718

18-
"glide/pkg/routers"
19+
"github.com/EinStack/glide/pkg/routers"
1920

20-
"glide/pkg/telemetry"
21+
"github.com/EinStack/glide/pkg/telemetry"
2122
)
2223

2324
type Server struct {

pkg/api/servers.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import (
66

77
"go.uber.org/zap"
88

9-
"glide/pkg/routers"
9+
"github.com/EinStack/glide/pkg/routers"
1010

11-
"glide/pkg/telemetry"
11+
"github.com/EinStack/glide/pkg/telemetry"
1212

13-
"glide/pkg/api/http"
13+
"github.com/EinStack/glide/pkg/api/http"
1414
)
1515

1616
type ServerManager struct {

pkg/cmd/cli.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ package cmd
33
import (
44
"log"
55

6-
"glide/pkg/version"
6+
"github.com/EinStack/glide/pkg/version"
7+
8+
"github.com/EinStack/glide/pkg/config"
9+
10+
"github.com/EinStack/glide/pkg"
711

812
"github.com/spf13/cobra"
9-
"glide/pkg"
10-
"glide/pkg/config"
1113
)
1214

1315
var (
@@ -37,7 +39,7 @@ to make your LLM applications production ready 🎉
3739
func NewCLI() *cobra.Command {
3840
// TODO: Chances are we could use the build in flags module in this is all we need from CLI
3941
cli := &cobra.Command{
40-
Use: "glide",
42+
Use: "github.com/EinStack/glide",
4143
Short: "🐦Glide is an open-source, lightweight, high-performance model gateway",
4244
Long: Description,
4345
Version: version.FullVersion,

pkg/config/config.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package config
22

33
import (
4-
"glide/pkg/api"
5-
"glide/pkg/routers"
6-
"glide/pkg/telemetry"
4+
"github.com/EinStack/glide/pkg/telemetry"
5+
6+
"github.com/EinStack/glide/pkg/routers"
7+
8+
"github.com/EinStack/glide/pkg/api"
79
)
810

911
// Config is a general top-level Glide configuration

0 commit comments

Comments
 (0)