Commit Graph

7 Commits

Author SHA1 Message Date
Diógenes Fernandes
9b14212207 fix: internal/getprovider tests on Windows (#3275)
Signed-off-by: Diogenes Fernandes <diofeher@gmail.com>
2025-09-16 15:29:31 -03:00
Diógenes Fernandes
f5ef40c37c fix: TestEnsureProviders using the wrong line breaks and PackageDir separator (#3273)
Signed-off-by: Diogenes Fernandes <diofeher@gmail.com>
2025-09-16 13:27:35 -03:00
Diógenes Fernandes
2894e494af Normalize line breaks in .tmpl files (#3232)
Signed-off-by: Diogenes Fernandes <diofeher@gmail.com>
2025-09-02 16:08:00 -03:00
Diógenes Fernandes
91f7df965f Fix internal/command/validate_test.go: TestValidate_json* (#3202)
Signed-off-by: Diogenes Fernandes <diofeher@gmail.com>
2025-08-29 14:16:47 -03:00
Diógenes Fernandes
c29311ee82 Ensure internal/*.tf files have the same line endings in all platforms (#3189)
Signed-off-by: Diogenes Fernandes <diofeher@gmail.com>
2025-08-27 07:04:42 -03:00
Martin Atkins
da1905d5e1 Remove .gitattributes, treating all files as binary
This was added earlier in an attempt to tolerate CRLF and convert CRLF
line endings on Windows, but it causes issues where vendored files
(which could be using either LF or CRLF depending on the original author's
preference) get permanent diffs when inconsistent with the platform's
preference.

The goal of this change, therefore, is to treat all of the files as binary,
with the standard that all of Terraform's own files will use Unix-style
LF endings and the vendor stuff will just be verbatim, byte-for-byte
copies of what's upstream.

This will apparently cause some difficulty for people hacking on Terraform
on Windows machines, because gofmt on Windows reportedly wants to convert
all files to CRLF endings. Unfortunately we're forced to compromise here
and treat development on Windows as an edge case in order to avoid the
weirdness with inconsistent endings in the vendor tree.
2017-03-29 14:44:43 -07:00
Liam Bennett
894b917016 Adding in root level .gitattributes file.
This is to pin the .go files to LF line endings.

Developing on windows and using the vagrant environment to build,
running `make fmt` will cause all the *.go files to be touched,
alterting their line endings and causing git to see them as changed.
2017-02-03 15:14:31 +00:00