This project is mirrored from https://:*****@github.com/hashicorp/terraform.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 13 Oct, 2021 2 commits
  2. 12 Oct, 2021 14 commits
  3. 11 Oct, 2021 1 commit
  4. 08 Oct, 2021 10 commits
  5. 07 Oct, 2021 4 commits
  6. 06 Oct, 2021 4 commits
  7. 05 Oct, 2021 5 commits
    • Omar Ismail's avatar
    • Jeff Escalante's avatar
      fix broken logo in readme (#29705) · 44764ffd
      Jeff Escalante authored
      44764ffd
    • Martin Atkins's avatar
      command/e2etest: TestProviderTampering · 01b22f4b
      Martin Atkins authored
      We have various mechanisms that aim to ensure that the installed provider
      plugins are consistent with the lock file and that the lock file is
      consistent with the provider requirements, and we do have existing unit
      tests for them, but all of those cases mock our fake out at least part of
      the process and in the past that's caused us to miss usability
      regressions, where we still catch the error but do so at the wrong layer
      and thus generate error message lacking useful additional context.
      
      Here we'll add some new end-to-end tests to supplement the existing unit
      tests, making sure things work as expected when we assemble the system
      together as we would in a release. These tests cover a number of different
      ways in which the plugin selections can grow inconsistent.
      
      These new tests all run only when we're in a context where we're allowed
      to access the network, because they exercise the real plugin installer
      codepath. We could technically build this to use a local filesyste...
      01b22f4b
    • Martin Atkins's avatar
      command: Early error message for missing cache entries of locked providers · d09510a8
      Martin Atkins authored
      In the original incarnation of Meta.providerFactories we were returning
      into a Meta.contextOpts whose signature didn't allow it to return an
      error directly, and so we had compromised by making the provider factory
      functions themselves return errors once called.
      
      Subsequent work made Meta.contextOpts need to return an error anyway, but
      at the time we neglected to update our handling of the providerFactories
      result, having it still defer the error handling until we finally
      instantiate a provider.
      
      Although that did ultimately get the expected result anyway, the error
      ended up being reported from deep in the guts of a Terraform Core graph
      walk, in whichever concurrently-visited graph node happened to try to
      instantiate the plugin first. This meant that the exact phrasing of the
      error message would vary between runs and the reporting codepath didn't
      have enough context to given an actionable suggestion on how to proceed.
      
      In this commit we make Meta.contextOpts pass through directly any error
      that Meta.providerFactories produces, and then make Meta.providerFactories
      produce a special error type so that Meta.Backend can ultimately return
      a user-friendly diagnostic message containing a specific suggestion to
      run "terraform init", along with a short explanation of what a provider
      plugin is.
      
      The reliance here on an implied contract between two functions that are
      not directly connected in the callstack is non-ideal, and so hopefully
      we'll revisit this further in future work on the overall architecture of
      the CLI layer. To try to make this robust in the meantime though, I wrote
      it to use the errors.As function to potentially unwrap a wrapped version
      of our special error type, in case one of the intervening layers is
      changed at some point to wrap the downstream error before returning it.
      d09510a8
    • James Bardin's avatar
      Merge pull request #29701 from hashicorp/jbardin/proposed-new-null-objs · aece887a
      James Bardin authored
      objchange: fix ProposedNew from null objects
      aece887a