Skip to content
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

update connectors' download links to link to our scarf package link #89

Merged
merged 3 commits into from
May 10, 2024
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/connectorgen/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ module github.com/conduitio/connectors-list
go 1.22.0

require (
github.com/goccy/go-json v0.10.2
github.com/gofri/go-github-ratelimit v1.1.0
github.com/google/go-github/v61 v61.0.0
github.com/otiai10/gh-dependents v0.3.0
)

require (
github.com/goccy/go-json v0.10.2 // indirect
github.com/google/go-querystring v1.1.0 // indirect
golang.org/x/net v0.22.0 // indirect
)
13 changes: 7 additions & 6 deletions src/connectorgen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"strings"
"time"

"github.com/goccy/go-json"
maha-hajja marked this conversation as resolved.
Show resolved Hide resolved
json "github.com/goccy/go-json"
"github.com/gofri/go-github-ratelimit/github_ratelimit"
"github.com/google/go-github/v61/github"
"github.com/otiai10/gh-dependents/ghdeps"
Expand Down Expand Up @@ -303,11 +303,12 @@ func fetchReleaseAssets(ctx context.Context, client *github.Client, repo string,
}

assetsList = append(assetsList, Asset{
Name: asset.GetName(),
OS: assetOS,
Arch: assetArch,
ContentType: asset.GetContentType(),
BrowserDownload: asset.GetBrowserDownloadURL(),
Name: asset.GetName(),
OS: assetOS,
Arch: assetArch,
ContentType: asset.GetContentType(),
// use our conduit-connectors-releases scarf package link
BrowserDownload: strings.Replace(asset.GetBrowserDownloadURL(), "github.com", "conduit.gateway.scarf.sh/connector/download", 1),
CreatedAt: asset.GetCreatedAt().Time,
UpdatedAt: asset.GetUpdatedAt().Time,
DownloadCount: asset.GetDownloadCount(),
Expand Down
Loading