Skip to content

Commit

Permalink
chore: update to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
pandatix committed Jan 16, 2025
1 parent f15ea12 commit 2bfa6e5
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: test-acc
test-acc:
TF_ACC=1 \
go test ./provider/ -v -run=^TestAcc_ -count=1 -coverprofile=cov.out -coverpkg "github.com/ctfer-io/terraform-provider-ctfd/provider,github.com/ctfer-io/terraform-provider-ctfd/provider/utils,github.com/ctfer-io/terraform-provider-ctfd/provider/validators"
go test ./provider/ -v -run=^TestAcc_ -count=1 -coverprofile=cov.out -coverpkg "github.com/ctfer-io/terraform-provider-ctfd/v2/provider,github.com/ctfer-io/terraform-provider-ctfd/v2/provider/utils,github.com/ctfer-io/terraform-provider-ctfd/v2/provider/validators"

.PHONY: docs
docs:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/ctfer-io/terraform-provider-ctfd
module github.com/ctfer-io/terraform-provider-ctfd/v2

go 1.23.2

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"flag"
"log"

"github.com/ctfer-io/terraform-provider-ctfd/provider"
"github.com/ctfer-io/terraform-provider-ctfd/v2/provider"
"github.com/hashicorp/terraform-plugin-framework/providerserver"
)

Expand Down
2 changes: 1 addition & 1 deletion provider/challenge_common.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package provider

import (
"github.com/ctfer-io/terraform-provider-ctfd/provider/utils"
"github.com/ctfer-io/terraform-provider-ctfd/v2/provider/utils"
"github.com/hashicorp/terraform-plugin-framework/types"
)

Expand Down
2 changes: 1 addition & 1 deletion provider/challenge_dynamic_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"

"github.com/ctfer-io/go-ctfd/api"
"github.com/ctfer-io/terraform-provider-ctfd/provider/utils"
"github.com/ctfer-io/terraform-provider-ctfd/v2/provider/utils"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/types"
Expand Down
4 changes: 2 additions & 2 deletions provider/challenge_dynamic_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strconv"

"github.com/ctfer-io/go-ctfd/api"
"github.com/ctfer-io/terraform-provider-ctfd/provider/utils"
"github.com/ctfer-io/terraform-provider-ctfd/provider/validators"
"github.com/ctfer-io/terraform-provider-ctfd/v2/provider/utils"
"github.com/ctfer-io/terraform-provider-ctfd/v2/provider/validators"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
Expand Down
2 changes: 1 addition & 1 deletion provider/challenge_standard_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"

"github.com/ctfer-io/go-ctfd/api"
"github.com/ctfer-io/terraform-provider-ctfd/provider/utils"
"github.com/ctfer-io/terraform-provider-ctfd/v2/provider/utils"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/types"
Expand Down
4 changes: 2 additions & 2 deletions provider/challenge_standard_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strconv"

"github.com/ctfer-io/go-ctfd/api"
"github.com/ctfer-io/terraform-provider-ctfd/provider/utils"
"github.com/ctfer-io/terraform-provider-ctfd/provider/validators"
"github.com/ctfer-io/terraform-provider-ctfd/v2/provider/utils"
"github.com/ctfer-io/terraform-provider-ctfd/v2/provider/validators"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/path"
Expand Down
2 changes: 1 addition & 1 deletion provider/file_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strconv"

"github.com/ctfer-io/go-ctfd/api"
"github.com/ctfer-io/terraform-provider-ctfd/provider/utils"
"github.com/ctfer-io/terraform-provider-ctfd/v2/provider/utils"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
Expand Down
4 changes: 2 additions & 2 deletions provider/flag_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strconv"

"github.com/ctfer-io/go-ctfd/api"
"github.com/ctfer-io/terraform-provider-ctfd/provider/utils"
"github.com/ctfer-io/terraform-provider-ctfd/provider/validators"
"github.com/ctfer-io/terraform-provider-ctfd/v2/provider/utils"
"github.com/ctfer-io/terraform-provider-ctfd/v2/provider/validators"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
Expand Down
2 changes: 1 addition & 1 deletion provider/hint_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"

"github.com/ctfer-io/go-ctfd/api"
"github.com/ctfer-io/terraform-provider-ctfd/provider/utils"
"github.com/ctfer-io/terraform-provider-ctfd/v2/provider/utils"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
Expand Down
2 changes: 1 addition & 1 deletion provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"

"github.com/ctfer-io/go-ctfd/api"
"github.com/ctfer-io/terraform-provider-ctfd/provider/utils"
"github.com/ctfer-io/terraform-provider-ctfd/v2/provider/utils"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/provider"
Expand Down
2 changes: 1 addition & 1 deletion provider/provider_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package provider_test

import (
"github.com/ctfer-io/terraform-provider-ctfd/provider"
"github.com/ctfer-io/terraform-provider-ctfd/v2/provider"
"github.com/hashicorp/terraform-plugin-framework/providerserver"
"github.com/hashicorp/terraform-plugin-go/tfprotov6"
)
Expand Down
2 changes: 1 addition & 1 deletion provider/team_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"

"github.com/ctfer-io/go-ctfd/api"
"github.com/ctfer-io/terraform-provider-ctfd/provider/utils"
"github.com/ctfer-io/terraform-provider-ctfd/v2/provider/utils"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
Expand Down
4 changes: 2 additions & 2 deletions provider/user_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strconv"

"github.com/ctfer-io/go-ctfd/api"
"github.com/ctfer-io/terraform-provider-ctfd/provider/utils"
"github.com/ctfer-io/terraform-provider-ctfd/provider/validators"
"github.com/ctfer-io/terraform-provider-ctfd/v2/provider/utils"
"github.com/ctfer-io/terraform-provider-ctfd/v2/provider/validators"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
Expand Down

0 comments on commit 2bfa6e5

Please sign in to comment.