- Notifications
You must be signed in to change notification settings - Fork10.1k
Commitb2aad91
authored
stacks: Make path.module and path.root relative, to match documentation (#37982)
* stacks: Make path.module and path.root relative, to match documentationPreviously, we were just handing off the absolute path produced by thesourcebundle struct. But that's no good, because the value doesn't stayconsistent between plan and apply when running under tfc-agent. (It uses workingdirectories named after the unique job ID.) It also doesn't match thedocumentation, which describes these as relative paths. This was preventingpeople from uploading module-provided files to create aws lambda functions, forexample.This commit addresses that by converting the source-bundle provided module pathto a relative path (relative to Terraform's working directory). In tfc-agent forstacks runs, that ends up being the directory directly above the sourcebundledirectory, and all the paths below that are consistent between plan and apply.* I think this is how the changelog thing works?1 parentf591872 commitb2aad91
File tree
3 files changed
+37
-17
lines changed- .changes/v1.14
- internal
- configs
- stacks/stackruntime/internal/stackeval
3 files changed
+37
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
71 | 95 | | |
72 | 96 | | |
73 | 97 | | |
| |||
Lines changed: 7 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
852 | 851 | | |
853 | 852 | | |
854 | 853 | | |
855 | | - | |
856 | | - | |
857 | | - | |
858 | | - | |
859 | | - | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | | - | |
| 854 | + | |
864 | 855 | | |
865 | | - | |
| 856 | + | |
866 | 857 | | |
867 | 858 | | |
868 | 859 | | |
869 | 860 | | |
870 | 861 | | |
871 | 862 | | |
872 | 863 | | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
878 | 869 | | |
879 | 870 | | |
880 | 871 | | |
| |||
0 commit comments
Comments
(0)