Skip to content

Commit d408d17

Browse files
committed
Migrate generated files to import /v2
1 parent 7c1cd57 commit d408d17

29 files changed

+3565
-3468
lines changed

.swaggo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Replace all NullTime with string
2-
replace github.com/coder/coder/codersdk.NullTime string
2+
replace github.com/coder/coder/v2/codersdk.NullTime string
33
// Prevent swaggo from rendering enums for time.Duration
44
replace time.Duration int64
55
// Do not expose "echo" provider
6-
replace github.com/coder/coder/codersdk.ProvisionerType string
6+
replace github.com/coder/coder/v2/codersdk.ProvisionerType string
77
// Do not render netip.Addr
88
replace netip.Addr string

agent/ports_supported.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/cakturk/go-netstat/netstat"
99
"golang.org/x/xerrors"
1010

11-
"github.com/coder/coder/codersdk"
11+
"github.com/coder/coder/v2/codersdk"
1212
)
1313

1414
func (lp *listeningPortsHandler) getListeningPorts() ([]codersdk.WorkspaceAgentListeningPort, error) {

agent/reaper/reaper_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
"github.com/hashicorp/go-reap"
1515
"github.com/stretchr/testify/require"
1616

17-
"github.com/coder/coder/agent/reaper"
18-
"github.com/coder/coder/testutil"
17+
"github.com/coder/coder/v2/agent/reaper"
18+
"github.com/coder/coder/v2/testutil"
1919
)
2020

2121
// TestReap checks that's the reaper is successfully reaping

cli/server_slim.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"io"
99
"os"
1010

11-
"github.com/coder/coder/cli/clibase"
12-
"github.com/coder/coder/cli/cliui"
13-
"github.com/coder/coder/coderd"
11+
"github.com/coder/coder/v2/cli/clibase"
12+
"github.com/coder/coder/v2/cli/cliui"
13+
"github.com/coder/coder/v2/coderd"
1414
)
1515

1616
func (r *RootCmd) Server(_ func(context.Context, *coderd.Options) (*coderd.API, io.Closer, error)) *clibase.Cmd {

coderd/database/db_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import (
1111
"github.com/lib/pq"
1212
"github.com/stretchr/testify/require"
1313

14-
"github.com/coder/coder/coderd/database"
15-
"github.com/coder/coder/coderd/database/migrations"
16-
"github.com/coder/coder/coderd/database/postgres"
14+
"github.com/coder/coder/v2/coderd/database"
15+
"github.com/coder/coder/v2/coderd/database/migrations"
16+
"github.com/coder/coder/v2/coderd/database/postgres"
1717
)
1818

1919
func TestSerializedRetry(t *testing.T) {

coderd/database/dbmock/dbmock.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/dbmock/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// package dbmock contains a mocked implementation of the database.Store interface for use in tests
22
package dbmock
33

4-
//go:generate mockgen -destination ./dbmock.go -package dbmock github.com/coder/coder/coderd/database Store
4+
//go:generate mockgen -destination ./dbmock.go -package dbmock github.com/coder/coder/v2/coderd/database Store

coderd/database/migrations/migrate_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ import (
2222
"golang.org/x/exp/slices"
2323
"golang.org/x/sync/errgroup"
2424

25-
"github.com/coder/coder/coderd/database/migrations"
26-
"github.com/coder/coder/coderd/database/postgres"
27-
"github.com/coder/coder/testutil"
25+
"github.com/coder/coder/v2/coderd/database/migrations"
26+
"github.com/coder/coder/v2/coderd/database/postgres"
27+
"github.com/coder/coder/v2/testutil"
2828
)
2929

3030
func TestMain(m *testing.M) {

coderd/database/postgres/postgres_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/stretchr/testify/require"
1111
"go.uber.org/goleak"
1212

13-
"github.com/coder/coder/coderd/database/postgres"
13+
"github.com/coder/coder/v2/coderd/database/postgres"
1414
)
1515

1616
func TestMain(m *testing.M) {

coderd/database/pubsub/pubsub_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import (
1515
"github.com/stretchr/testify/require"
1616
"golang.org/x/xerrors"
1717

18-
"github.com/coder/coder/coderd/database/postgres"
19-
"github.com/coder/coder/coderd/database/pubsub"
20-
"github.com/coder/coder/testutil"
18+
"github.com/coder/coder/v2/coderd/database/postgres"
19+
"github.com/coder/coder/v2/coderd/database/pubsub"
20+
"github.com/coder/coder/v2/testutil"
2121
)
2222

2323
// nolint:tparallel,paralleltest

0 commit comments

Comments
 (0)