Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

console: normalize module path before building context #27263

Merged
merged 1 commit into from
Dec 11, 2020

Conversation

mildwonkey
Copy link
Contributor

@mildwonkey mildwonkey commented Dec 11, 2020

Expressions such as "path.root" were returning the cwd (or modulePath),
instead of the usual relative path. This commit normalizes the path
before building the context.

Closes #26813

Expressions such as "path.root" were returning the cwd (or modulePath),
instead of the usual _relative_ path. This commit normalizes the path
before building the context.
@codecov
Copy link

codecov bot commented Dec 11, 2020

Codecov Report

Merging #27263 (0e961e6) into master (6e1017f) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted Files Coverage Δ
command/console.go 38.46% <100.00%> (+0.59%) ⬆️
internal/providercache/dir.go 67.34% <0.00%> (-6.13%) ⬇️
terraform/node_resource_apply_instance.go 49.76% <0.00%> (-2.80%) ⬇️
terraform/evaluate.go 52.89% <0.00%> (-0.42%) ⬇️
dag/marshal.go 63.49% <0.00%> (+1.58%) ⬆️

@mildwonkey mildwonkey requested a review from a team December 11, 2020 16:17
@mildwonkey mildwonkey merged commit 8a48913 into master Dec 11, 2020
@mildwonkey mildwonkey deleted the mildwonkey/console-path-root branch December 11, 2020 18:23
@ghost
Copy link

ghost commented Jan 11, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked as resolved and limited conversation to collaborators Jan 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

different value of path.root in terraform apply (".") and terraform console (actual absolute path)
2 participants