[go: up one dir, main page]

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

Remove revision from version command #27484

Merged
merged 1 commit into from
Jan 13, 2021
Merged

Remove revision from version command #27484

merged 1 commit into from
Jan 13, 2021

Conversation

pselle
Copy link
Contributor
@pselle pselle commented Jan 12, 2021

The revision field is only populated on dev builds so this means most releases of Terraform have an empty "terraform_revision" field in the JSON output. Since we recommend developers use go tooling to go build this tool when developing, the revision is not useful data and so it is removed.

The .tfdev file is for people who use the [internal] terraform-devtool, and I checked to ensure this removal wouldn't break users who depend on that -- it appears not to (the value going into the devtool should be nil now).

The revision field is only populated on dev builds so this means
most releases of Terraform have an empty "terraform_revision" field
in the JSON output. Since we recommend developers use go tooling
to `go build` this tool when developing, the revision is not useful
data and so it is removed.
@codecov
Copy link
codecov bot commented Jan 12, 2021

Codecov Report

Merging #27484 (83e6703) into master (ae52190) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted Files Coverage Δ
command/version.go 71.23% <ø> (+1.49%) ⬆️
commands.go 0.69% <ø> (+<0.01%) ⬆️
main.go 39.63% <100.00%> (ø)
dag/marshal.go 63.49% <0.00%> (+1.58%) ⬆️
terraform/node_resource_plan.go 98.05% <0.00%> (+1.94%) ⬆️
internal/providercache/dir.go 73.46% <0.00%> (+6.12%) ⬆️

@pselle pselle requested a review from a team January 12, 2021 21:44
@pselle pselle merged commit d34e1d9 into master Jan 13, 2021
@pselle pselle deleted the pselle/revision branch January 13, 2021 17:42
@ghost
Copy link
ghost commented Feb 13, 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 Feb 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants