Commit Graph

31253 Commits

Author SHA1 Message Date
Alan Szlosek Jr
8ab72c249d
add docs meta descriptions (#32771)
* add docs meta descriptions

* cleanups

* remove old docs files

* Apply suggestions from code review

Co-authored-by: rita <8647768+ritsok@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: rita <8647768+ritsok@users.noreply.github.com>

* remove testing-experiment from nav data

---------

Co-authored-by: rita <8647768+ritsok@users.noreply.github.com>
2023-03-15 15:56:34 -04:00
Craig Wright
62d6e84b60
Merge pull request #32855 from amandabasara/patch-3 2023-03-15 12:43:07 -07:00
Amanda B
956627d661
Update index.mdx New PR for pinning providers
New PR for pinning providers
2023-03-15 14:55:28 -04:00
James Bardin
86c0c3bf80
Merge pull request #32846 from hashicorp/fix-32793
emit a warning msg if invalid CLI configuration file location
2023-03-14 14:58:47 -04:00
Reda Khaled
bf723bd65a fix(init_test.go): in TestInitProvidersLocalOnly tst, set TF_CLI_CONFIG_FILE env var to an empty val 2023-03-14 14:47:43 -04:00
Reda Khaled
fa9d044c58 bugfix(cliconfig.go): emit a warning msg if bad CLI config file path 2023-03-14 14:47:43 -04:00
James Bardin
ccb376a189
Merge pull request #32840 from hashicorp/jbardin/render-output-crash
Prevent nil Colorize options when rendering state outputs
2023-03-14 14:28:03 -04:00
Judith Malnick
fcc6b7ac7f
Add TFC to state doc (#32836)
* add TFC to state doc

* Update website/docs/language/state/index.mdx

Co-authored-by: rita <8647768+ritsok@users.noreply.github.com>

---------

Co-authored-by: rita <8647768+ritsok@users.noreply.github.com>
2023-03-14 09:48:53 -07:00
James Bardin
06f1ceb026 add some output values to the show state test 2023-03-14 10:04:37 -04:00
James Bardin
5ed7f2a798 always use the RenderHuman constructor 2023-03-14 10:04:28 -04:00
Liam Cervante
15ecdb66c8
Fix no-op outputs causing the plan renderer to skip the 'no changes' message (#32820)
* Fix no-op outputs causing the plan renderer to skip the 'no changes' message

* fix imports
2023-03-10 16:19:33 +01:00
James Bardin
843befff29
Merge pull request #32818 from hashicorp/jbardin/nil-plan
return early from opPlan when the plan is nil
2023-03-10 09:46:55 -05:00
James Bardin
c02e7e8754 return early from opPlan when the plan is nil
While the returned plan is checked for nil in most cases, there was
a single point where the plan was dereferenced which could panic. Rather
than always guarding the dereferences, return early when the plan is
nil.
2023-03-10 09:34:47 -05:00
Liam Cervante
af05cbb645
Add support for scoped resources (#32732) 2023-03-10 11:11:10 +01:00
Ashlee M Boyer
bb71273f7a
Merge pull request #32814 from hashicorp/ashleemboyer-patch-1
Update check-legacy-links-format.yml
2023-03-09 13:16:44 -05:00
Ashlee M Boyer
b431b4ab80
Update check-legacy-links-format.yml 2023-03-09 13:12:27 -05:00
Omar Ismail
bea8ad355c
website: v1.4 upgrade guide more guidance on who is affected by the provider cache change 2023-03-09 08:23:20 -08:00
Liam Cervante
32f151f20b
Update HCL to handle type mismatches when applying defaults (#32775)
* add test reproducing terraform crash

* pull latest hcl

* add missing go.sum file

* also fix tests broken by go-cty update
2023-03-09 14:29:58 +01:00
Eugene Dementyev
36aac6b498
Fixes depends_on when overriding modules (#32796)
Fixes #32795
2023-03-09 11:53:13 +01:00
Omar Ismail
189820b6ea
Terraform v1.4 Upgrade Guide 2023-03-07 13:53:22 -08:00
Martin Atkins
2a1d98bc06 website: Document TF_PLUGIN_CACHE_MAY_BREAK_DEPENDENCY_LOCK_FILE env var
This is an alternative way to set the CLI configuration setting
plugin_cache_may_break_dependency_lock_file to activate the transitional
compatibility behavior that prefers to break the dependency lock file if
that would create an additional opportunity to use the plugin cache.
2023-03-06 17:17:48 -08:00
Ashlee M Boyer
e793729602
Delete test-link-rewrites.yml 2023-03-06 15:25:37 -05:00
Alisdair McDiarmid
61e89c84d5
Update CHANGELOG.md 2023-03-06 15:03:40 -05:00
Alisdair McDiarmid
b088c67c60
Merge pull request #32781 from hashicorp/alisdair/rip-earlyconfig
initwd: Port from `earlyconfig` to `configs`
2023-03-06 15:02:06 -05:00
Alisdair McDiarmid
fe5ead7095 Fix typo 2023-03-06 14:36:18 -05:00
Alisdair McDiarmid
584811b829 initwd: Add fake range for fake root module
This isn't currently used anywhere downstream, but it easily could be in
the future, so populating the range with some zero-ish data is more
robust.
2023-03-06 14:35:06 -05:00
Alisdair McDiarmid
83befcb18c
Merge pull request #32782 from hashicorp/alisdair/faster-cloud-tests
10x faster cloud tests
2023-03-06 10:12:17 -05:00
Alisdair McDiarmid
ca53ca00f4 Remove failing DNS query in cloud tests
This test case was making a real DNS call in a non-acceptance test, and
since it was intended to fail it would introduce a several second delay.
This commit replaces the test with a similar one which uses the mocked
disco services for a non-TFE host.

Also restructure the test to use t.Run for clarity.
2023-03-06 09:32:03 -05:00
Alisdair McDiarmid
19e635bfc8 Remove polling delays in run tasks test
These delays are not relevant to the test and result in increased test
execution time.
2023-03-06 09:14:59 -05:00
Alisdair McDiarmid
d9eae48a75 Remove redundant CheckCoreVersionRequirements 2023-03-06 09:14:28 -05:00
Alisdair McDiarmid
5e83ccc1f9 Remove terraform-config-inspect 2023-03-06 09:14:28 -05:00
Alisdair McDiarmid
60ea68edc7 Remove earlyconfig 2023-03-06 09:14:28 -05:00
Alisdair McDiarmid
8df065a2fe initwd: Switch from earlyconfig to configs
This is a mostly mechanical refactor with a handful of changes which
are necessary due to the semantic difference between earlyconfig and
configs.

When parsing root and descendant modules in the module installer, we now
check the core version requirements inline. If the Terraform version is
incompatible, we drop any other module loader diagnostics. This ensures
that future language additions don't clutter the output and confuse the
user.

We also add two new checks during the module load process:

* Don't try to load a module with a `nil` source address. This is a
  necessary change due to the move away from earlyconfig.

* Don't try to load a module with a blank name (i.e. `module ""`).
  Because our module loading manifest uses the stringified module path
  as its map key, this causes a collision with the root module, and a
  later panic. This is the bug which triggered this refactor in the
  first place.
2023-03-06 09:14:28 -05:00
Craig Wright
3d51147862
Merge pull request #32766 from wisnij/wisnij/20230301-compact-docs
Thanks, we reviewed and approved.
2023-03-03 11:49:55 -08:00
Jim Wisniewski
f395efdd83
Update documentation for compact function 2023-03-01 17:34:33 -05:00
kmoe
76b34e891c
remove unused actionforchange (#32759) 2023-03-01 14:15:26 +00:00
Amanda B
93f9cff99f
Adding provider constraint best practice statement (#32697)
* Adding provider constraint best practice

Originally communicated here, this statement is missing in newer docs.

https://developer.hashicorp.com/terraform/language/v1.1.x/configuration-0-11/providers?ajs_aid=3cf1bdca-a598-4dc5-b074-6064b276abb6&_gl=1*xuizrx*_ga*MTM1ODg4NTcyMi4xNjY2MTA5NjI1*_ga_P7S46ZYEKW*MTY3NjU2OTMzNS4zMi4wLjE2NzY1Njk0MDMuMC4wLjA.&product_intent=terraform#provider-versions

* Update website/docs/language/providers/index.mdx

Co-authored-by: Judith Malnick <judith@hashicorp.com>

---------

Co-authored-by: Judith Malnick <judith@hashicorp.com>
2023-02-27 09:22:07 -08:00
Alisdair McDiarmid
729408333e
Merge pull request #32742 from rkhaled0/bugfix/issue-28274-providers-mirroring-honor-lockfile
bugfix: terraform providers mirror command should honor terraform lock file
2023-02-27 10:03:05 -05:00
Reda Khaled
100c44b6c3
bugfix: issue-28274, terraform providers mirror command should honor terraform lock file 2023-02-25 00:16:46 +01:00
Ashlee M Boyer
984d8c14a3
Merge pull request #32624 from hashicorp/docs/amb.migrate-link-formats
docs: Migrate link formats
2023-02-24 12:51:40 -05:00
kmoe
6fff41b6de
Delete maintainer-etiquette.md (#32741) 2023-02-24 16:31:58 +00:00
Ashlee Boyer
c850399c0d Updating main-branch-preview-url 2023-02-23 12:57:23 -05:00
Ashlee Boyer
32f7b8ebd0 Migrating links to new format 2023-02-23 12:55:56 -05:00
Ashlee Boyer
c5d0bd40b9 Removing test comment 2023-02-23 12:55:35 -05:00
Ashlee Boyer
55f11d07b9 Adding comment for testing 2023-02-23 12:55:15 -05:00
Ashlee Boyer
534366d0ff Adding test-link-rewrites workflow 2023-02-23 12:04:12 -05:00
Ashlee Boyer
e81c849617 Adding docs-content-check-legacy-links-format workflow 2023-02-23 12:04:12 -05:00
Martin Atkins
a86cef4d50 cliconfig: Allow breaking the dependency lock file using the environment
Since it's already possible to activate the dependency lock file using an
environment variable, we should allow opting in to it having broken
behavior using the environment too.

It's kinda odd in retrospect that TF_PLUGIN_CACHE_DIR is the only setting
we allow to be configured both in the environment and the CLI
configuration. That means that the infrastructure for dealing with that
situation was relatively immature here and so I did some light refactoring
to make it unit-testable without actually modifying the test program's
environment.
2023-02-22 12:23:56 -08:00
Brandon Croft
3d1a58d5b5
Merge pull request #32708 from mrinalirao/mr/taskStage-race
Bug Fix where CLI exits if run is not confirmable.
2023-02-21 18:17:51 -07:00
dependabot[bot]
cff7584a38 Bump golang.org/x/net from 0.5.0 to 0.7.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.5.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.5.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-21 16:31:19 -08:00