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
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"golang.org/x/xerrors"
"github.com/coder/coder/coderd/util/ptr"
"github.com/coder/coder/v2/coderd/util/ptr"
)
// @typescript-generate AccessURLReport
+2 -2
View File
@@ -11,8 +11,8 @@ import (
"github.com/stretchr/testify/require"
"golang.org/x/xerrors"
"github.com/coder/coder/coderd/coderdtest"
"github.com/coder/coder/coderd/healthcheck"
"github.com/coder/coder/v2/coderd/coderdtest"
"github.com/coder/coder/v2/coderd/healthcheck"
)
func TestAccessURL(t *testing.T) {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"golang.org/x/exp/slices"
"golang.org/x/xerrors"
"github.com/coder/coder/coderd/database"
"github.com/coder/coder/v2/coderd/database"
)
// @typescript-generate DatabaseReport
+3 -3
View File
@@ -10,9 +10,9 @@ import (
"github.com/stretchr/testify/require"
"golang.org/x/xerrors"
"github.com/coder/coder/coderd/database/dbmock"
"github.com/coder/coder/coderd/healthcheck"
"github.com/coder/coder/testutil"
"github.com/coder/coder/v2/coderd/database/dbmock"
"github.com/coder/coder/v2/coderd/healthcheck"
"github.com/coder/coder/v2/testutil"
)
func TestDatabase(t *testing.T) {
+1 -1
View File
@@ -21,7 +21,7 @@ import (
"tailscale.com/types/key"
tslogger "tailscale.com/types/logger"
"github.com/coder/coder/coderd/util/ptr"
"github.com/coder/coder/v2/coderd/util/ptr"
)
// @typescript-generate DERPReport
+3 -3
View File
@@ -17,9 +17,9 @@ import (
"tailscale.com/tailcfg"
"tailscale.com/types/key"
"github.com/coder/coder/coderd/healthcheck"
"github.com/coder/coder/tailnet"
"github.com/coder/coder/testutil"
"github.com/coder/coder/v2/coderd/healthcheck"
"github.com/coder/coder/v2/tailnet"
"github.com/coder/coder/v2/testutil"
)
//nolint:tparallel
+3 -3
View File
@@ -10,9 +10,9 @@ import (
"tailscale.com/tailcfg"
"github.com/coder/coder/buildinfo"
"github.com/coder/coder/coderd/database"
"github.com/coder/coder/coderd/util/ptr"
"github.com/coder/coder/v2/buildinfo"
"github.com/coder/coder/v2/coderd/database"
"github.com/coder/coder/v2/coderd/util/ptr"
)
const (
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/coder/coder/coderd/healthcheck"
"github.com/coder/coder/v2/coderd/healthcheck"
)
type testChecker struct {
+2 -2
View File
@@ -11,8 +11,8 @@ import (
"github.com/stretchr/testify/require"
"golang.org/x/xerrors"
"github.com/coder/coder/coderd/healthcheck"
"github.com/coder/coder/testutil"
"github.com/coder/coder/v2/coderd/healthcheck"
"github.com/coder/coder/v2/testutil"
)
func TestWebsocket(t *testing.T) {