Skip to content

Commit

Permalink
update connectors' download links to link to our scarf package link (#89
Browse files Browse the repository at this point in the history
)

* update connectors' download links to link to our scarf package link

* use go-json

* use go-json and regenerate connectors
  • Loading branch information
maha-hajja committed May 10, 2024
1 parent 8145461 commit 6f8b1dd
Show file tree
Hide file tree
Showing 3 changed files with 524 additions and 523 deletions.
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"
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

0 comments on commit 6f8b1dd

Please sign in to comment.