Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Use explicit root directory so that generator can be run from anywhere #145

Merged
merged 1 commit into from
Nov 16, 2021

Conversation

muvaf
Copy link
Member

@muvaf muvaf commented Nov 16, 2021

Description of your changes

This change lets the developer of the provider choose how they take the root dir by not enforcing an implicit contract by Terrajet like having to run it from the top level directory.

The main reason I wanted to do this is that I'd like to run go run ../cmd/generator/main.go from apis/generate.go and that won't work because the license header path is calculated as relative path.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Manually with provider-tf-aws.

…rmation

so that generator can be run from anywhere.

Signed-off-by: Muvaffak Onus <me@muvaf.com>
Copy link
Member

@turkenh turkenh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@muvaf muvaf merged commit 48755e9 into crossplane:main Nov 16, 2021
@muvaf muvaf deleted the boilerplate branch November 16, 2021 10:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants