Skip to content
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"sync"
"text/template"

"github.com/google/go-github/v82/github"
"github.com/google/go-github/v88/github"
"golang.org/x/oauth2"
"gopkg.in/yaml.v3"
)
Expand Down Expand Up @@ -85,7 +85,7 @@

// Print agent version and exit
if *agentlatest {
gh := github.NewClient(oauthClientFromEnv())

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build and scan image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build and scan image

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build and scan image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build and scan image

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build and scan image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build and scan image

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build and scan image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build and scan image

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build fips and scan image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build fips and scan image

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build fips and scan image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build fips and scan image

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build Windows Server 2022 image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build Windows Server 2022 image

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build Windows Server 2019 image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build Windows Server 2019 image

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build Windows Server 2019 image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build Windows Server 2019 image

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build Windows Server 2022 image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 88 in downloader.go

View workflow job for this annotation

GitHub Actions / Build Windows Server 2022 image

assignment mismatch: 1 variable but github.NewClient returns 2 values
v, err := getLatestAgent(gh, conf.AgentVersion, *staging)
if err != nil {
log.Fatal(err)
Expand Down Expand Up @@ -188,7 +188,7 @@

// Build GithubClient and fetch releases
// oauthClientFromEnv will return an authenticated client if `$GITHUB_TOKEN` is present, or the default otherwise
gh := github.NewClient(oauthClientFromEnv())

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build and scan image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build and scan image

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build and scan image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build and scan image

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build and scan image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build and scan image

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build and scan image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build and scan image

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build fips and scan image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build fips and scan image

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build fips and scan image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build fips and scan image

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build Windows Server 2022 image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build Windows Server 2022 image

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build Windows Server 2019 image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build Windows Server 2019 image

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build Windows Server 2019 image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build Windows Server 2019 image

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build Windows Server 2022 image

cannot use oauthClientFromEnv() (value of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 191 in downloader.go

View workflow job for this annotation

GitHub Actions / Build Windows Server 2022 image

assignment mismatch: 1 variable but github.NewClient returns 2 values

// Iterate over integrations expanding their configs as well
for i := range conf.Integrations {
Expand Down
6 changes: 2 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
module github.com/newrelic/infrastructure-bundle/builder

go 1.24.0

toolchain go1.24.12
go 1.25.0

require (
github.com/google/go-github/v82 v82.0.0
github.com/google/go-github/v88 v88.0.0
golang.org/x/oauth2 v0.27.0
gopkg.in/yaml.v3 v3.0.1
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
github.com/google/go-github/v82 v82.0.0 h1:OH09ESON2QwKCUVMYmMcVu1IFKFoaZHwqYaUtr/MVfk=
github.com/google/go-github/v82 v82.0.0/go.mod h1:hQ6Xo0VKfL8RZ7z1hSfB4fvISg0QqHOqe9BP0qo+WvM=
github.com/google/go-github/v88 v88.0.0 h1:dZA9IKkPK1eXZj4ypngnpRj5FwdpTv4whix2PrQMP7M=
github.com/google/go-github/v88 v88.0.0/go.mod h1:rufTDgn2N45wjhukLTyxmvc9nilSp3mr3Rgtt6b1MPw=
github.com/google/go-querystring v1.2.0 h1:yhqkPbu2/OH+V9BfpCVPZkNmUXhb2gBxJArfhIxNtP0=
github.com/google/go-querystring v1.2.0/go.mod h1:8IFJqpSRITyJ8QhQ13bmbeMBDfmeEJZD5A0egEOmkqU=
golang.org/x/oauth2 v0.27.0 h1:da9Vo7/tDv5RH/7nZDz1eMGS/q1Vv1N/7FCrBhI9I3M=
Expand Down
Loading