mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
chore: add /v2 to import module path (#9072)
* chore: add /v2 to import module path go mod requires semantic versioning with versions greater than 1.x This was a mechanical update by running: ``` go install github.com/marwan-at-work/mod/cmd/mod@latest mod upgrade ``` Migrate generated files to import /v2 * Fix gen
This commit is contained in:
@ -7,7 +7,7 @@ import (
|
||||
|
||||
"github.com/open-policy-agent/opa/ast"
|
||||
|
||||
"github.com/coder/coder/coderd/rbac/regosql/sqltypes"
|
||||
"github.com/coder/coder/v2/coderd/rbac/regosql/sqltypes"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"github.com/open-policy-agent/opa/rego"
|
||||
"golang.org/x/xerrors"
|
||||
|
||||
"github.com/coder/coder/coderd/rbac/regosql/sqltypes"
|
||||
"github.com/coder/coder/v2/coderd/rbac/regosql/sqltypes"
|
||||
)
|
||||
|
||||
// ConvertConfig is required to generate SQL from the rego queries.
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
"github.com/open-policy-agent/opa/rego"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/coder/coder/coderd/rbac/regosql"
|
||||
"github.com/coder/coder/coderd/rbac/regosql/sqltypes"
|
||||
"github.com/coder/coder/v2/coderd/rbac/regosql"
|
||||
"github.com/coder/coder/v2/coderd/rbac/regosql/sqltypes"
|
||||
)
|
||||
|
||||
// TestRegoQueriesNoVariables handles cases without variables. These should be
|
||||
|
@ -1,6 +1,6 @@
|
||||
package regosql
|
||||
|
||||
import "github.com/coder/coder/coderd/rbac/regosql/sqltypes"
|
||||
import "github.com/coder/coder/v2/coderd/rbac/regosql/sqltypes"
|
||||
|
||||
func resourceIDMatcher() sqltypes.VariableMatcher {
|
||||
return sqltypes.StringVarMatcher("id :: text", []string{"input", "object", "id"})
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/coder/coder/coderd/rbac/regosql/sqltypes"
|
||||
"github.com/coder/coder/v2/coderd/rbac/regosql/sqltypes"
|
||||
)
|
||||
|
||||
func TestEquality(t *testing.T) {
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/coder/coder/coderd/rbac/regosql/sqltypes"
|
||||
"github.com/coder/coder/v2/coderd/rbac/regosql/sqltypes"
|
||||
)
|
||||
|
||||
func TestMembership(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user