Skip to content

Commit

Permalink
update to latest sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
jranson committed Jan 22, 2025
1 parent 3c4b493 commit 4fe863b
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/fatih/color v1.18.0
github.com/h2non/filetype v1.1.3
github.com/hashicorp/go-cleanhttp v0.5.2
github.com/hathora/cloud-sdk-go v0.0.0-20250113192510-5287840d4e1e
github.com/hathora/cloud-sdk-go/hathoracloud v0.0.0-20250122221419-b680f9dc502e
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00
github.com/stretchr/testify v1.10.0
github.com/urfave/cli/v3 v3.0.0-alpha9
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ github.com/h2non/filetype v1.1.3 h1:FKkx9QbD7HR/zjK1Ia5XiBsq9zdLi5Kf3zGyFTAFkGg=
github.com/h2non/filetype v1.1.3/go.mod h1:319b3zT68BvV+WRj7cwy856M2ehB3HqNOt6sy1HndBY=
github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
github.com/hathora/cloud-sdk-go v0.0.0-20250113192510-5287840d4e1e h1:D4oQBxhB7fyHKuQxPZ2KYx0XiX8x0D/iotMhhtQ83FQ=
github.com/hathora/cloud-sdk-go v0.0.0-20250113192510-5287840d4e1e/go.mod h1:lngVTwPsJ1dWTMysCGzdJe6Z64rK1za9dKy/HinTAXo=
github.com/hathora/cloud-sdk-go/hathoracloud v0.0.0-20250122221419-b680f9dc502e h1:qUMPXUCAO6KUjUsdPdSVRlrzoR/e7g8s40rUKjzWodo=
github.com/hathora/cloud-sdk-go/hathoracloud v0.0.0-20250122221419-b680f9dc502e/go.mod h1:scOHgTK/ylPtgg39LsTpuUlmwop7tsGlLEP7vBd0Tlk=
github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=
github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
Expand Down
7 changes: 4 additions & 3 deletions internal/commands/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ import (

"github.com/urfave/cli/v3"
"go.uber.org/zap"
"golang.org/x/sync/errgroup"

"github.com/hathora/ci/internal/archive"
"github.com/hathora/ci/internal/commands/altsrc"
"github.com/hathora/ci/internal/httputil"
"github.com/hathora/ci/internal/output"
"github.com/hathora/ci/internal/setup"
sdk "github.com/hathora/cloud-sdk-go"
"github.com/hathora/cloud-sdk-go/models/components"
"golang.org/x/sync/errgroup"

sdk "github.com/hathora/cloud-sdk-go/hathoracloud"
"github.com/hathora/cloud-sdk-go/hathoracloud/models/components"
)

type etagPart struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"go.uber.org/zap"

"github.com/hathora/ci/internal/output"
"github.com/hathora/cloud-sdk-go/models/components"
"github.com/hathora/cloud-sdk-go/hathoracloud/models/components"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"go.uber.org/zap"

"github.com/hathora/ci/internal/shorthand"
"github.com/hathora/cloud-sdk-go/models/components"
"github.com/hathora/cloud-sdk-go/hathoracloud/models/components"
)

var Deploy = &cli.Command{
Expand Down
4 changes: 2 additions & 2 deletions internal/commands/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"github.com/hathora/ci/internal/setup"
"github.com/hathora/ci/internal/shorthand"
"github.com/hathora/ci/internal/workaround"
sdk "github.com/hathora/cloud-sdk-go"
"github.com/hathora/cloud-sdk-go/models/components"
sdk "github.com/hathora/cloud-sdk-go/hathoracloud"
"github.com/hathora/cloud-sdk-go/hathoracloud/models/components"
)

const deploymentFlagEnvVarPrefix = globalFlagEnvVarPrefix + "DEPLOYMENT_"
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/hathora/ci/internal/output"
"github.com/hathora/ci/internal/setup"
"github.com/hathora/ci/internal/workaround"
sdk "github.com/hathora/cloud-sdk-go"
sdk "github.com/hathora/cloud-sdk-go/hathoracloud"
)

const logFlagEnvVarPrefix = globalFlagEnvVarPrefix + "LOG_"
Expand Down
2 changes: 1 addition & 1 deletion internal/mock/hathora.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"

"github.com/hathora/ci/internal/httputil"
sdk "github.com/hathora/cloud-sdk-go"
sdk "github.com/hathora/cloud-sdk-go/hathoracloud"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/output/text_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/stretchr/testify/assert"

"github.com/hathora/ci/internal/commands"
sdk "github.com/hathora/cloud-sdk-go"
"github.com/hathora/cloud-sdk-go/models/components"
sdk "github.com/hathora/cloud-sdk-go/hathoracloud"
"github.com/hathora/cloud-sdk-go/hathoracloud/models/components"
)

func Test_DeploymentTextOutput(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/setup/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/hashicorp/go-cleanhttp"

"github.com/hathora/ci/internal/httputil"
sdk "github.com/hathora/cloud-sdk-go"
sdk "github.com/hathora/cloud-sdk-go/hathoracloud"
)

func HTTPClient(loggingVerbosity int) sdk.HTTPClient {
Expand Down
2 changes: 1 addition & 1 deletion internal/setup/sdk.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package setup

import (
sdk "github.com/hathora/cloud-sdk-go"
sdk "github.com/hathora/cloud-sdk-go/hathoracloud"
)

func SDK(token, baseURL string, loggingVerbosity int) *sdk.HathoraCloud {
Expand Down
2 changes: 1 addition & 1 deletion internal/shorthand/container_port.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strconv"
"strings"

"github.com/hathora/cloud-sdk-go/models/components"
"github.com/hathora/cloud-sdk-go/hathoracloud/models/components"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion internal/shorthand/container_port_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/hathora/ci/internal/shorthand"
"github.com/hathora/cloud-sdk-go/models/components"
"github.com/hathora/cloud-sdk-go/hathoracloud/models/components"
)

func Test_ContainerPortShorthand(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/shorthand/env_var.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"regexp"
"strings"

"github.com/hathora/cloud-sdk-go/models/components"
"github.com/hathora/cloud-sdk-go/hathoracloud/models/components"
)

func ParseDeploymentEnvVar(s string) (*components.DeploymentConfigV3Env, error) {
Expand Down
2 changes: 1 addition & 1 deletion internal/shorthand/env_var_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/hathora/ci/internal/shorthand"
"github.com/hathora/cloud-sdk-go/models/components"
"github.com/hathora/cloud-sdk-go/hathoracloud/models/components"
)

func Test_DeploymentEnvVarShorthand(t *testing.T) {
Expand Down

0 comments on commit 4fe863b

Please sign in to comment.