-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: works when ran through a symlink #850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
also I didn't modified Unix/cloc but tbh I don't really know how this repo works 😅 |
Impressive. Thanks for making the effort to figure this out. I have one minor request: please move the line with |
done 👍 Tip If anyone still have issues, here's the built artifact for 2.02 : Don't trust me ? Wanna build it yourself ? git clone https://github.com/AlDanial/cloc.git
cd cloc (Needs to have Perl installed, like Strawberry Perl on Windows) cpan -i Digest::MD5
cpan -i Regexp::Common
cpan -i Algorithm::Diff
cpan -i PAR::Packer
cpan -if Win32::LongPath On latest Strawberry Perl versions this last one may fail so use this : cpanm --notest Win32::LongPath pp -M Win32::LongPath -M Encode::Unicode -M Digest::MD5 -c -x -o cloc.exe cloc Copy-paste the .exe into |
Tip 2.04 built exe working with Winget : |
Tip 2.06 built exe working with Winget (hopefully the last one) : |
Thanks. My plan for today is to create a sandbox cloc git repo and follow your instructions more carefully to create some releases and hopefully be able to create the identical Winget-friendly executable on my own. |
one thing that might work is setting up the however from what I saw when I tested this the VT scans are less forgiving (I did this method for the 2.06 build since I messed up my local strawberry perl) I'll check that soon |
I tried making a release with my new sandbox_cloc_release repo (after getting a VT token and adding it to my GH secrets) but am still seeing incomprehensible fails in the release step: https://github.com/AlDanial/sandbox_cloc_release/actions/runs/15959081362/job/45009169815 Baffling. |
I was able to make a workflow to just create the Windows exe in my sandbox area, https://github.com/AlDanial/sandbox_cloc_release/actions/runs/15962700753/workflow. Curiously it has a different VirusTotal signature than yours: I will upload this one to cloc's release area. |
yes, i got very surprised by this VT detection... |
closes #849
I'll let you bump the version and create the executables


Successfully tested on Windows :
I only tried the built windows executable, but this shouldn't affect builds for other distros.
Also my knowledge in Perl is really the bare minimum so there could be a better way to write it or maybe some imports are duplicated. All I know is that it works :)