terrajet icon indicating copy to clipboard operation
terrajet copied to clipboard

Update documentation to support non-crossplane-contrib repositories

Open mikebollandajw opened this issue 2 years ago • 2 comments

What problem are you facing?

Hello, the documentation is a bit mysterious when updating the repository variables in the makefile

As most users are not able to contribute to crossplane-contrib projects it seems appropriate to adjust the repo url to your own projects url

However, this prevents 'make generate' from completing as it would require many reference changes in files

How could Terrajet help solve your problem?

Please could you update the guide so it supports users who do not have access to deploy to crossplane-contrib

Ie providing some sort of script to find replacing these values automatically

mikebollandajw avatar Feb 24 '22 11:02 mikebollandajw

Possible solution. In hack/prepare.sh add this line git grep -l 'crossplane-contrib' -- ${REPLACE_FILES} | xargs sed -i.bak "s/crossplane-contrib/<your_repo>/g" <--Add line # Clean up the .bak files created by sed <--This line exists for reference git clean -fd<--This line exists for reference

And, if using Athens server then add to Makefile export GOPROXY := https://proxy.golang.<your_company>.com

perlinger avatar Feb 25 '22 19:02 perlinger

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 13 '22 00:08 stale[bot]