1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2026-06-19 23:24:39 +02:00
Files
goreleaser/.gitattributes
Carlos Alexandro Becker a5070ed2d4 fix(sbom): fix Windows CI test failure in catalog_source_archives
The SBOM test was failing on Windows CI because:

1. subprocessDistPath relied on os.Getwd() and strings.TrimPrefix to compute
   relative paths, which broke on Windows when temp dirs (C:) and workspace
   (D:) were on different drives. Rewrote it to use filepath.Rel(distDir, path)
   directly.

2. fakesyft scripts parsed spdx-json=<path> from command-line args, which is
   fragile on Windows due to cmd.exe argument parsing quirks. Changed to use
   the $document env var that is always set by the SBOM pipe.

3. .gitattributes forced LF line endings on .bat files via '* text eol=lf'.
   Added '*.bat text eol=crlf' override.

4. Test kept an open file handle on the tar.gz archive during the pipeline
   run, which can cause issues on Windows. Closed it immediately after
   creation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-07 19:55:45 -03:00

24 lines
780 B
Plaintext

* text eol=lf
*.bat text eol=crlf
# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
*.ico binary
*.icns binary
www/docs/static/schema.json linguist-generated=true
www/docs/static/schema-pro.json linguist-generated=true
www/docs/static/releases.json linguist-generated=true
www/docs/static/releases-pro.json linguist-generated=true
internal/builders/zig/all_targets.txt linguist-generated=true
internal/builders/zig/error_targets.txt linguist-generated=true
internal/builders/zig/testdata/version.txt linguist-generated=true
internal/builders/rust/all_targets.txt linguist-generated=true
*.nix.golden linguist-language=Nix
*.rb.golden linguist-language=Ruby
*.json.golden linguist-language=JSON
*.yaml.golden linguist-language=YAML