pull down to refresh

Digging deeper, they discovered that many companies are using open source repositories as if they were content delivery networks (CDNs). So, for example, a single company might download the same code hundreds of thousands of times in a day, and the next day, and the next. This is unsustainable.

I don't understand, what is the benefit of doing this?

pay for git pull or companies use open source repositories?

reply

No, why would someone need to download the same code hundreds of thousands of times a day?

reply
35 sats \ 4 replies \ @k00b 4h

The download is part of some build process script and it's easier to download from the source on every build than manage a cache.

reply

Oh, huh. I guess that makes sense? I don't quite know how these package managers work. I thought you download it once and now you have a copy on your machine. You only need to redownload if upgrading to a new version

reply
69 sats \ 2 replies \ @k00b 3h

They probably aren't using a package manager, or at least one that persists between builds, because package managers cache.

reply

I see. Custom build script then? Coz I thought even amateurs just use package managers most of the time like npm and pip

reply
68 sats \ 0 replies \ @k00b 3h

Yep custom and these build systems often don't persist the package manager's cache - preferring to start from a blank slate.

reply