-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert path.root and path.cwd to rootDirectory and cwd
cwd has a warning emitted letting the user know that it will not behave the same as it does in terraform, but as per the discussion on pulumi/pulumi#18565 this should be ok and we can fix it later if it is still blocking.
- Loading branch information
1 parent
b3d914d
commit 3f9a7d8
Showing
9 changed files
with
41 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
pkg/convert/testdata/programs/builtin_inputs/pcl/diagnostics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
[ | ||
"warning:builtin_inputs/mod/main.tf:2,17-24:builtin_inputs/mod/main.tf:2,13-24:Terraform input not yet implemented:path", | ||
"warning:builtin_inputs/main.tf:10,17-22:builtin_inputs/main.tf:10,13-22:Terraform input not yet implemented:path", | ||
"warning:builtin_inputs/main.tf:14,17-21:builtin_inputs/main.tf:14,13-21:Terraform input not yet implemented:path", | ||
"warning:builtin_inputs/main.tf:14,13-21:builtin_inputs/main.tf:14,17-21:Converting the builtin variable path.cwd with differing behavior:The builtin Terraform variable path.cwd is being converted, but in Pulumi cwd will start at the \nproject program directory, not the execution directory", | ||
"warning:builtin_inputs/main.tf:18,22-32:builtin_inputs/main.tf:18,13-32:Terraform input not yet implemented:terraform" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
component "someModule" "./mod" { | ||
} | ||
|
||
output "modulePath" { | ||
output "modulePathOutput" { | ||
value = someModule.output | ||
} | ||
|
||
output "root" { | ||
value = notImplemented("path.root") | ||
output "rootOutput" { | ||
value = rootDirectory() | ||
} | ||
|
||
output "cwd" { | ||
value = notImplemented("path.cwd") | ||
output "cwdOutput" { | ||
value = cwd() | ||
} | ||
|
||
output "workspace" { | ||
output "workspaceOutput" { | ||
value = notImplemented("terraform.workspace") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters