8000 feat(go.mod): upgrade go-fastly from v9 to v10 by anthony-gomez-fastly · Pull Request #1448 · fastly/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(go.mod): upgrade go-fastly from v9 to v10 #1448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .tmpl/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package ${CLI_PACKAGE}_test
import (
"testing"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fast 8000 ly/cli/pkg/mock"
"github.com/fastly/cli/pkg/testutil"
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### Bug fixes:

### Dependencies:
- dep(go.mod): upgrade go-fastly from v9 to v10 [#1448](https://github.com/fastly/cli/pull/1448)

## [v11.1.0](https://github.com/fastly/cli/releases/tag/v11.1.0) (2025-03-27)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ require (
)

require (
github.com/fastly/go-fastly/v9 v9.14.0
github.com/fastly/go-fastly/v10 v10.0.0
github.com/hashicorp/cap v0.9.0
github.com/kennygrant/sanitize v1.2.4
github.com/otiai10/copy v1.14.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ github.com/dsnet/compress v0.0.2-0.20210315054119-f66993602bf5/go.mod h1:qssHWj6
github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY=
github.com/dustinkirkland/golang-petname v0.0.0-20240428194347-eebcea082ee0 h1:aYo8nnk3ojoQkP5iErif5Xxv0Mo0Ga/FR5+ffl/7+Nk=
github.com/dustinkirkland/golang-petname v0.0.0-20240428194347-eebcea082ee0/go.mod h1:8AuBTZBRSFqEYBPYULd+NN474/zZBLP+6WeT5S9xlAc=
github.com/fastly/go-fastly/v9 v9.14.0 h1:ptSfSJELrJ7HJv8gquC4VdAgNp5/LDioVFwJkKX7gC8=
github.com/fastly/go-fastly/v9 v9.14.0/go.mod h1:ZVG7JYdNvVU20gxq4Vy8Zu397nrzPdvkbIM5j29Me+M=
github.com/fastly/go-fastly/v10 v10.0.0 h1:qK3dmemdPuAumbDiKoMzKO3mYJjfniPuFHGDGxfsftA=
github.com/fastly/go-fastly/v10 v10.0.0/go.mod h1:q4FqB+nIJj8fQGJufIKAGdEqGnd+ZHO4qWisZLTJmcM=
github.com/fastly/kingpin v2.1.12-0.20191105091915-95d230a53780+incompatible h1:FhrXlfhgGCS+uc6YwyiFUt04alnjpoX7vgDKJxS6Qbk=
github.com/fastly/kingpin v2.1.12-0.20191105091915-95d230a53780+incompatible/go.mod h1:U8UynVoU1SQaqD2I4ZqgYd5lx3A1ipQYn4aSt2Y5h6c=
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"crypto/ed25519"
"net/http"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"
)

// HTTPClient models a concrete http.Client. It's a consumer contract for some
Expand Down
2 changes: 1 addition & 1 deletion pkg/app/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strings"
"time"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"
"github.com/fastly/kingpin"
"github.com/fatih/color"
"github.com/hashicorp/cap/oidc"
Expand Down
2 changes: 1 addition & 1 deletion pkg/argparser/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"io"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"
"github.com/fastly/kingpin"

"4d63.com/optional"
Expand Down
2 changes: 1 addition & 1 deletion pkg/argparser/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strconv"
"strings"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"
"github.com/fastly/kingpin"

"github.com/fastly/cli/pkg/api"
Expand Down
2 changes: 1 addition & 1 deletion pkg/argparser/flags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"testing"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fastly/cli/pkg/argparser"
"github.com/fastly/cli/pkg/manifest"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/acl/acl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package acl_test
import (
"testing"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

root "github.com/fastly/cli/pkg/commands/acl"
"github.com/fastly/cli/pkg/mock"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/acl/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package acl
import (
"io"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"4d63.com/optional"
"github.com/fastly/cli/pkg/argparser"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/acl/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package acl
import (
"io"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"4d63.com/optional"
"github.com/fastly/cli/pkg/argparser"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/acl/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"io"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fastly/cli/pkg/argparser"
fsterr "github.com/fastly/cli/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/acl/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"io"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fastly/cli/pkg/argparser"
fsterr "github.com/fastly/cli/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/acl/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package acl
import (
"io"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"4d63.com/optional"
"github.com/fastly/cli/pkg/argparser"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/aclentry/aclentry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"testing"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

root "github.com/fastly/cli/pkg/commands/aclentry"
"github.com/fastly/cli/pkg/mock"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/aclentry/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package aclentry
import (
"io"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fastly/cli/pkg/argparser"
"github.com/fastly/cli/pkg/global"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/aclentry/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package aclentry
import (
"io"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fastly/cli/pkg/argparser"
"github.com/fastly/cli/pkg/global"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/aclentry/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"io"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fastly/cli/pkg/argparser"
fsterr "github.com/fastly/cli/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/aclentry/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"io"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fastly/cli/pkg/argparser"
3D11 fsterr "github.com/fastly/cli/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/aclentry/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"io"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fastly/cli/pkg/argparser"
fsterr "github.com/fastly/cli/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/alerts/alerts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
root "github.com/fastly/cli/pkg/commands/alerts"
"github.com/fastly/cli/pkg/mock"
"github.com/fastly/cli/pkg/testutil"
"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"
)

func TestAlertsCreate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/alerts/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"

"github.com/fastly/cli/pkg/text"
"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"
)

// evaluationType is a list of supported evaluation types.
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/alerts/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/fastly/cli/pkg/argparser"
fsterr "github.com/fastly/cli/pkg/errors"
"github.com/fastly/cli/pkg/global"
"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"
)

// NewCreateCommand returns a usable command registered under the parent.
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/alerts/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"io"

"github.com/fastly/cli/pkg/text"
"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fastly/cli/pkg/argparser"
fsterr "github.com/fastly/cli/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/alerts/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package alerts
import (
"io"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fastly/cli/pkg/argparser"
fsterr "github.com/fastly/cli/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/alerts/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"

"github.com/fastly/cli/pkg/text"
"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fastly/cli/pkg/argparser"
fsterr "github.com/fastly/cli/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/alerts/list_history.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"

"github.com/fastly/cli/pkg/text"
"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fastly/cli/pkg/argparser"
fsterr "github.com/fastly/cli/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/alerts/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package alerts
import (
"io"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fastly/cli/pkg/argparser"
fsterr "github.com/fastly/cli/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/authtoken/authtoken_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

root "github.com/fastly/cli/pkg/commands/authtoken"
"github.com/fastly/cli/pkg/mock"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/authtoken/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"time"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"
"github.com/fastly/kingpin"

"github.com/fastly/cli/pkg/argparser"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/authtoken/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"path/filepath"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fastly/cli/pkg/argparser"
"github.com/fastly/cli/pkg/global"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/authtoken/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"strings"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fastly/cli/pkg/argparser"
fsterr "github.com/fastly/cli/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/authtoken/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"strings"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fastly/cli/pkg/argparser"
fsterr "github.com/fastly/cli/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/backend/backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"testing"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

root "github.com/fastly/cli/pkg/commands/backend"
fsterr "github.com/fastly/cli/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/backend/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"net"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"4d63.com/optional"
"github.com/fastly/cli/pkg/argparser"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/backend/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package backend
import (
"io"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"4d63.com/optional"
"github.com/fastly/cli/pkg/argparser"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/backend/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"io"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fastly/cli/pkg/argparser"
fsterr "github.com/fastly/cli/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/backend/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"io"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fastly/cli/pkg/argparser"
fsterr "github.com/fastly/cli/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/backend/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"io"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"4d63.com/optional"
"github.com/fastly/cli/pkg/argparser"
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/compute/compute_mocks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package compute_test
// also a mocked HTTP client).

import (
"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v10/fastly"

"github.com/fastly/cli/pkg/testutil"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/compute/computeacl/computeacl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
sub "github.com/fastly/cli/pkg/commands/compute/computeacl"
fstfmt "github.com/fastly/cli/pkg/fmt"
"github.com/fastly/cli/pkg/testutil"
"github.com/fastly/go-fastly/v9/fastly/computeacls"
"github.com/fastly/go-fastly/v10/fastly/computeacls"
)

func TestComputeACLCreate(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/commands/compute/computeacl/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"io"

"github.com/fastly/go-fastly/v9/fastly"
"github.com/fastly/go-fastly/v9/fastly/computeacls"
"github.com/fastly/go-fastly/v10/fastly"
"github.com/fastly/go-fastly/v10/fastly/computeacls"

"github.com/fastly/cli/pkg/argparser"
fsterr "github.com/fastly/cli/pkg/errors"
Expand Down
Loading
0