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.

Understand Your Dependencies

34 pointsby dedalus26 days ago

4 comments

agwa22 days ago
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.
r1chardnl22 days ago
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 未加载
recursivedoubts22 days ago
no dependency is more understandable than the dependency that doesn’t exist
评论 #43775463 未加载
simonw22 days ago
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.