Skip to content

Commit e991cbd

Browse files
authored
fix(deps): Update module github.com/cloudquery/codegen to v0.2.0 (#6758)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/cloudquery/codegen](https://togithub.com/cloudquery/codegen) | require | minor | `v0.1.1` -> `v0.2.0` | --- ### Release Notes <details> <summary>cloudquery/codegen</summary> ### [`v0.2.0`](https://togithub.com/cloudquery/codegen/releases/tag/v0.2.0) [Compare Source](https://togithub.com/cloudquery/codegen/compare/v0.1.1...v0.2.0) <!-- Release notes generated using configuration in .github/release.yml at main --> **Full Changelog**: cloudquery/codegen@v0.1.1...v0.2.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC45NC4wIiwidXBkYXRlZEluVmVyIjoiMzQuOTQuMCJ9-->
1 parent 018edf4 commit e991cbd

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

plugins/source/fastly/codegen/main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ func main() {
1919
[]any{&fastly.Client{}},
2020
path.Join(path.Dir(filename), "../client/services"),
2121
interfaces.WithIncludeFunc(include),
22+
interfaces.WithExtraImports(extraImports),
2223
)
2324
if err != nil {
2425
panic(err)
@@ -28,3 +29,7 @@ func main() {
2829
func include(m reflect.Method) bool {
2930
return interfaces.MethodHasAnyPrefix(m, []string{"Get", "List", "NewGet", "NewList"})
3031
}
32+
33+
func extraImports(m reflect.Method) []string {
34+
return []string{"net/http"}
35+
}

plugins/source/fastly/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/cloudquery/cloudquery/plugins/source/fastly
33
go 1.19
44

55
require (
6-
github.com/cloudquery/codegen v0.1.1
6+
github.com/cloudquery/codegen v0.2.0
77
github.com/cloudquery/plugin-sdk v1.25.0
88
github.com/fastly/go-fastly/v7 v7.0.0
99
github.com/golang/mock v1.6.0

plugins/source/fastly/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWR
4040
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
4141
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
4242
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
43-
github.com/cloudquery/codegen v0.1.1 h1:zIPNMeNAlUdLwP4gpb8BsfOfAxyLYOBxBNSG+nZpSx4=
44-
github.com/cloudquery/codegen v0.1.1/go.mod h1:oJxzUuOC79fP36vBPU1BJ7n+jgQemS33y/mbgNq6vfM=
43+
github.com/cloudquery/codegen v0.2.0 h1:IC+UA1LPzKbgzvKmUhnLGEibgojAH31AyXMjlJr5vmI=
44+
github.com/cloudquery/codegen v0.2.0/go.mod h1:oJxzUuOC79fP36vBPU1BJ7n+jgQemS33y/mbgNq6vfM=
4545
github.com/cloudquery/plugin-sdk v1.25.0 h1:LnKWhX94AF8Y/GASzLCTlMF4rZX85KXcA4CjB2vERtc=
4646
github.com/cloudquery/plugin-sdk v1.25.0/go.mod h1:teMPyCON3uPdMsHvzpSiOg+IK2sOR5Tf9dYLreoURzI=
4747
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=

0 commit comments

Comments
 (0)