Skip to content

Commit 0d3de18

Browse files
committed
Add test values
1 parent bc7d95f commit 0d3de18

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ GOARCH=$(shell go env GOARCH)
44

55
bin/coder:
66
mkdir -p bin
7-
GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o bin/coder-$(GOOS)-$(GOARCH) cmd/coder/main.go
7+
CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o bin/coder-$(GOOS)-$(GOARCH) cmd/coder/main.go
88
.PHONY: bin/coder
99

1010
bin/coderd:

coderd/cmd/root.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,13 @@ func Root() *cobra.Command {
3737
Scheme: "http",
3838
Host: address,
3939
}
40+
realAccessURL, err := url.Parse("https://v2--kyle.master.cdr.dev/")
41+
if err != nil {
42+
return xerrors.Errorf("parse real access url: %s", err)
43+
}
44+
4045
handler, closeCoderd := coderd.New(&coderd.Options{
41-
AccessURL: accessURL,
46+
AccessURL: realAccessURL,
4247
Logger: logger,
4348
Database: databasefake.New(),
4449
Pubsub: database.NewPubsubInMemory(),

provisioner/terraform/provision.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,10 @@ func (t *terraform) runTerraformPlan(ctx context.Context, terraform *tfexec.Terr
196196
}
197197
switch authTypeValue {
198198
case "google-instance-identity":
199+
instanceID, _ := block["instance_id"].ConstantValue.(string)
199200
agent.Auth = &proto.Agent_GoogleInstanceIdentity{
200201
GoogleInstanceIdentity: &proto.GoogleInstanceIdentityAuth{
201-
InstanceId: block["instance_id"].ConstantValue.(string),
202+
InstanceId: instanceID,
202203
},
203204
}
204205
default:

0 commit comments

Comments
 (0)