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 managedplugin/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func doDownloadPluginFromHub(ctx context.Context, logger zerolog.Logger, c *clou

if ver != nil {
return fmt.Errorf("version %s does not exist, consider using the latest version at %s", ops.PluginVersion,
fmt.Sprintf("https://hub.cloudquery.io/plugins/%s/%s/%s/v%s", ops.PluginKind, ops.PluginTeam, ops.PluginName, ver.String()))
fmt.Sprintf("https://www.cloudquery.io/hub/plugins/%s/%s/%s/v%s", ops.PluginKind, ops.PluginTeam, ops.PluginName, ver.String()))
}

return errRetryWithLogin
Expand Down
2 changes: 1 addition & 1 deletion managedplugin/download_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func TestDownloadPluginNonExistentVersionFromCloudQueryHub(t *testing.T) {
testName: "should download test plugin from cloudquery registry with non-existent version",
team: "cloudquery", plugin: "aws", version: "v9000.0.0", typ: PluginSource, wantErr: true,
// This is only a prefix as the latest version won't be fixed in an integration test
errStr: "version v9000.0.0 does not exist, consider using the latest version at https://hub.cloudquery.io/plugins/source/cloudquery/aws/v",
errStr: "version v9000.0.0 does not exist, consider using the latest version at https://www.cloudquery.io/hub/plugins/source/cloudquery/aws/v",
},
}
c, err := cloudquery_api.NewClientWithResponses(APIBaseURL())
Expand Down
2 changes: 1 addition & 1 deletion managedplugin/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func validateDockerPlugin(ctx context.Context, logger zerolog.Logger, c *cloudqu

if ver != nil {
return false, fmt.Errorf("version %s does not exist, consider using the latest version at %s", ops.PluginVersion,
fmt.Sprintf("https://hub.cloudquery.io/plugins/%s/%s/%s/v%s", ops.PluginKind, ops.PluginTeam, ops.PluginName, ver.String()))
fmt.Sprintf("https://www.cloudquery.io/hub/plugins/%s/%s/%s/v%s", ops.PluginKind, ops.PluginTeam, ops.PluginName, ver.String()))
}
}
if p.StatusCode() != http.StatusOK {
Expand Down
2 changes: 1 addition & 1 deletion managedplugin/version_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (p *PluginVersionWarner) WarnIfOutdated(ctx context.Context, org string, na
Str("plugin", name).
Str("using_version", actualVersionSemver.String()).
Str("latest_version", latestVersionSemver.String()).
Str("url", fmt.Sprintf("https://hub.cloudquery.io/plugins/%s/%s/%s", kind, org, name)).
Str("url", fmt.Sprintf("https://www.cloudquery.io/hub/plugins/%s/%s/%s", kind, org, name)).
Msg("Plugin is outdated, consider upgrading to the latest version.")
return true, nil
}
Expand Down
Loading