Skip to content

Commit

Permalink
chore: update go.mod for gen_github_action_config script (#3300)
Browse files Browse the repository at this point in the history
fix: apply the workaround suggested by the GitHub team.
  • Loading branch information
ldez authored Oct 20, 2022
1 parent a760cb1 commit 2fa3b6f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 21 deletions.
15 changes: 11 additions & 4 deletions scripts/gen_github_action_config/go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
module github.com/golangci/golangci-lint/scripts/gen_github_action_config

go 1.16
go 1.18

require (
github.com/shurcooL/githubv4 v0.0.0-20200627185320-e003124d66e4
github.com/shurcooL/graphql v0.0.0-20181231061246-d48a9a75455f // indirect
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
github.com/shurcooL/githubv4 v0.0.0-20220922232305-70b4d362a8cb
golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783
)

require (
github.com/golang/protobuf v1.5.2 // indirect
github.com/shurcooL/graphql v0.0.0-20220606043923-3cf50f8a0a29 // indirect
golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.28.0 // indirect
)
42 changes: 26 additions & 16 deletions scripts/gen_github_action_config/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/gen_github_action_config/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func fetchAllReleases(ctx context.Context) ([]release, error) {
EndCursor githubv4.String
HasNextPage bool
}
} `graphql:"releases(first: 100, after: $releasesCursor)"`
} `graphql:"releases(first: 100, orderBy: { field: CREATED_AT, direction: DESC }, after: $releasesCursor)"`
} `graphql:"repository(owner: $owner, name: $name)"`
}

Expand Down

0 comments on commit 2fa3b6f

Please sign in to comment.