TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Vendor by Default

11 pointsby jashkenasabout 4 years ago

2 comments

yellowappleabout 4 years ago
I&#x27;ve found git submodules to achieve the best of both worlds: dependency sources are readily available as part of my own projects, <i>and</i> it&#x27;s straightforward to update them if need be. The only wrinkle is that a plain ol&#x27; `git clone` doesn&#x27;t pull everything by default, but can be worked around with a clarifying note in the README or by making it part of the build process.<p>Obviously there&#x27;s a time and a place - if a language or build system I&#x27;m using includes dependency retrieval&#x2F;resolution for projects, then that&#x27;s usually my preference. But for things like C (and, currently, Zig) that lack such things, vendoring with git submodules is pretty nice.
评论 #26432410 未加载
emmababout 4 years ago
Adding a content integrity hash in the lockfile seems like a more flexible solution.