Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: nix-prefetch-git output is noisy and confusing #103

Open
clacke opened this issue Mar 31, 2018 · 1 comment
Open

Problem: nix-prefetch-git output is noisy and confusing #103

clacke opened this issue Mar 31, 2018 · 1 comment

Comments

@clacke
Copy link
Member

clacke commented Mar 31, 2018

The user might not believe that this much output is the result of a successful call to racket2nix.

Solution: Swallow the stderr, maybe providing a brief progress indicator like "Fetching git://blah/...". Only reveal the full stderr if nix-prefetch-git fails.

Initialized empty Git repository in /private/var/folders/4h/667g12ds42s7tnt7rwqyk0hw0000gn/T/git-checkout-tmp-vw4vAApW/typed-map-c9c5a23/.git/
remote: Counting objects: 25, done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 25 (delta 3), reused 14 (delta 0), pack-reused 0
Unpacking objects: 100% (25/25), done.
From git://github.com/jsmaniac/typed-map
 * branch            HEAD       -> FETCH_HEAD
Switched to a new branch 'fetchgit'
removing `.git'...

git revision is c9c5a236f4e32d9391df3edffdf9b1a55401fe31
path is /nix/store/iqwr50i4553bnpmy2a7m7j4ginivap42-typed-map-c9c5a23
git human-readable version is -- none --
Commit date is 2018-01-27 13:25:01 +0100
hash is 150agc51y1kvrarg0n6r2x6n3awnvivqj5k78gx9ngr8q31zl83f
@sjmackenzie
Copy link
Member

yes this confused me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants