TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Understand Your Dependencies

34 点作者 dedalus25 天前

4 条评论

agwa21 天前
deps.dev does an absolutely terrible job with Go dependencies. It thinks modules are the unit of dependency rather than packages. Consequentially, it reports vulnerabilities in packages that are never even imported. For example, <a href="https:&#x2F;&#x2F;deps.dev&#x2F;go&#x2F;filippo.io%2Fsunlight" rel="nofollow">https:&#x2F;&#x2F;deps.dev&#x2F;go&#x2F;filippo.io%2Fsunlight</a> shows a &quot;9.1 CRITICAL&quot; vulnerability in a supposed SSH dependency from a project that has nothing to do with SSH.<p>Google ought to be embarrassed by this, especially when govulncheck &lt;<a href="https:&#x2F;&#x2F;pkg.go.dev&#x2F;golang.org&#x2F;x&#x2F;vuln&#x2F;cmd&#x2F;govulncheck" rel="nofollow">https:&#x2F;&#x2F;pkg.go.dev&#x2F;golang.org&#x2F;x&#x2F;vuln&#x2F;cmd&#x2F;govulncheck</a>&gt; exists and actually checks whether vulnerable code is reachable.
r1chardnl21 天前
I don&#x27;t know how well this makes you understand your dependencies. As for C&#x2F;C++ a lot of people probably depend on stb single header files libraries. There&#x27;s stb_truetype but it specifically mentions not to use it on any untrusted&#x2F;outside .ttf files which I do like but you have to keep in mind to bake to bitmaps or only use your own .ttf provided files, thus I would put this dependency in another place like tooling. Is there a way to do this in other languages like JS and NPM? Maybe carefully choosing which dependencies you include is better?<p><a href="https:&#x2F;&#x2F;github.com&#x2F;nothings&#x2F;stb&#x2F;blob&#x2F;master&#x2F;stb_truetype.h#L6">https:&#x2F;&#x2F;github.com&#x2F;nothings&#x2F;stb&#x2F;blob&#x2F;master&#x2F;stb_truetype.h#L...</a>
评论 #43775009 未加载
recursivedoubts21 天前
no dependency is more understandable than the dependency that doesn’t exist
评论 #43775463 未加载
simonw21 天前
Surprising that Click <a href="https:&#x2F;&#x2F;deps.dev&#x2F;pypi&#x2F;click&#x2F;8.1.8" rel="nofollow">https:&#x2F;&#x2F;deps.dev&#x2F;pypi&#x2F;click&#x2F;8.1.8</a> is listed as &quot;license unknown&quot; - <a href="https:&#x2F;&#x2F;pypi.org&#x2F;project&#x2F;click&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pypi.org&#x2F;project&#x2F;click&#x2F;</a> knows that it&#x27;s BSD.