mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +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:
@ -81,7 +81,7 @@ func allResources(pkg *packages.Package) []string {
|
||||
names := pkg.Types.Scope().Names()
|
||||
for _, name := range names {
|
||||
obj, ok := pkg.Types.Scope().Lookup(name).(*types.Var)
|
||||
if ok && obj.Type().String() == "github.com/coder/coder/coderd/rbac.Object" {
|
||||
if ok && obj.Type().String() == "github.com/coder/coder/v2/coderd/rbac.Object" {
|
||||
resources = append(resources, obj.Name())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user