-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fix various downloading options; error messages #13
Conversation
This won't quite work. We need to consume the the output concurrently with the process execution or it could block waiting for its buffer to drain. Instead, we should use |
Actually, there's one more thing we have to do: if |
I added a commit, that fixes the first error, I discovered after enabling error messages: nix-prefetch-url would not find its certificate root. This brought me to the next error: In some cases (wiki it seems), Now, I managed to hose my cabal by trying to switch into profiled shell. It was missing ghc and after adding that to build tools, it lists a couple of dependencies missing. Any ideas? |
Note: The ca fix causes an impurity, by referring to |
I never updated the profiled shell, I just fixed it in 201f59f. You can get a profiled shell with The CA error sounds like a problem I had been having with the |
cool, thanks I'm on |
But you're right, the ssl fail is fishy. Judging from this line https://github.com/NixOS/nix/blob/master/src/libstore/download.cc#L145 Can you reproduce the ssl error, e.g. with |
Cool, now when trying to reproduce it, I'm getting
Plain |
doh, of course I'm not seeing the ssl error, having the ssl patch applied locally. The db-not-writable error seems like a new error. Different though, from the build errors I've been seeing and it seems to affect all the melpa packages. I think I should go to bed now. |
OK, the db-not-writable is because of the |
Is there some way to have |
Doesn't look like there was such an option: https://github.com/NixOS/nix/blob/master/src/nix-prefetch-url/nix-prefetch-url.cc#L198 |
Well, I would prefer to use pure shells, but that doesn't seem to be an option. For now, let's use impure shells instead. Later, I'll see about getting such an option implemented in Nix. |
With the latest two commits, the update process is looking good. Let the lambdas flow like milk (from a box) EDIT the update process for melpa, that is |
ooh, |
Strange, I'm still getting errors for nix-prefetch-hg, as if it didn't honor |
I locally solved the -hg issue, now i see the error with |
With the latest two patches, I managed to successfully regenerate melpa and melpa-stable. |
|
||
# usage: ./melpa-packages.sh --melpa PATH_TO_MELPA_CLONE | ||
|
||
## env var for curl | ||
export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bendlas Can we inherit SSL_CERT_FILE
from the parent shell? Also, with this change, is it still necessary to set SSL_CERT_FILE
in Distribution.Nix.Fetch
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we could, but at least on my shell, SSL_CERT_FILE isn't defined. I don't think it needs to be set again in the fetcher, though.
Util.runInteractiveProcess
doesn't show errors from subprocesses, becausegetOutput
throws, when the subprocess fails.This patch reorders
getOutput
into a match onExitSuccess
thus unmasking error messages.