Skip to content

Commit 702b064

Browse files
authored
refactor: split coderd/gitauth into two, add cli/gitauth (#9479)
* refactor: split coderd/gitauth into two, add cli/gitauth Ref: #9380
1 parent d8718c3 commit 702b064

File tree

7 files changed

+5
-5
lines changed

7 files changed

+5
-5
lines changed

agent/agent.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ import (
3737
"github.com/coder/coder/v2/agent/agentssh"
3838
"github.com/coder/coder/v2/agent/reconnectingpty"
3939
"github.com/coder/coder/v2/buildinfo"
40+
"github.com/coder/coder/v2/cli/gitauth"
4041
"github.com/coder/coder/v2/coderd/database"
41-
"github.com/coder/coder/v2/coderd/gitauth"
4242
"github.com/coder/coder/v2/codersdk"
4343
"github.com/coder/coder/v2/codersdk/agentsdk"
4444
"github.com/coder/coder/v2/tailnet"

cli/gitaskpass.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
"github.com/coder/coder/v2/cli/clibase"
1313
"github.com/coder/coder/v2/cli/cliui"
14-
"github.com/coder/coder/v2/coderd/gitauth"
14+
"github.com/coder/coder/v2/cli/gitauth"
1515
"github.com/coder/coder/v2/codersdk"
1616
"github.com/coder/retry"
1717
)
File renamed without changes.

coderd/gitauth/askpass_test.go renamed to cli/gitauth/askpass_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"github.com/stretchr/testify/require"
77

8-
"github.com/coder/coder/v2/coderd/gitauth"
8+
"github.com/coder/coder/v2/cli/gitauth"
99
)
1010

1111
func TestCheckCommand(t *testing.T) {
File renamed without changes.

coderd/gitauth/vscode_test.go renamed to cli/gitauth/vscode_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/spf13/afero"
1111
"github.com/stretchr/testify/require"
1212

13-
"github.com/coder/coder/v2/coderd/gitauth"
13+
"github.com/coder/coder/v2/cli/gitauth"
1414
)
1515

1616
func TestOverrideVSCodeConfigs(t *testing.T) {

cli/root.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import (
3535
"github.com/coder/coder/v2/cli/clibase"
3636
"github.com/coder/coder/v2/cli/cliui"
3737
"github.com/coder/coder/v2/cli/config"
38-
"github.com/coder/coder/v2/coderd/gitauth"
38+
"github.com/coder/coder/v2/cli/gitauth"
3939
"github.com/coder/coder/v2/coderd/telemetry"
4040
"github.com/coder/coder/v2/codersdk"
4141
"github.com/coder/coder/v2/codersdk/agentsdk"

0 commit comments

Comments
 (0)