Skip to content

Commit ade4f31

Browse files
Upgrade go-fastly to v13.0.0 and allow ngwaf rules to accept multival conditions (#1655)
### Change summary updates `go-fastly` to version 13.0.0 which had a change to NGWAF rules that needed some adjustments to the existing `create` and `update` functionality of rules. All Submissions: * [x] Have you followed the guidelines in our Contributing document? * [x] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/fastly/cli/pulls) for the same update/change? <!-- You can erase any parts of this template not applicable to your Pull Request. --> ### New Feature Submissions: * [x] Does your submission pass tests? ### Changes to Core Features: * [x] Have you written new tests for your core changes, as applicable? * [x] Have you successfully run tests with your changes locally?
1 parent 5331b41 commit ade4f31

File tree

638 files changed

+1045
-864
lines changed

Some content is hidden

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

638 files changed

+1045
-864
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@ require (
8181

8282
require (
8383
4d63.com/optional v0.2.0
84-
github.com/fastly/go-fastly/v12 v12.1.2
84+
github.com/fastly/go-fastly/v13 v13.0.0
8585
github.com/mitchellh/go-ps v1.0.0
8686
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ github.com/dsnet/compress v0.0.2-0.20210315054119-f66993602bf5/go.mod h1:qssHWj6
2727
github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY=
2828
github.com/dustinkirkland/golang-petname v0.0.0-20240428194347-eebcea082ee0 h1:aYo8nnk3ojoQkP5iErif5Xxv0Mo0Ga/FR5+ffl/7+Nk=
2929
github.com/dustinkirkland/golang-petname v0.0.0-20240428194347-eebcea082ee0/go.mod h1:8AuBTZBRSFqEYBPYULd+NN474/zZBLP+6WeT5S9xlAc=
30-
github.com/fastly/go-fastly/v12 v12.1.2 h1:c1Z3t1HtjthfWM9qEMDXPPXFKF1GgKTyXXrQlsRcjek=
31-
github.com/fastly/go-fastly/v12 v12.1.2/go.mod h1:9MSmcSNR/RTJR9rakMO3seZPnRlsx6ndugabPZL1rkk=
30+
github.com/fastly/go-fastly/v13 v13.0.0 h1:n7i0CPt4YtC5LxlvAcDtKOfwnmouSDbKAJAL8ZYRBdQ=
31+
github.com/fastly/go-fastly/v13 v13.0.0/go.mod h1:tkxl8FPP6R+SyyQfFrmtIO1OuQT3oWAh2rpjI41e1hs=
3232
github.com/fastly/kingpin v2.1.12-0.20191105091915-95d230a53780+incompatible h1:FhrXlfhgGCS+uc6YwyiFUt04alnjpoX7vgDKJxS6Qbk=
3333
github.com/fastly/kingpin v2.1.12-0.20191105091915-95d230a53780+incompatible/go.mod h1:U8UynVoU1SQaqD2I4ZqgYd5lx3A1ipQYn4aSt2Y5h6c=
3434
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=

pkg/api/interface.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"crypto/ed25519"
66
"net/http"
77

8-
"github.com/fastly/go-fastly/v12/fastly"
8+
"github.com/fastly/go-fastly/v13/fastly"
99
)
1010

1111
// HTTPClient models a concrete http.Client. It's a consumer contract for some

pkg/app/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/hashicorp/cap/oidc"
1717
"github.com/skratchdot/open-golang/open"
1818

19-
"github.com/fastly/go-fastly/v12/fastly"
19+
"github.com/fastly/go-fastly/v13/fastly"
2020

2121
"github.com/fastly/kingpin"
2222

pkg/argparser/cmd.go

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

7-
"github.com/fastly/go-fastly/v12/fastly"
7+
"github.com/fastly/go-fastly/v13/fastly"
88

99
"github.com/fastly/kingpin"
1010

pkg/argparser/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"strconv"
1414
"strings"
1515

16-
"github.com/fastly/go-fastly/v12/fastly"
16+
"github.com/fastly/go-fastly/v13/fastly"
1717

1818
"github.com/fastly/kingpin"
1919

pkg/argparser/flags_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"strings"
1212
"testing"
1313

14-
"github.com/fastly/go-fastly/v12/fastly"
14+
"github.com/fastly/go-fastly/v13/fastly"
1515

1616
"github.com/fastly/cli/pkg/argparser"
1717
"github.com/fastly/cli/pkg/manifest"

pkg/commands/authtoken/authtoken_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"testing"
77

8-
"github.com/fastly/go-fastly/v12/fastly"
8+
"github.com/fastly/go-fastly/v13/fastly"
99

1010
root "github.com/fastly/cli/pkg/commands/authtoken"
1111
"github.com/fastly/cli/pkg/mock"

pkg/commands/authtoken/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strings"
77
"time"
88

9-
"github.com/fastly/go-fastly/v12/fastly"
9+
"github.com/fastly/go-fastly/v13/fastly"
1010

1111
"github.com/fastly/kingpin"
1212

0 commit comments

Comments
 (0)