Skip to content

Commit e9de81a

Browse files
authored
Merge pull request #43 from linode/fix-key-crash
Add a debug make target, point to upjet fork to fix key crash
2 parents 18278b7 + afdc9b1 commit e9de81a

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ run: go.build
126126
@# To see other arguments that can be provided, run the command with --help instead
127127
UPBOUND_CONTEXT="local" $(GO_OUT_DIR)/provider --debug
128128

129+
debug: go.build
130+
@$(INFO) Running Crossplane locally out-of-cluster in debug mode . . .
131+
@# To see other arguments that can be provided, run the command with --help instead
132+
UPBOUND_CONTEXT="local" dlv exec $(GO_OUT_DIR)/provider -- --debug
133+
129134
# NOTE(hasheddan): we ensure up is installed prior to running platform-specific
130135
# build steps in parallel to avoid encountering an installation race condition.
131136
build.init: $(UP)

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,5 @@ require (
156156
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
157157
sigs.k8s.io/yaml v1.4.0 // indirect
158158
)
159+
160+
replace github.com/crossplane/upjet => github.com/tchinmai7/upjet v0.0.0-20240725221335-67bd255fdb28

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ github.com/crossplane/crossplane-runtime v1.16.0 h1:lz+l0wEB3qowdTmN7t0PZkfuNSvf
7676
github.com/crossplane/crossplane-runtime v1.16.0/go.mod h1:Pz2tdGVMF6KDGzHZOkvKro0nKc8EzK0sb/nSA7pH4Dc=
7777
github.com/crossplane/crossplane-tools v0.0.0-20240516011917-bfb5045f0903 h1:bL8QbWkmzkdK7swURaaKEFiYS8+ib4fYU74eyRpCrYg=
7878
github.com/crossplane/crossplane-tools v0.0.0-20240516011917-bfb5045f0903/go.mod h1:cN0Y7PFGQMM8mcagXVCbeQoKtipmFWQTPZYyziCPBUI=
79-
github.com/crossplane/upjet v1.4.0 h1:twKCU8omU7VAA7E5fpbQkqDHjVnoTb8EXqmB805Q37o=
80-
github.com/crossplane/upjet v1.4.0/go.mod h1:3pDVtCgyBc5f2Zx4K5HEPxxhjndmOc5CHCJNpIivK/g=
8179
github.com/dave/jennifer v1.7.0 h1:uRbSBH9UTS64yXbh4FrMHfgfY762RD+C7bUPKODpSJE=
8280
github.com/dave/jennifer v1.7.0/go.mod h1:nXbxhEmQfOZhWml3D1cDK5M1FLnMSozpbFN/m3RmGZc=
8381
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
@@ -312,6 +310,8 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
312310
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
313311
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
314312
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
313+
github.com/tchinmai7/upjet v0.0.0-20240725221335-67bd255fdb28 h1:BM/ZcFrf0mZVDtfZHv1dPTu2AO4H10xYaX42Fkx62YY=
314+
github.com/tchinmai7/upjet v0.0.0-20240725221335-67bd255fdb28/go.mod h1:wkdZf/Cvhr6PI30VdHIOjg4dX39Z5uijqnLWFk5PbGM=
315315
github.com/tmccombs/hcl2json v0.3.3 h1:+DLNYqpWE0CsOQiEZu+OZm5ZBImake3wtITYxQ8uLFQ=
316316
github.com/tmccombs/hcl2json v0.3.3/go.mod h1:Y2chtz2x9bAeRTvSibVRVgbLJhLJXKlUeIvjeVdnm4w=
317317
github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk=

0 commit comments

Comments
 (0)