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. 08 Nov, 2021 1 commit
  2. 02 Nov, 2021 1 commit
    • James Bardin's avatar
      update go-cty · ca6d3cf5
      James Bardin authored
      cty: The documented definition and comparison logic of cty.Number is now
      refined to acknowledge that its true range is limited only to values
      that have both a binary floating point and decimal representation,
      because cty values are primarily designed to traverse JSON serialization
      where numbers are always defined as decimal strings.
      
      In particular, that means that two cty.Number values now always compare
      as equal if their representation in JSON (under cty's own JSON encoder)
      would be equal, even though the decimal approximation we use for that
      conversion is slightly lossy. This pragmatic compromise avoids confusing
      situations where a round-trip through JSON serialization (or other
      serializations that use the same number format) may produce a value that
      doesn't compare equal to the original.
      
      This new definition of equals should not cause any significant behavior
      change for any integer in our in-memory storage range, but may cause
      some fractional values to compare equal where they didn't before if they
      differ only by a small fraction.
      ca6d3cf5
  3. 29 Oct, 2021 7 commits
  4. 28 Oct, 2021 1 commit
  5. 16 Oct, 2021 1 commit
  6. 14 Oct, 2021 3 commits
  7. 13 Oct, 2021 1 commit
  8. 12 Oct, 2021 6 commits
  9. 11 Oct, 2021 1 commit
  10. 24 Sep, 2021 1 commit
    • Alisdair McDiarmid's avatar
      build: Add exhaustive switch statement lint · e09bad76
      Alisdair McDiarmid authored
      For now, only check the JSON views package, since this was the instance
      that most recently tripped us up. There are a few dozen failures
      elsewhere in Terraform which would need to be addressed before expanding
      this to other packages.
      e09bad76
  11. 31 Aug, 2021 1 commit
  12. 23 Aug, 2021 1 commit
  13. 20 Aug, 2021 1 commit
    • Martin Atkins's avatar
      build: Centralize our protobuf compilation steps · ce96d82d
      Martin Atkins authored
      We have a few different .proto files in this repository that all need to
      get recompiled into .pb.go files each time we change them, but we were
      previously handling that with some scripts that just assumed that protoc
      and the relevant plugins were already installed on the system somewhere,
      at the right versions.
      
      In practice we've been constantly flopping between different versions of
      these tools due to folks having different versions installed in their
      development environments. In particular, the state of the .pb.go files
      in the prior commit wasn't reproducible by any single version of the tools
      because they've all slightly diverged from one another.
      
      In the interests of being more consistent here and avoiding accidental
      inconsistencies, we'll now centralize the protocol buffer compile steps
      all into a single tool that knows how to fetch and install the expected
      versions of the various tools we need and then run those tools with the
      right options to get a stable result.
      
      If we want to upgrade to either a newer protoc or a newer protoc-gen-go
      in future then we'll do that in a central location and update all of the
      .pb.go files at the same time, so that we're always consistently tracking
      the same version of protocol buffers everywhere.
      
      While doing this I attempted to keep as close as possible to the toolchain
      we'd most recently used, but since they were not consistent with each
      other they've now all changed which version numbers they record at minimum,
      and the planproto stub in particular now also has a slightly different
      descriptor serialization but is otherwise offering the same API.
      ce96d82d
  14. 19 Aug, 2021 3 commits
  15. 18 Aug, 2021 2 commits
  16. 17 Aug, 2021 1 commit
    • Martin Atkins's avatar
      go.mod: Opt in to pruned module graphs · 94f4f8e2
      Martin Atkins authored
      Go 1.17 has a new treatment of go.mod where it tracks more indirect
      dependencies in return for needing to fetch and load fewer transitive
      go.mod files.
      
      This commit opts in to that new treatment and adds all of the additional
      indirect dependencies which contain packages that Terraform directly or
      indirectly makes use of.
      
      There are more details on what's going on here in the "Lazy Module Loading"
      design document:
          http://golang.org/design/36460-lazy-module-loading
      
      (the design document was written assuming this would land in Go 1.15, but
      it actually landed in Go 1.17 and so it's "go 1.17" that selects the new
      behavior in spite of the examples in that document.)
      94f4f8e2
  17. 21 Jul, 2021 1 commit
  18. 20 Jul, 2021 1 commit
    • Kevin Burke's avatar
      go.mod,backend: update coreos/etcd dependency to release-3.4 branch · c047958b
      Kevin Burke authored
      etcd rewrote its import path from coreos/etcd to go.etcd.io/etcd.
      Changed the imports path in this commit, which also updates the code
      version.
      
      This lets us remove the github.com/ugorji/go/codec dependency, which
      was pinned to a fairly old version. The net change is a loss of 30,000
      lines of code in the vendor directory. (I first noticed this problem
      because the outdated go/codec dependency was causing a dependency
      failure when I tried to put Terraform and another project in the same
      vendor directory.)
      
      Note the version shows up funkily in go.mod, but I verified
      visually it's the same commit as the "release-3.4" tag in
      github.com/coreos/etcd. The etcd team plans to fix the release version
      tagging in v3.5, which should be released soon.
      c047958b
  19. 14 Jul, 2021 1 commit
    • Rémi Lapeyre's avatar
      Update the Consul API client · 3c34e15d
      Rémi Lapeyre authored
      Some users would want to use Consul namespaces when using the Consul
      backend but the version of the Consul API client we use is too old and
      don't support them. In preparation for this change this patch just update
      it the client and replace testutil.NewTestServerConfig() by
      testutil.NewTestServerConfigT() in the tests.
      3c34e15d
  20. 07 Jul, 2021 1 commit
  21. 21 Jun, 2021 1 commit
  22. 19 May, 2021 1 commit
  23. 18 May, 2021 1 commit
  24. 04 May, 2021 1 commit