Skip to content

Commit

Permalink
chore: update atlas-go-sdk (#115)
Browse files Browse the repository at this point in the history
* chore: update atlas-go-sdk

* chore: upgrade atlas to latest

* chore: tidy
  • Loading branch information
giautm authored Jan 23, 2024
1 parent 1b732a4 commit 5ad3fd5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module ariga.io/ariga/terraform-provider-atlas
go 1.21

require (
ariga.io/atlas v0.15.1-0.20231104142243-962427888bf2
ariga.io/atlas-go-sdk v0.3.0
ariga.io/atlas v0.18.1-0.20240122190411-2e16a5b94545
ariga.io/atlas-go-sdk v0.4.0
github.com/go-sql-driver/mysql v1.7.1
github.com/hashicorp/terraform-plugin-docs v0.16.0
github.com/hashicorp/terraform-plugin-framework v1.4.2
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ariga.io/atlas v0.15.1-0.20231104142243-962427888bf2 h1:uw5P4SCzPO3dACfbtt6TuwrWY72B4EKrNck+hKPM6dg=
ariga.io/atlas v0.15.1-0.20231104142243-962427888bf2/go.mod h1:isZrlzJ5cpoCoKFoY9knZug7Lq4pP1cm8g3XciLZ0Pw=
ariga.io/atlas-go-sdk v0.3.0 h1:19hxr3Fm/Jg/pNSLq3mpTQs1k1sPNhQXpLgVtIDQ0J8=
ariga.io/atlas-go-sdk v0.3.0/go.mod h1:owkEEXw6jqne5KPVDfKsYB7cwMiMk3jtOiAAeKxS/yU=
ariga.io/atlas v0.18.1-0.20240122190411-2e16a5b94545 h1:0hswiTUXbOi8SbMQZWRX3Wad6+ZIud/y2PsHYK6KpVA=
ariga.io/atlas v0.18.1-0.20240122190411-2e16a5b94545/go.mod h1:uj3pm+hUTVN/X5yfdBexHlZv+1Xu5u5ZbZx7+CDavNU=
ariga.io/atlas-go-sdk v0.4.0 h1:JvydYd7zuExxDCrgKQtKFOT6nAqBTsx/3EXkrOco+BA=
ariga.io/atlas-go-sdk v0.4.0/go.mod h1:owkEEXw6jqne5KPVDfKsYB7cwMiMk3jtOiAAeKxS/yU=
dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk=
dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60=
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/atlas_migration_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (d *MigrationDataSource) Read(ctx context.Context, req datasource.ReadReque
fmt.Sprintf("Failed to write configuration file: %s", err.Error()))
return
}
r, err := d.client.Status(ctx, &atlas.MigrateStatusParams{
r, err := d.client.MigrateStatus(ctx, &atlas.MigrateStatusParams{
ConfigURL: fmt.Sprintf("file://%s", cfgPath),
Env: "tf",
})
Expand Down
8 changes: 4 additions & 4 deletions internal/provider/atlas_migration_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func (r *MigrationResource) ModifyPlan(ctx context.Context, req resource.ModifyP
fmt.Sprintf("Failed to create atlas.hcl: %s", err.Error()))
return
}
report, err := r.client.Status(ctx, &atlas.MigrateStatusParams{
report, err := r.client.MigrateStatus(ctx, &atlas.MigrateStatusParams{
ConfigURL: fmt.Sprintf("file://%s", cfgPath),
Env: defaultString(plan.EnvName, "tf"),
})
Expand Down Expand Up @@ -338,7 +338,7 @@ func (r *MigrationResource) ModifyPlan(ctx context.Context, req resource.ModifyP
if devURL == "" {
return
}
lint, err := r.client.Lint(ctx, &atlas.MigrateLintParams{
lint, err := r.client.MigrateLint(ctx, &atlas.MigrateLintParams{
ConfigURL: fmt.Sprintf("file://%s", cfgPath),
Env: defaultString(plan.EnvName, "tf"),
Latest: pendingCount,
Expand Down Expand Up @@ -382,7 +382,7 @@ func (r *MigrationResource) migrate(ctx context.Context, data *MigrationResource
fmt.Sprintf("Failed to create atlas.hcl: %s", err.Error()))
return
}
statusReport, err := r.client.Status(ctx, &atlas.MigrateStatusParams{
statusReport, err := r.client.MigrateStatus(ctx, &atlas.MigrateStatusParams{
ConfigURL: fmt.Sprintf("file://%s", cfgPath),
Env: defaultString(data.EnvName, "tf"),
})
Expand Down Expand Up @@ -433,7 +433,7 @@ func (r *MigrationResource) buildStatus(ctx context.Context, data *MigrationReso
diags.AddError("Generate config failure", fmt.Sprintf("Failed to create atlas.hcl: %s", err.Error()))
return
}
report, err := r.client.Status(ctx, &atlas.MigrateStatusParams{
report, err := r.client.MigrateStatus(ctx, &atlas.MigrateStatusParams{
ConfigURL: fmt.Sprintf("file://%s", cfgPath),
Env: defaultString(data.EnvName, "tf"),
})
Expand Down

0 comments on commit 5ad3fd5

Please sign in to comment.