Skip to content
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

78MB hugo binary is full of paths and urls #12406

Open
berthubert opened this issue Apr 21, 2024 · 1 comment
Open

78MB hugo binary is full of paths and urls #12406

berthubert opened this issue Apr 21, 2024 · 1 comment

Comments

@berthubert
Copy link

Hi, many thanks for Hugo (hugo v0.125.2-4e483f5d4abae136c4312d397a55e9e1d39148df linux/amd64 BuildDate=2024-04-20T15:29:44Z VendorInfo=gohugoio)

I just checked the binary version I downloaded from github, and it is huge. Furthermore, it contains 42181 github.com urls and thousands of long paths.

I wonder if "strip" is finding everything it needs to in the hugo binary release. Running strip myself does not decrease the binary size.

$ du -h hugo
79M	hugo
$ strings -a -n 10 hugo  | grep -c github
42181
$ strings -a -n 10 hugo  | grep -c /root/
2412
$ strings -a -n 10 hugo  | grep -c /usr/local/
794

Does this issue reproduce with the latest release?

Yes

@bep
Copy link
Member

bep commented Apr 22, 2024

I just checked the binary version I downloaded from github, and it is huge. Furthermore, it contains 42181 github.com urls and thousands of long paths.

It stores the dependency information which I guess can explain some of the bove.

@bep bep added this to the v0.126.0 milestone Apr 22, 2024
@bep bep modified the milestones: v0.126.0, v0.127.0 May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants