mirror of https://github.com/hashicorp/terraform
stacks: Make path.module and path.root relative, to match documentation (#37982)
* stacks: Make path.module and path.root relative, to match documentation Previously, we were just handing off the absolute path produced by the sourcebundle struct. But that's no good, because the value doesn't stay consistent between plan and apply when running under tfc-agent. (It uses working directories named after the unique job ID.) It also doesn't match the documentation, which describes these as relative paths. This was preventing people from uploading module-provided files to create aws lambda functions, for example. This commit addresses that by converting the source-bundle provided module path to a relative path (relative to Terraform's working directory). In tfc-agent for stacks runs, that ends up being the directory directly above the sourcebundle directory, and all the paths below that are consistent between plan and apply. * I think this is how the changelog thing works?pull/38009/head
parent
f591872699
commit
b2aad914f1
@ -0,0 +1,5 @@
|
||||
kind: BUG FIXES
|
||||
body: 'stacks: change absolute paths in path.module/path.root to be relative, as documented'
|
||||
time: 2025-12-09T23:00:00.316597+00:00
|
||||
custom:
|
||||
Issue: "37982"
|
||||
Loading…
Reference in new issue