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.57k stars 262 forks source link

Recommended install method fails due to malformed file name #454

Closed tahyonline closed 4 months ago

tahyonline commented 4 months ago

Describe the bug Using the recommended installation method, the download fails due to a file name in repo.

To Reproduce

$ go install github.com/boyter/scc/v3@latest
go: downloading github.com/boyter/scc/v3 v3.3.2
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

Installation should work just like for v3.2.0, go install github.com/boyter/scc/v3@v3.2.0 does not produce the error, but all versions of v3.3.x do.

Desktop (please complete the following information):

redblade7 commented 4 months ago

I have the same problem on Gentoo Linux, same go version as OP.

boyter commented 4 months ago

Annoying. I thought by removing it in the main branch it would resolve it.

I may have to cut a new release to get around this. Ill add some new languages to make it worthwhile to assist with it.

boyter commented 4 months ago

K the new release just pushed out then with additional language support should resolve this for everyone.

tahyonline commented 4 months ago

Worked, thanks!

boyter commented 4 months ago

Great. Also handy tip, don't create files with a ' in the filename.