Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

pkger is very slow for large repos, even though including just one file #117

Open
tian000 opened this issue Aug 14, 2020 · 4 comments
Open

Comments

@tian000
Copy link

tian000 commented Aug 14, 2020

I am working in a large monorepo, and would like to run pkger to package just 1 config file. The go.mod file is at the repo root. It takes around 5 minutes because I think it is scanning all the folders to grab folder metadata. Is there a way to make pkger faster for packaging just 1 file in a very large repo?

@aeneasr
Copy link

aeneasr commented Aug 17, 2020

We're experiencing the same issue

aeneasr added a commit to ory/kratos that referenced this issue Aug 17, 2020
aeneasr added a commit to ory/kratos that referenced this issue Aug 25, 2020
@lagren
Copy link

lagren commented Sep 7, 2020

We are also experiencing this in our monorepo. It is structured as a single go module and contain 204 packages/folders. Seems like each folder takes 0.5s to process which makes this really slow.

@tuhao1020
Copy link

Is there any solution to imporove this problem?

@sagikazarmark
Copy link

I opened #128 with this issue in mind. I've looked into it, but pkger depends heavily on go list and modules, which makes it easy to use, but less suitable for large projects I guess.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants