Skip to content

Commit aec85fa

Browse files
authored
fix: Update Hub URLs from hub.cloudquery.io to www.cloudquery.io/hub (#621)
Goes with cloudquery/cloudquery#22319
1 parent b58395f commit aec85fa

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

managedplugin/download.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func doDownloadPluginFromHub(ctx context.Context, logger zerolog.Logger, c *clou
173173

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

179179
return errRetryWithLogin

managedplugin/download_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func TestDownloadPluginNonExistentVersionFromCloudQueryHub(t *testing.T) {
145145
testName: "should download test plugin from cloudquery registry with non-existent version",
146146
team: "cloudquery", plugin: "aws", version: "v9000.0.0", typ: PluginSource, wantErr: true,
147147
// This is only a prefix as the latest version won't be fixed in an integration test
148-
errStr: "version v9000.0.0 does not exist, consider using the latest version at https://hub.cloudquery.io/plugins/source/cloudquery/aws/v",
148+
errStr: "version v9000.0.0 does not exist, consider using the latest version at https://www.cloudquery.io/hub/plugins/source/cloudquery/aws/v",
149149
},
150150
}
151151
c, err := cloudquery_api.NewClientWithResponses(APIBaseURL())

managedplugin/hub.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func validateDockerPlugin(ctx context.Context, logger zerolog.Logger, c *cloudqu
4646

4747
if ver != nil {
4848
return false, fmt.Errorf("version %s does not exist, consider using the latest version at %s", ops.PluginVersion,
49-
fmt.Sprintf("https://hub.cloudquery.io/plugins/%s/%s/%s/v%s", ops.PluginKind, ops.PluginTeam, ops.PluginName, ver.String()))
49+
fmt.Sprintf("https://www.cloudquery.io/hub/plugins/%s/%s/%s/v%s", ops.PluginKind, ops.PluginTeam, ops.PluginName, ver.String()))
5050
}
5151
}
5252
if p.StatusCode() != http.StatusOK {

managedplugin/version_checker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (p *PluginVersionWarner) WarnIfOutdated(ctx context.Context, org string, na
7676
Str("plugin", name).
7777
Str("using_version", actualVersionSemver.String()).
7878
Str("latest_version", latestVersionSemver.String()).
79-
Str("url", fmt.Sprintf("https://hub.cloudquery.io/plugins/%s/%s/%s", kind, org, name)).
79+
Str("url", fmt.Sprintf("https://www.cloudquery.io/hub/plugins/%s/%s/%s", kind, org, name)).
8080
Msg("Plugin is outdated, consider upgrading to the latest version.")
8181
return true, nil
8282
}

0 commit comments

Comments
 (0)