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

Nix build error due to missing sources #9319

Closed
SrEstegosaurio opened this issue Jan 11, 2024 · 3 comments · Fixed by #9326
Closed

Nix build error due to missing sources #9319

SrEstegosaurio opened this issue Jan 11, 2024 · 3 comments · Fixed by #9326
Labels
A-packaging Area: Packaging and bundling C-bug Category: This is a bug

Comments

@SrEstegosaurio
Copy link

SrEstegosaurio commented Jan 11, 2024

Summary

When trying to build Helix using nix I encounter the following error:

fatal: unable to access 'https://git.sr.ht/~nbsp/tree-sitter-gemini/': Failed to connect to git.sr.ht port 443 after 132677 ms: Couldn't connect to server
error:
       … while calling the 'head' builtin

         at /nix/store/0g53xyh39z3y90p4d8r341wbqyjy1zhl-source/lib/attrsets.nix:960:11:

          959|         || pred here (elemAt values 1) (head values) then
          960|           head values
             |           ^
          961|         else

       … while evaluating the attribute 'value'

         at /nix/store/0g53xyh39z3y90p4d8r341wbqyjy1zhl-source/lib/modules.nix:809:9:

          808|     in warnDeprecation opt //
          809|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          810|         inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: program 'git' failed with exit code 128

The problem appears to be the very first line of the log:

fatal: unable to access 'https://git.sr.ht/~nbsp/tree-sitter-gemini/': Failed to connect to git.sr.ht port 443 after 132677 ms: Couldn't connect to server

Reproduction Steps

nix build github:helix-editor/helix

Platform

Linux (NixOS)

Terminal Emulator

foot version: 1.15.1 +pgo +ime +graphemes +fractional-scaling +cursor-shape -assertions

Installation Method

flake

Helix Version

helix 23.10

@SrEstegosaurio SrEstegosaurio added the C-bug Category: This is a bug label Jan 11, 2024
@SrEstegosaurio
Copy link
Author

I saw this was already discussed and apparently temporally fixed. Or at least that's what I can gather from skimming trough other issues and discussions.

But trying to build it with nix (using the upstream flake on its last commit) outputs the aforementioned error.

@the-mikedavis
Copy link
Member

the-mikedavis commented Jan 11, 2024

There's an ongoing outage with SourceHut that's causing this: https://status.sr.ht/ (even the statuspage appears to be down). The cachix CI build also fails because of this: https://github.com/helix-editor/helix/actions/runs/7490903743/job/20390839236

17dd102 mostly fixed this but the Nix flake fetches and builds grammars itself. It would be a nice improvement to have grammars.nix respect the value of use-grammars.only and use-grammars.except so it wouldn't fetch these based on the new config in that commit.

Otherwise the flake should work again after SourceHut restores service. I believe they're migrating all of the services to a new datacenter (or something similar) so it may be a while.

@the-mikedavis the-mikedavis added the A-packaging Area: Packaging and bundling label Jan 11, 2024
@SrEstegosaurio
Copy link
Author

Yeah, apparently Codeberg is also being targeted according the their official Fediverse account.

I'll temporally patch it myself to remove the dependency since I need it working in order to rebuilding my system but yeah, improving the package is always a good thing.

Thanks for the quick response btw. ❤️

@the-mikedavis the-mikedavis linked a pull request Jan 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-packaging Area: Packaging and bundling C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants