boyter / scc

Sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go
MIT License
6.27k stars 250 forks source link

Error in 'm'ain.ts' File Prevents Installation in Go #453

Closed AdrianKoszalka closed 1 month ago

AdrianKoszalka commented 1 month ago

Describe the bug When attempting to install the newest version (v3.3.2) of scc via Go, an error occurs due to a malformed file path in the m'ain.ts file.

To Reproduce

  1. Execute the following install command: go install github.com/boyter/scc/v3@latest
  2. An installation error occurs: go: github.com/boyter/scc/v3@latest: create zip: examples/issue333/m'ain.ts: malformed file path "examples/issue333/m'ain.ts": invalid char '\''

Expected behavior The installation should be successful without any errors.

Desktop (please complete the following information):

boyter commented 1 month ago

Urgh. Thats very annoying because that's a legitimate filename.

I have removed the file so this should not work, but this is an issue in Go itself or some dependency it has.