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

command: Better in-house provider install errors #26066

Merged
merged 3 commits into from
Sep 1, 2020

Commits on Sep 1, 2020

  1. format: Don't wrap space-prefixed diag details

    Diagnostic detail lines sometimes contain lines which include commands
    suggested for the user to execute. By convention, these start with
    leading whitespace to indicate that they are not prose.
    
    This commit changes the diagnostic formatter to wrap each line of the
    detail separately, and skips word wrapping for lines prefixed with
    space. This prevents ugly and confusing wrapping of long command lines.
    alisdair committed Sep 1, 2020
    Configuration menu
    Copy the full SHA
    3547f9e View commit details
    Browse the repository at this point in the history
  2. command: Better in-house provider install errors

    When init attempts to install a legacy provider required by state and
    fails, but another provider with the same type is successfully
    installed, this almost definitely means that the user is migrating an
    in-house provider. The solution here is to use the `terraform state
    replace-provider` subcommand.
    
    This commit makes that next step clearer, by detecting this specific
    case, and displaying a list of commands to fix the existing state
    provider references.
    alisdair committed Sep 1, 2020
    Configuration menu
    Copy the full SHA
    9f824c5 View commit details
    Browse the repository at this point in the history
  3. website: Update 0.13 upgrade for legacy providers

    The error diagnostic shown when legacy state contains resources from
    in-house providers has changed, so update references to it in the 0.13
    upgrade guide.
    alisdair committed Sep 1, 2020
    Configuration menu
    Copy the full SHA
    f795083 View commit details
    Browse the repository at this point in the history