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

Released submodule tarball size increased 12x in latest version #1869

Closed
icp1994 opened this issue Feb 1, 2023 · 10 comments
Closed

Released submodule tarball size increased 12x in latest version #1869

icp1994 opened this issue Feb 1, 2023 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@icp1994
Copy link

icp1994 commented Feb 1, 2023

Hi, the submodule tarball size in previous releases were around 30MB but it's now 371MB. Is this change intentional?

@sumneko sumneko added the bug Something isn't working label Feb 2, 2023
@sumneko sumneko closed this as completed in e28d88a Feb 2, 2023
@clason
Copy link

clason commented Feb 3, 2023

Is there a way to include json.lua without (recursively!) pulling in all its submodules for the benchmark? On my machine, that blows up the repo size to 1.5 Gb and takes hours to clone...

@actboy168
Copy link
Collaborator

@clason How did you pull the repo? By default it should not recurse to fetch submodules, like this

git submodule init
git submodule update

@sumneko
Copy link
Collaborator

sumneko commented Feb 3, 2023

@clason How did you pull the repo? By default it should not recurse to fetch submodules, like this

git submodule init
git submodule update

I think it is necessary to fetch submodules recursively, since luamake requires bee.lua

@clason
Copy link

clason commented Feb 3, 2023

Yes, that's what https://github.com/LuaLS/lua-language-server/wiki/Getting-Started#build says we should do.

The only thing I can think of is to specify the submodules individually:

> git submodule update --init --recursive luamake
> git submodule update --init json.lua
> ...

Maybe it's enough to add a simple script update_submodules.sh under 3rd that users can run so that the build instructions become

./3rd/update_submodules.sh
cd 3rd/luamake
./compile/install.sh
cd ../..
./3rd/luamake/luamake rebuild

@clason
Copy link

clason commented Feb 3, 2023

Oh, and Git 2.13 apparently has

git clone --recurse-submodules=<path>

Maybe that can be used in the config to only recurse for luamake?

@clason
Copy link

clason commented Feb 3, 2023

Ok, I think the simplest thing is to just change the build instructions to

git submodule update --init --depth 1
git submodule update --init --depth 1 --recursive 3rd/luamake

This keeps the checkout nice and small while still getting everything needed to compile lua-language-server.

@clason
Copy link

clason commented Feb 3, 2023

(Might be nice to provide a simple script that does all necessary build steps -- (update submodules, build luamake, then lua-language-server with the right call for the current platform)?)

@sumneko
Copy link
Collaborator

sumneko commented Feb 3, 2023

Maybe just remove this submodule

actboy168 added a commit that referenced this issue Feb 4, 2023
@sumneko
Copy link
Collaborator

sumneko commented Feb 4, 2023

(Might be nice to provide a simple script that does all necessary build steps -- (update submodules, build luamake, then lua-language-server with the right call for the current platform)?)

Could you please provide a PR? Then I will modify the wiki.

@clason
Copy link

clason commented Feb 4, 2023

(Might be nice to provide a simple script that does all necessary build steps -- (update submodules, build luamake, then lua-language-server with the right call for the current platform)?)

Could you please provide a PR? Then I will modify the wiki.

I don't have enough platforms to test this on, so I'm probably not the best person to write this script. Also, I found out you only need one extra line to avoid the huge submodules, so a script is not really necessary. I think it's enough to change the wiki to use

git submodule update --init --depth 1
git submodule update --init --depth 1 --recursive 3rd/luamake

in place of git submodule update --init --recursive.

@sumneko sumneko closed this as completed in 95eaee8 Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants