Grab git-hooks from npins #448

Merged
Niols merged 1 commit from Niols/Fediversity:git-hooks-npins into main 2025-07-09 13:21:50 +02:00
Owner

This PR builds on top of #447 and will be subject to the same discussion. Let's discuss there whether it makes sense to get rid of the flake-parts and git-hooks flake inputs.

This PR builds on top of #447 and will be subject to the same discussion. Let's discuss there whether it makes sense to get rid of the `flake-parts` and `git-hooks` flake inputs.
Niols added 4 commits 2025-07-08 14:03:27 +02:00
Get rid of flake dependency on flake-parts - grab it from npins
Some checks failed
/ check-data-model (pull_request) Successful in 31s
/ check-peertube (pull_request) Successful in 21s
/ check-panel (pull_request) Successful in 1m28s
/ check-deployment-basic (pull_request) Successful in 11m37s
/ check-deployment-cli (pull_request) Successful in 40m29s
/ check-pre-commit (pull_request) Successful in 13s
/ check-deployment-panel (pull_request) Has been cancelled
e9f7409ed0
Also define systems in mkFlake.nix
All checks were successful
/ check-pre-commit (pull_request) Successful in 14s
/ check-data-model (pull_request) Successful in 30s
/ check-peertube (pull_request) Successful in 21s
/ check-panel (pull_request) Successful in 1m31s
/ check-deployment-basic (pull_request) Successful in 11m14s
/ check-deployment-cli (pull_request) Successful in 39m1s
/ check-deployment-panel (pull_request) Successful in 43m7s
f7a55963ec
Grab git-hooks from npins
Some checks failed
/ check-pre-commit (pull_request) Successful in 17s
/ check-data-model (pull_request) Successful in 37s
/ check-peertube (pull_request) Successful in 25s
/ check-panel (pull_request) Successful in 1m35s
/ check-deployment-basic (pull_request) Failing after 7m10s
/ check-deployment-cli (pull_request) Failing after 7m37s
/ check-deployment-panel (pull_request) Failing after 8m23s
a6b6d66292
kiara approved these changes 2025-07-08 17:55:52 +02:00
Owner

the CI error seems:

deployer # … while fetching the input 'dcf5072734.tar.gz'
deployer #
deployer # error: Failed to open archive (Source threw exception: error: unable to download 'dcf5072734.tar.gz': Could not resolve hostname (6) Could not resolve host: github.com)

not sure why that'd fail only in CI tho.

the CI error seems: > deployer # … while fetching the input 'https://github.com/cachix/git-hooks.nix/archive/dcf5072734cb576d2b0c59b2ac44f5050b5eac82.tar.gz' > deployer # > deployer # error: Failed to open archive (Source threw exception: error: unable to download 'https://github.com/cachix/git-hooks.nix/archive/dcf5072734cb576d2b0c59b2ac44f5050b5eac82.tar.gz': Could not resolve hostname (6) Could not resolve host: github.com) not sure why that'd fail only in CI tho.
Author
Owner

I don't understand. It is not a fluke, I ran CI again and it failed in the same way. Let's first see if we merge #447, then I'll rebase this one, and then I'll investigate!

I don't understand. It is not a fluke, I ran CI again and it failed in the same way. Let's first see if we merge #447, then I'll rebase this one, and then I'll investigate!
Niols force-pushed git-hooks-npins from a6b6d66292 to 9343bf8398 2025-07-09 10:21:31 +02:00 Compare
Author
Owner

OK, I rebased, and I can reproduce locally. I wonder what I did wrong the first time, and what I did right in #449 for the problem not to show up. I will figure it out.

OK, I rebased, and I can reproduce locally. I wonder what I did wrong the first time, and what I did right in #449 for the problem not to show up. I will figure it out.
Niols force-pushed git-hooks-npins from 9343bf8398 to de5c5970d9 2025-07-09 11:01:41 +02:00 Compare
Author
Owner

OK, now this should be good! I still don't understand exactly what I did wrong here and right in #449, but I'm just glad this seems fixed.

OK, now this should be good! I still don't understand exactly what I did wrong here and right in #449, but I'm just glad this seems fixed.
fricklerhandwerk reviewed 2025-07-09 11:24:28 +02:00
@ -64,3 +62,4 @@
pkgs.stdenv
pkgs.stdenvNoCC
]
++ attrValues sources

Not exactly convinced we should give carte blanche here as it may bloat the closure, I'd at least wish for a comment that reassures us this is a good idea.

I imagine it may be okay because we're almost certainly going to need exactly the project's production source closure. But given we may want to add development dependencies we may in fact need less, asymptotically. Today I've been contemplating how to cleanly separate dev and prod dependencies, but it still needs time to cook.

Not exactly convinced we should give carte blanche here as it may bloat the closure, I'd at least wish for a comment that reassures us this is a good idea. I imagine it may be okay because we're almost certainly going to need exactly the project's production source closure. But given we may want to add development dependencies we may in fact need less, asymptotically. Today I've been contemplating how to cleanly separate dev and prod dependencies, but it still needs time to cook.
Author
Owner

Fair enough. In the meantime, would you prefer 328bf9ffed, which seems to also pass locally?

Fair enough. In the meantime, would you prefer https://git.fediversity.eu/Niols/Fediversity/commit/328bf9ffedf95845d8f9e6a280859b5d9beaef54, which seems to also pass locally?
Author
Owner

Done in 7fe48a28ca.

Done in 7fe48a28ca.
fricklerhandwerk marked this conversation as resolved
Niols force-pushed git-hooks-npins from de5c5970d9 to 7fe48a28ca 2025-07-09 11:43:22 +02:00 Compare
Niols merged commit 1d40dcfc0e into main 2025-07-09 13:21:50 +02:00
Niols deleted branch git-hooks-npins 2025-07-09 13:21:50 +02:00
Niols referenced this pull request from a commit 2025-07-09 13:21:51 +02:00
Niols referenced this pull request from a commit 2025-07-09 15:07:05 +02:00
Sign in to join this conversation.
No description provided.