mirror of
https://github.com/github/gitignore.git
synced 2026-08-30 03:37:05 +02:00
fix(go-gitignore): prevent coverage.go files from being excluded
The current `coverage.*` pattern includes `*.go` files as well. If you use `go vendor`, this causes the following files to be excluded: - `vendor/golang.org/x/text/internal/language/coverage.go` - `vendor/golang.org/x/text/language/coverage.go` This becomes a nightmare to troubleshoot why the local build works, yet a CI fails (as the files were not committed). Adding `!coverage.go` ensure that `*.go` files do not get accidentally excluded.
This commit is contained in:
parent
86922aee42
commit
74cf7151d9
@ -14,6 +14,7 @@
|
|||||||
# Code coverage profiles and other test artifacts
|
# Code coverage profiles and other test artifacts
|
||||||
*.out
|
*.out
|
||||||
coverage.*
|
coverage.*
|
||||||
|
!coverage.go
|
||||||
*.coverprofile
|
*.coverprofile
|
||||||
profile.cov
|
profile.cov
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user