Skip to content

Commit

Permalink
ci: use LF line ending always in the case of *.go files
Browse files Browse the repository at this point in the history
gofmt formats all CRLF to LF in *.go files.
it results failure of convention job on GitHub Actions,
especially on windows host runners.
  • Loading branch information
lufia committed Feb 26, 2024
1 parent 88a3a9e commit 1c36516
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.go text eol=lf
3 changes: 3 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
with:
run: |
make convention
echo '====='
gofmt -d .
echo '====='
# TODO: use gofmt linter
test "$(gofmt -l . | wc -l)" -eq 0
test:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
!.circleci
!.dependabot
!.github
!.gitattributes
!.gitignore
!.goxc.json
!.travis.yml
Expand Down

0 comments on commit 1c36516

Please sign in to comment.