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:
Kyle Carberry
2023-08-18 18:55:43 +00:00
committed by GitHub
parent 0d40e7fe24
commit 22e781eced
626 changed files with 5834 additions and 5834 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/coder/coder/coderd/database (interfaces: Store)
// Source: github.com/coder/coder/v2/coderd/database (interfaces: Store)
// Package dbmock is a generated GoMock package.
package dbmock
@@ -10,8 +10,8 @@ import (
reflect "reflect"
time "time"
database "github.com/coder/coder/coderd/database"
rbac "github.com/coder/coder/coderd/rbac"
database "github.com/coder/coder/v2/coderd/database"
rbac "github.com/coder/coder/v2/coderd/rbac"
gomock "github.com/golang/mock/gomock"
uuid "github.com/google/uuid"
)
+1 -1
View File
@@ -1,4 +1,4 @@
// package dbmock contains a mocked implementation of the database.Store interface for use in tests
package dbmock
//go:generate mockgen -destination ./dbmock.go -package dbmock github.com/coder/coder/coderd/database Store
//go:generate mockgen -destination ./dbmock.go -package dbmock github.com/coder/coder/v2/coderd/database Store