|
9 | 9 | "github.com/spf13/cobra" |
10 | 10 |
|
11 | 11 | "github.com/fullsend-ai/fullsend/internal/dispatch/gcf" |
| 12 | + "github.com/fullsend-ai/fullsend/internal/mintcore" |
12 | 13 | "github.com/fullsend-ai/fullsend/internal/ui" |
13 | 14 | ) |
14 | 15 |
|
@@ -135,7 +136,7 @@ func runInferenceProvisionDryRun(cmd *cobra.Command, printer *ui.Printer, org, r |
135 | 136 | printer.Blank() |
136 | 137 | printer.StepInfo(fmt.Sprintf("Repository: %s", repo)) |
137 | 138 | parts := strings.SplitN(repo, "/", 2) |
138 | | - providerID := gcf.BuildRepoProviderID(parts[0], parts[1]) |
| 139 | + providerID := mintcore.BuildRepoProviderID(parts[0], parts[1]) |
139 | 140 | printer.StepInfo(fmt.Sprintf("WIF provider: %s (repo-scoped)", providerID)) |
140 | 141 | printer.StepInfo(fmt.Sprintf("Condition: assertion.repository == '%s'", strings.ToLower(repo))) |
141 | 142 | } else { |
@@ -285,7 +286,7 @@ func runInferenceStatus(cmd *cobra.Command, org, repo, project, pool, provider, |
285 | 286 | providerName := provider |
286 | 287 | if repo != "" { |
287 | 288 | parts := strings.SplitN(repo, "/", 2) |
288 | | - providerName = gcf.BuildRepoProviderID(parts[0], parts[1]) |
| 289 | + providerName = mintcore.BuildRepoProviderID(parts[0], parts[1]) |
289 | 290 | } |
290 | 291 |
|
291 | 292 | result := &inferenceStatusResult{ |
@@ -505,7 +506,7 @@ func runInferenceDeprovisionDryRun(printer *ui.Printer, org, repo, project, pool |
505 | 506 | printer.Header("Dry run: deprovision repo " + repo + " from inference") |
506 | 507 | printer.Blank() |
507 | 508 | parts := strings.SplitN(repo, "/", 2) |
508 | | - providerID := gcf.BuildRepoProviderID(parts[0], parts[1]) |
| 509 | + providerID := mintcore.BuildRepoProviderID(parts[0], parts[1]) |
509 | 510 | printer.StepInfo(fmt.Sprintf("Repository: %s", repo)) |
510 | 511 | printer.StepInfo(fmt.Sprintf("GCP project: %s", project)) |
511 | 512 | printer.StepInfo(fmt.Sprintf("WIF pool: %s", pool)) |
@@ -543,7 +544,7 @@ func runInferenceDeprovision(cmd *cobra.Command, printer *ui.Printer, org, repo, |
543 | 544 | printer.Blank() |
544 | 545 |
|
545 | 546 | parts := strings.SplitN(repo, "/", 2) |
546 | | - providerID := gcf.BuildRepoProviderID(parts[0], parts[1]) |
| 547 | + providerID := mintcore.BuildRepoProviderID(parts[0], parts[1]) |
547 | 548 |
|
548 | 549 | provisioner := gcf.NewProvisioner(gcf.Config{ |
549 | 550 | ProjectID: project, |
|
0 commit comments