diff --git a/managedplugin/download.go b/managedplugin/download.go index 4055c7b..3ca05b6 100644 --- a/managedplugin/download.go +++ b/managedplugin/download.go @@ -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 diff --git a/managedplugin/download_test.go b/managedplugin/download_test.go index 463c8f3..d2c0cab 100644 --- a/managedplugin/download_test.go +++ b/managedplugin/download_test.go @@ -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()) diff --git a/managedplugin/hub.go b/managedplugin/hub.go index 74e3d97..69bc0c2 100644 --- a/managedplugin/hub.go +++ b/managedplugin/hub.go @@ -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 { diff --git a/managedplugin/version_checker.go b/managedplugin/version_checker.go index e18640c..b627239 100644 --- a/managedplugin/version_checker.go +++ b/managedplugin/version_checker.go @@ -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 }