using eca as a flake input appears to break after commit 741c550825958cd111a8b8a612ef8be10eda9974
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
Describe the bug A clear and concise description of what the bug is.
I'm using eca in a flake for my nixos and darwin configurations. I don't update more than every week or two generally but when I tried to update to the latest eca I got the following test failure when the eca derivation was building.
> Location: /build/yvw66hm8px733i40yamiaqca4cj3j6g4-source/scripts/make.clj:29:7
>
> ----- Context ------------------------------------------------------------------
> 25: (fs/move file "." {:replace-existing true}))
> 26:
> 27: (defn ^:private clj! [cmd]
> 28: (-> (deps/clojure cmd {:inherit true})
> 29: (p/check)))
> ^---
> 30:
> 31: (defn ^:private build [tool] (clj! ["-T:build" tool]))
> 32:
> 33: (defn eca-bin-filename
> 34: [usage]
>
> ----- Stack trace --------------------------------------------------------------
> babashka.process/check - <built-in>
> make/clj! - /build/yvw66hm8px733i40yamiaqca4cj3j6g4-source/scripts/make.clj:29:7
> make/clj! - /build/yvw66hm8px733i40yamiaqca4cj3j6g4-source/scripts/make.clj:27:1
> make - /build/yvw66hm8px733i40yamiaqca4cj3j6g4-source/scripts/make.clj:92:3
> clojure.core/apply - <built-in>
> user-42d254ca-5025-4445-94a6-a827996ce323 - <expr>:28:1
>
For full logs, run:
nix log /nix/store/4fnpd6q4zpkj4vwvjj71kqln7crblq34-eca-DEV.drv
zsh: exit 1 nix build .#nixosConfigurations.rtx.config.system.build.toplevel --show-trace
Note this seems to apply to both nix-darwin/macos or nixos. Since my last working version was 0.75.4 I noticed this seemed to start in tag 0.76.0. So I ran a git bisect to find the commit and got to this commit as introducing the test failure:
741c550825958cd111a8b8a612ef8be10eda9974 is the first bad commit
commit 741c550825958cd111a8b8a612ef8be10eda9974
Date: Sat Nov 1 10:38:27 2025 -0700
Add tests for login feature
test/eca/features/login_test.clj | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
create mode 100644 test/eca/features/login_test.clj
To Reproduce
I'm a bit unclear how I'm the only user seeing the behavior to be honest or how to reproduce exactly. Not sure anyone else would want to run a nix build against my personal flake.
I think the issue is that nix builds everything without network access and the new login tests seem to expect that to be present? I'm assuming the java.net.ConnectException null indicates a tcp connection was attempted but failed and threw an exception? Best educated guess on my part though.
Uncaught exception, not in assertion.
Exception: java.net.ConnectException: null
at jdk.internal.net.http.HttpClientImpl.send (HttpClientImpl.java:955)
jdk.internal.net.http.HttpClientFacade.send (HttpClientFacade.java:133)
hato.client$request_STAR_.invokeStatic (client.clj:304)
hato.client$request_STAR_.doInvoke (client.clj:297)
...
hato.middleware$wrap_request_timing$fn__11426.invoke (middleware.clj:571)
hato.middleware$wrap_query_params$fn__11347.invoke (middleware.clj:402)
hato.middleware$wrap_basic_auth$fn__11355.invoke (middleware.clj:423)
Steps to reproduce the behavior:
I'm a bit unclear, all I am doing here is pulling in this flake into my own and using the eca package and splicing it into my nixpkgs set as used in the flake.
e.g. this worked as a flake input:
eca.url = "github:editor-code-assistant/eca/20d90c57136c3c31974e5f774ccc53533ae50710";
This did not:
eca.url = "github:editor-code-assistant/eca/741c550825958cd111a8b8a612ef8be10eda9974";
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
I think this test needs to be marked with requires network access to pass through a nix derivation build but can't be sure. I'm not a java nor clojure expert.
Doctor
Paste the relevant parts of /doctor command from chat if applicable:
n/a
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
Full nix log on the failing build in this gist (its gihugic): https://gist.github.com/mitchty/6b18ae4a5ca4cd3f846e5b0e85cc13c4
@mitchty yeah, for some reason nix build is failing as mentioned here but I have no clue why...
new login tests seem to expect that to be present?
Hum this is interesting, I will take a look if we left anything reaching netwrok accidentally.
Yes, that was the reason, will fix the test and it should work again!
Done! Thank you for the report and debugging @mitchty!
Works! Thanks for the quick reply and fix on a Saturday no less @ericdallo !