tfenv icon indicating copy to clipboard operation
tfenv copied to clipboard

Allow comments in .terraform-version file

Open OJFord opened this issue 3 years ago • 2 comments

Using syntax:

# this whole line is a comment
1.2.3
# this is also a comment

but not inline comments.

Closes #283

OJFord avatar Jul 15 '22 23:07 OJFord

Hi @OJFord I would vote against comments as there are probably also other tools relying on this file in the existing format. And there’s also an open issue at the setup-terraform action which could also rely on the file. https://github.com/hashicorp/setup-terraform/issues/208

Additionally, I checked .ruby-version and .node-version and both also don't support comments as that supports the simple "cat" use case like rbenv use $(cat .ruby-version) for example.

jgrumboe avatar Aug 24 '22 21:08 jgrumboe

Useful feature. Please merge.

mputilin avatar Nov 08 '22 18:11 mputilin