Commit Graph

1825 Commits (f-func-expandnull)

Author SHA1 Message Date
Alisdair McDiarmid 21d80a26ea command: Fix fmt to preserve blank block labels
6 years ago
Pam Selle e39e0e3d04 Remove vendor provisioners and add fmt Make target
6 years ago
Alisdair McDiarmid 10cc25fc21 terraform: Compare locks and provider requirements
6 years ago
James Bardin e7b2d98ca3 Use prepared config in provider.Configure
6 years ago
Alisdair McDiarmid b90994deac
Merge pull request #26735 from hashicorp/alisdair/disable-terraform-state-file-version-check
6 years ago
Martin Atkins d24fdce5b8 command/format: Include unknown values in diagnostics
6 years ago
James Bardin d1ac382ec9
Merge pull request #26738 from hashicorp/jbardin/eval-diagnostics
6 years ago
Alisdair McDiarmid dc2e7520e5 states: Disable Terraform version check
6 years ago
Pam Selle 92a8d2061c
Merge pull request #26739 from hashicorp/pselle/show-json
6 years ago
Pam Selle f61a342311 Hide sensitive outputs in terraform show
6 years ago
Pam Selle 66091ae36c Unmark values before showing in JSON
6 years ago
James Bardin f987b69777 interrupted execution now exits with an error
6 years ago
Martin Atkins c94a6102df command: Improve consistency of the command short descriptions
6 years ago
Martin Atkins 39504ede05 command: Remove the useless "debug" subcommand
6 years ago
James Bardin f8893785f0 separate core and provider loggers
6 years ago
James Bardin bc1a841d65
Merge pull request #26665 from hashicorp/jbardin/logging
6 years ago
James Bardin ef4fee5acb warnings are now on stderr
6 years ago
James Bardin c2af5333e8 use a log sink to capture logs for panicwrap
6 years ago
Bishwa Shrestha c41336bc77
Exit with error if UI input scan fails (#26509)
6 years ago
Alisdair McDiarmid 7a31e56cb7
Merge pull request #26637 from hashicorp/alisdair/fix-locksfile-unconstrained-versions
6 years ago
Kristin Laemmert 9d623290f4 command/e2etest: do not leave bad directories behind
6 years ago
Alisdair McDiarmid 9576a5b2d8 internal: Fix lockfile constraint output for 1.2.*
6 years ago
James Bardin 0b31ffa587 use a single log writer
6 years ago
James Bardin abf6b9b378 get properly configured hcloggers
6 years ago
James Bardin 6ca477f042 move helper/logging to internal
6 years ago
Martin Atkins 30204ecded command/cliconfig: Allow development overrides for providers
6 years ago
James Bardin 1ecd86d08e
Merge pull request #26155 from hashicorp/unused-env-var
6 years ago
Martin Atkins 55e6f64977 internal/depsfile: Factor out our atomic file replacement logic
6 years ago
Martin Atkins e70ab09bf1 command: new cache directory .terraform/providers for providers
6 years ago
Alisdair McDiarmid c798dc98db command: Show diffs when only sensitivity changes
6 years ago
James Bardin 5eca0788c6 rely solely on the plan changes for outputs
6 years ago
James Bardin 03640057be
Merge pull request #26533 from hashicorp/jbardin/plan-output-changes
6 years ago
James Bardin d2514a9abd update new outputs plan json
6 years ago
Martin Atkins e1cf0ac801 internal/depsfile: Control how the "hashes" value is formatted
6 years ago
Martin Atkins e270291f19 command: terraform providers lock
6 years ago
Martin Atkins 2611e08430 command/init: Mention using the lock file for provider selection
6 years ago
Martin Atkins b3f5c7f1e6 command/init: Read, respect, and update provider dependency locks
6 years ago
Pam Selle eb2a027684
Merge pull request #26518 from hashicorp/pselle/sensitive-experiment
6 years ago
James Bardin 57a47d0b82
Merge pull request #26519 from hashicorp/jbardin/FIXME
6 years ago
James Bardin 027a6c2cf6 update command tests to use new mock provider
6 years ago
Pam Selle bc57c20d10 Remove sensitive_variables experiment
6 years ago
Kristin Laemmert 04be220f5f deprecate helper/copy
6 years ago
Alisdair McDiarmid d05e3b40bf
Merge pull request #26492 from hashicorp/alisdair/sensitive-value-force-replacement
6 years ago
Kristin Laemmert d2e999ba1f
remove unused code (#26503)
6 years ago
Alisdair McDiarmid 62e6f56a50 command: Fix missing force new for sensitive blocks
6 years ago
Alisdair McDiarmid 79a3e33c4d command: Fix missing force new for sensitive vars
6 years ago
Alisdair McDiarmid eb873f5021
Merge pull request #25725 from FGtatsuro/diff_heredoc_hyphen
6 years ago
Pam Selle c57ca152e6 Obfuscate sensitive vals in console
6 years ago
Kristin Laemmert 3933cbd491
remove LegacyProvider (#26433)
6 years ago
Pam Selle 111aadd0f0 Extend tests further
6 years ago
Pam Selle 55c96da27e Move nested block printing to own method for readability
6 years ago
Pam Selle 2ec95f1abc Make an after val unknown to exercise the known check
6 years ago
Pam Selle 73b1d8b0d1 Add special diff for nested blocks
6 years ago
Pam Selle 6617c2729c Test additions for nested blocks
6 years ago
Pam Selle 3e7be13dff Update ordering for marking/unmarking and asserting plan valid
6 years ago
Pam Selle 26f77564d7
Merge pull request #26459 from hashicorp/pselle/sensitive-vals-map
6 years ago
Pam Selle 1817c8ac3c
Merge pull request #26412 from OwenTuz/issue-26411-fix-failing-e2e-test-provider-not-found
6 years ago
Pam Selle 52b6f7f53e Move common IsMarked checks above switch statement
6 years ago
Pam Selle 1780351636 If the whole map is marked, have the same sensitivity behavior as a single value
6 years ago
Pam Selle 0520f143a2 Add diff coverage for maps
6 years ago
Kristin Laemmert d76cfc8c0c
Merge pull request #26440 from hashicorp/mildwonkey/remove-older-state-vs
6 years ago
Kristin Laemmert 479655ad47 refactor tests to use modern states.State in favor of terraform.State where possible
6 years ago
James Bardin c51104fb7c
Merge pull request #26435 from hashicorp/jbardin/races
6 years ago
James Bardin 59110a2ca5 e2etest server was unsynchronized
6 years ago
Martin Atkins 59b116f7bf command/init: Remove support for legacy provider addresses
6 years ago
Owen Tuz 5453147381 Fix bad string match that was causing TestInitProviderNotFound to fail on Macs
6 years ago
Martin Atkins f53264d378 command/init: Better error message for provider unsupported platform
6 years ago
Martin Atkins 0b734a2803 command: Make provider installation interruptible
6 years ago
Martin Atkins f0ccee854c command/0.13upgrade: Remove this subcommand
6 years ago
Kristin Laemmert fc94c819e5
command: remove unused method on pluginSHA256LockFile (#26402)
6 years ago
Nick McClendon 529ee04269
Fix taint and untaint commands when in a workspace (#22467)
6 years ago
Martin Atkins ff0dbd6215 command/fmt: Restore some opinionated behaviors
6 years ago
Martin Atkins 7951a6db0d command/fmt: Format using the full hclwrite syntax tree
6 years ago
Martin Atkins 05f6a62399 command/fmt: Factor out the actual formatting
6 years ago
Pam Selle 40ea3f4cb8
Merge pull request #26373 from hashicorp/pselle/sensitive-vals-list
6 years ago
Pam Selle 634e83ab63 Change sensitivity warning to be yellow only on 'Warning'
6 years ago
Pam Selle 3dde9efc75 Support list diffs with sensitivity
6 years ago
Pam Selle f2f84003ee
Merge pull request #26367 from hashicorp/pselle/sensitive-diff-format
6 years ago
Martin Atkins 6694cfaa0e getproviders: Add a real type Hash for package hashes
6 years ago
Pam Selle 5b549224ae Refactor to call ContainsMarked less and use len() instead
6 years ago
Alisdair McDiarmid 60c469b4a5
Merge pull request #26345 from hashicorp/alisdair/taint-should-respect-required-version
6 years ago
Pam Selle 3c9fad0b0e Move plan action check into the sensitivity warning method
6 years ago
Pam Selle 531728f6e9 Sensitive diffs for primitive types
6 years ago
Pam Selle 20921dbfb8 Add warning about sensitivity change
6 years ago
Pam Selle 0a02e7040f
Store sensitive attribute paths in state (#26338)
6 years ago
James Bardin 2e5366ac69 remove -mod=vendor from command tests
6 years ago
Alisdair McDiarmid 14a233b019 command: Taint should respect required_version
6 years ago
Alisdair McDiarmid 18f9ea53b9 command: Providers schema shows required_providers
6 years ago
James Bardin ab06f0c9f8 we can roll back the e2e tests
6 years ago
James Bardin c3182bd589 mock provider needs to return a valid response
6 years ago
James Bardin 3b3ff98356 Revert "fix show -json tests"
6 years ago
James Bardin 86dd8938c9 data sources now show up in the initial plan
6 years ago
James Bardin e54949f2e1 fix show -json tests
6 years ago
James Bardin ad5899d8bb ReadResource is called during plan but not destroy
6 years ago
Joe Ceresini 04b39372b0 Add scopes support to password grant type
6 years ago
Joe Ceresini 2ffa84a4de Add command/login test for scopes
6 years ago
Joe Ceresini 2acb7fac9f Include scopes in login URL
6 years ago
Alisdair McDiarmid 8b2b569d6e repl: Improved value renderer for console outputs
6 years ago
Pam Selle 6a126df0c6
Merge pull request #26183 from hashicorp/pselle/sensitive-values
6 years ago
Pam Selle 8d8389da74 Add diff test with a sensitive change
6 years ago
Alisdair McDiarmid 59662c01af vendor: Upgrade mitchellh/cli
6 years ago
Pam Selle e4e16ccbd3 Rebase fix
6 years ago
Pam Selle 61c78fd3b9 Add case to compactValueStr not to expose sensitive vals in diagnostics
6 years ago
Pam Selle bc55b6a28b Use UnmarkDeepWithPaths and MarkWithPaths
6 years ago
Pam Selle 896d277a69 If the path is empty, we should not be marking the path
6 years ago
Pam Selle 84d118e18f Track sensitivity through evaluation
6 years ago
Alisdair McDiarmid 09d8355f43 command: Add experimental concise diff renderer
6 years ago
Paul Tyng f3ff843ffd Remove unused env var TF_SKIP_PROVIDER_VERIFY
6 years ago
Alisdair McDiarmid 1c8a7f65d0
Merge pull request #26137 from hashicorp/alisdair/output-changes-tests
6 years ago
Martin Atkins efe78b2910 main: new global option -chdir
6 years ago
Alisdair McDiarmid ba9baac36d command: Add tests for format.OutputChanges
6 years ago
Graham Hargreaves e9394dfb38
command/clistate: Return an error on unlock failure (#25729)
6 years ago
Alisdair McDiarmid 9f824c53a5 command: Better in-house provider install errors
6 years ago
Alisdair McDiarmid 3547f9e368 format: Don't wrap space-prefixed diag details
6 years ago
Alisdair McDiarmid 6d228cc560
Merge pull request #26036 from hashicorp/alisdair/output-empty-should-be-warning
6 years ago
Alisdair McDiarmid 89e8d0868a
Merge pull request #26061 from hashicorp/alisdair/013upgrade-registry-provider-redirect
6 years ago
Kristin Laemmert 196c183dda
terraform: remove state from `validate` graph walk (#26063)
6 years ago
Alisdair McDiarmid fc7e467d19 command: Add redirect support to 0.13upgrade
6 years ago
Pam Selle f2d213c461
Merge pull request #25657 from pdecat/typo_hierarchical
6 years ago
Alisdair McDiarmid 2323e9370a command: Warn instead of error for empty output
6 years ago
Alisdair McDiarmid 45437721c9 command: Add test for backend config validation
6 years ago
Alisdair McDiarmid f028b0a2bf command: Fix backend config schema validation
6 years ago
Alisdair McDiarmid c5d9935c0e
Merge pull request #25960 from hashicorp/alisdair/backend-config-override-fix
6 years ago
Alisdair McDiarmid 35125717b2
Merge pull request #25847 from zachwhaley/fix-tf-cli-args-no-color
6 years ago
Alisdair McDiarmid 19efd7bc3b
Merge pull request #25262 from hashicorp/alisdair/always-validate-workspace-name
6 years ago
Alisdair McDiarmid 677aabc767 command: Fix backend config override validation
6 years ago
Cameron Stitt 54e32652f7
Ensure depends_on is in module calls for config
6 years ago
Alisdair McDiarmid 30c7dfca62
Merge pull request #25898 from hashicorp/alisdair/fix-required-version-diags
6 years ago
Alisdair McDiarmid 3114e2ad7c
Merge pull request #25890 from hashicorp/import-our-nemesis
6 years ago
kmoe 6486b857d6
Merge pull request #25811 from hashicorp/terraform-version-order
6 years ago
Alisdair McDiarmid c98f352dc8 terraform: Fix required version constraint diags
6 years ago
Alisdair McDiarmid d8e9964363 terraform: Eval module call arguments for import
6 years ago
Zachary Whaley af8d5a69d8 Fix error when TF_CLI_ARGS adds -no-color argument
6 years ago
Katy Moe e59553ef02
test outdated version output
6 years ago
James Bardin 1c09df1a66
Merge pull request #25779 from hashicorp/jbardin/remove-state-attrs
6 years ago
Katy Moe 25337b7217
fix outdated message output order
6 years ago
Alisdair McDiarmid 96d2265ddb command: Add test for invalid selected workspace
6 years ago
Alisdair McDiarmid 8252920e9a command: Allow workspace delete with invalid name
6 years ago
Alisdair McDiarmid b239570abb command: Always validate workspace name
6 years ago
Alisdair McDiarmid ef65f552c8
Merge pull request #25647 from hashicorp/alisdair/remove-stubbed-out-apply-diff-code
6 years ago
Alisdair McDiarmid 17e1c9dd05 command: Fix state mv for only resource in module
6 years ago
Kristin Laemmert 6621501ae3
state: remove deprecated state package (#25490)
6 years ago
Kristin Laemmert 86e9ba3d65
* backend/local: push responsibility for unlocking state into individual operations
6 years ago
James Bardin 99cd3ab223 fix command tests
6 years ago
FGtatsuro b6cf1c3673 Use valid heredoc begin symbol in diff output.
6 years ago
Patrick Decat 062865735f Typo: heirarchical => hierarchical
6 years ago
Alisdair McDiarmid ee19b0d6c5 command: Remove stubbed-out apply diff output code
6 years ago
Kristin Laemmert f8e3456867
command/show: fix bug displaying provider config in json output of tf plan (#25577)
6 years ago
Alisdair McDiarmid 53e587e1a6
Merge pull request #25504 from hashicorp/alisdair/post-install-cache-validate
6 years ago
Martin Atkins 7909dd318d command/init: Specialized error message for host that isn't registry
6 years ago
Martin Atkins 80ab867e57 command/init: Remove special 0.12upgrade heuristic
6 years ago
Alisdair McDiarmid 87d1fb4006 command/init: Display provider validation errors
6 years ago
Alisdair McDiarmid a18b531b14 getproviders: FakeInstallablePackageMeta filename
6 years ago
Alisdair McDiarmid 8e87ccb689 providercache: Lazily detect executable file
6 years ago
Kristin Laemmert 604e65bb62 Revert "backend/local: release lock if there is an error in Context() (#25427)"
6 years ago
Kristin Laemmert 1ba0d615e7
backend/local: release lock if there is an error in Context() (#25427)
6 years ago
Kristin Laemmert df244b87c2
command/init: return an error with invalid -backend-config files (#25411)
6 years ago
Alisdair McDiarmid b4cc77b6cd
Merge pull request #25379 from hashicorp/alisdair/yes
6 years ago
Alisdair McDiarmid f6f707c669
Merge pull request #25381 from hashicorp/alisdair/013upgrade-preserves-more-comments
6 years ago
Alisdair McDiarmid 779fe37a1c command/login: Require "yes" to confirm
6 years ago
Kristin Laemmert 47e657c611
internal/getproviders: decode and return any registry warnings (#25337)
6 years ago
James Bardin 98ff2065bc
Merge pull request #25377 from hashicorp/jbardin/remote-state
6 years ago
Alisdair McDiarmid b6739829e7 command: Fix 0.13upgrade to preserve more comments
6 years ago
James Bardin 731b19ab46 e2e test for remote state read
6 years ago
João G. Packer fd47260fdc
command: adjust exit code of state rm (#22300)
6 years ago
Alisdair McDiarmid f714a9da79
Merge pull request #25352 from hashicorp/alisdair/fix-import-allow-missing-config
6 years ago
Alisdair McDiarmid 550d75f5ce
Merge pull request #25300 from hashicorp/alisdair/fix-init-flags-silent-exit
6 years ago
Alisdair McDiarmid 9ab9ef6291 command/import: Fix allow-missing-config option
6 years ago
Alisdair McDiarmid 820ed48813 command: Fix init flags silent exit bug
6 years ago
Alisdair McDiarmid 0ed04d05aa command: Fix command fixture modify-in-place bugs
6 years ago
Alisdair McDiarmid 163c943e9b command: Fix bug with -v/-version/--version flags
6 years ago
Katy Moe 6b3d0ee64b add test for terraform version
6 years ago
Katy Moe dbe139e616 add test for terraform version -json
6 years ago
Katy Moe d8e22f1804 add terraform version -json
6 years ago
Alisdair McDiarmid d2b215f4d5 command: Fix test cleanup
6 years ago
James Bardin b35a56cf6e command tests looked for providers in the graphs
6 years ago
Alisdair McDiarmid 7d4cab126f
Merge pull request #25233 from hashicorp/alisdair/remove-implicit-init-then-apply
6 years ago
Kristin Laemmert b611bd7209 reproduction test
6 years ago
Alisdair McDiarmid 0d614a8d01 command/apply: Remove implicit init call
6 years ago
Alisdair McDiarmid 08b735984a
Merge pull request #25191 from hashicorp/alisdair/better-provider-upgrade-hints-on-init
6 years ago
Martin Atkins 17feb2abfc vendor: go get github.com/apparentlymart/go-versions@v1.0.0
6 years ago
Alisdair McDiarmid 9263b28e99 command/init: Improve diags for legacy providers
6 years ago
Kristin Laemmert 5450e8515d
command/013upgrade: detect builtin terraform provider (#25215)
6 years ago
Alisdair McDiarmid 1c1e4a4de0 command/providers: Show provider requirements tree
6 years ago
Masayuki Morita ee913a1c87
command/0.13upgrade: make confirmation more user-friendly (#25142)
6 years ago
Alisdair McDiarmid c87c0a9d2a command/format: Fix empty overlap diagnostics
6 years ago
Shunsuke Miyoshi dc3ce1bbf7
command/refresh: fix state file path (#22885)
6 years ago
Alisdair McDiarmid fbb966b97b command: Fix 0.13upgrade usage
6 years ago
Masayuki Morita f266956a5d Add `-yes` flag to 0.13upgrade help message
6 years ago
Martin Atkins 49e2e00231 command: terraform providers mirror
6 years ago
Alisdair McDiarmid 5e2b11657e command: Fix 0.12upgrade stub
6 years ago
Kristin Laemmert 020084f6d0 update e2etests for windows compatibility
6 years ago
Alisdair McDiarmid 83482770c4
Merge pull request #25055 from hashicorp/alisdair/detected-legacy-provider-on-init
6 years ago
Martin Atkins 31a4b44d2e backend/local: treat output changes as side-effects to be applied
6 years ago
Alisdair McDiarmid ca40107066 command/init: Better diagnostics for provider 404s
6 years ago
Alisdair McDiarmid ef28671b34
Merge pull request #24932 from hashicorp/signing-language
6 years ago
Paddy 5127f1ef8b
command: Unmanaged providers
6 years ago
Alisdair McDiarmid 5d0b75df7a
Merge pull request #25013 from hashicorp/alisdair/ui-data-source-read
6 years ago
Paul Tyng 22ef5cc99c Modify language for reporting signing state
6 years ago
Alisdair McDiarmid 62d826e066 command/init: Use full config for provider reqs
6 years ago