crossplane / crossplane-tools

Experimental code generators for Crossplane controllers.
https://crossplane.io
Apache License 2.0
34 stars 26 forks source link

Support Go modules #6

Closed negz closed 5 years ago

negz commented 5 years ago

Description of your changes

Write the generated files alongside the first Go file of the module, rather than to its presumed path under GOPATH. This change assumes:

I believe the above are always true.

Fixes #5

Checklist

I have:

negz commented 5 years ago

I've tested that this PR still works with an old fashioned $GOPATH setup, but have not yet tested that it works with Go modules.