Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update contributor docs to recommend dev overrides #7130

Merged

Conversation

SarahFrench
Copy link
Contributor

@SarahFrench SarahFrench commented Jan 16, 2023

Description

Closes hashicorp/terraform-provider-google#13404

This PR updates the 'Use built provider locally' page of the contributor docs to recommend developer overrides for use during development.

I've decided to remove the old guidance about file system mirrors and put a smaller version of that guidance in the 'More information' section at the bottom. Mainly this is because using developer overrides is the approach recommended by HashiCorp and has advantages like being more explicit and not requiring users to create a fake version number for their local version of the provider.

Screenshots

Note: became outdated after responding to review

Screenshot 2023-01-16 at 17 29 31

Screenshot 2023-01-16 at 17 29 51


If this PR is for Terraform, I acknowledge that I have:

  • Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • Generated Terraform, and ran make test and make lint to ensure it passes unit and linter tests.
  • Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • Ran relevant acceptance tests (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read the Release Notes Guide before writing my release note below.

Release Note Template for Downstream PRs (will be copied)


@SarahFrench
Copy link
Contributor Author

Commit c61af27 changes the updates to use-built-provider.md because it looks like the Makefile in the downstreams still has make build and not the make provider target

@SarahFrench SarahFrench requested a review from melinath January 16, 2023 17:43
@SarahFrench SarahFrench marked this pull request as ready for review January 16, 2023 17:43
Copy link
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

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

A few questions & change requests below.

@SarahFrench SarahFrench requested a review from melinath January 24, 2023 18:58
Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
Copy link
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

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

see discussion above - you were correct to change the commands run inside the provider repos to make build - I saw the change and assumed incorrectly that the previous way was right.

@SarahFrench SarahFrench requested a review from melinath January 25, 2023 18:46
@SarahFrench SarahFrench merged commit 0ae27f3 into GoogleCloudPlatform:main Jan 25, 2023
ericayyliu pushed a commit to ericayyliu/magic-modules that referenced this pull request Jul 26, 2023
…rm#7130)

* Update contributor docs to recommend dev overrides

* Revert `make provider` to `make build` in docs about building binaries

* Update docs/content/docs/getting-started/use-built-provider.md

Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>

* Update docs/content/docs/getting-started/use-built-provider.md

Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>

* Replace example username with gender neutral example

* Remove unneeded section, update opening paragraph(s) with URL from unneeded section

* Add warning about developer overrides needing v0.14+

* Return section advising how to clean up a filesystem mirror, and debug using TF_LOG env

* Update docs/content/docs/getting-started/use-built-provider.md

Co-authored-by: Riley Karson <rileykarson@google.com>

* Apply suggestions from code review - `make provider`

Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>

* Revert `make provider` to `make build` in docs about building binaries

Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
Co-authored-by: Riley Karson <rileykarson@google.com>
@SarahFrench SarahFrench deleted the docs-use-built-provider branch March 26, 2024 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document use of Terraform CLI configuration files in 'Use built provider locally' docs
3 participants