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.

Show HN: Avenv – A more isolated virtualenv

20 pointsby ihucosover 6 years ago

7 comments

shaknaover 6 years ago
I&#x27;d like to say good things, but there are a few big issues first.<p>It goes to the effort of downloading the sha256 hashes... For a filename. It never actually confirms a download is accurate with them. (curl --fail is not enough. You can have connections close nicely, but the file not be transferred correctly.)<p>It depends on bchroot for the heavy lifting, which is a beta product still, though interesting, and your own... And the habit of placing binaries in git do give me some twinges of concern. It would take more time than I have to audit bchroot. I have some concerns about binding &#x2F;tmp and &#x2F;dev the way you do... But a bigger concern is the assumption that &#x2F;bin&#x2F;bash will be available. What if it isn&#x27;t?<p>It copies _my_ resolv.conf into the chroot blindly, despite the fact that many network managers may overwrite this file, and that my computer can move between networks where this may change. It&#x27;d be better to at least symlink the file. Best would be running a network manager.<p>It assumes x86_64. Reasonable-ish, but not always accurate. A Raspberry Pi is just as strong a target. Use uname -m. You&#x27;ll probably hit issues otherwise.<p>Speaking of which, if you feel the need to grab resolv, you probably want hosts as well.<p>avenv-update finds and sorts binaries from a few static locations. It&#x27;d be much better if it could rely on a PATH variable.<p>---<p>As a _first_ chroot manager attempt, it&#x27;s not awful.<p>You set the right failure flags for sh, and handle most of the fail conditions nicely.<p>... But never trust the internet to hand you blindly what you ask for.<p>... And never trust the assumptions you&#x27;ve made about what it&#x27;s running on will also be accurate.
评论 #18794116 未加载
评论 #18794114 未加载
mdanielover 6 years ago
Please don&#x27;t put binary artifacts in git; GitHub offers &quot;releases,&quot; which are essentially download buckets attached to git tags, from which one can download tars. To the best of my knowledge they&#x27;re still curl-into-bash-able (or I guess into tar, in your case)
pietroglyphover 6 years ago
It uses xbps!<p><pre><code> $ venv&#x2F;bin&#x2F;xbps-install -Sy libreoffice xorg-fonts # you can imagine that as kind of like a chrooted void linux </code></pre> I wonder how easy this is to do with other package managers? Is this a feature specific to xbps?
评论 #18794062 未加载
sedekiover 6 years ago
Seems a bit scary to install it like that
评论 #18792593 未加载
fiatjafover 6 years ago
I&#x27;ll not use this, because I&#x27;ve had enough of Python and will do my best to not start any new Python programs (also I don&#x27;t know how is this better than virtualenv), but the README is truly awesome.
ihucosover 6 years ago
To my haters: It&#x27;s clearly a prototype. 60 lines of shell script will always have their own issues. What I&#x27;d love to hear is thoughts on the general approach! Is this cool enough to do proper?
cipherzeroover 6 years ago
Is this a serious project?<p>&gt; Linux only support<p>&gt;<p>&gt; Tell your employer to stop using Macintosh<p>... because that doesn’t seem like a sign of a serious project to me...
评论 #18792729 未加载
评论 #18792781 未加载
评论 #18794108 未加载