Fork me on GitHub
#leiningen
<
2024-01-10
>
Jake Pearson23:01:12

Hi. My company requires vpn connection to download deps when working from home (which is fine), but normally nothing has changed. When nothing is changed and my vpn is off lein will hang while I assume it tries to talk to our maven instance. Is there a way to figure out what calls are being made or maybe a setting to not check the network if no jars are missing?

seancorfield23:01:14

You can put :offline? true in a profile and use that to prevent lein checking the network. See https://codeberg.org/leiningen/leiningen/src/branch/stable/sample.project.clj#L151-L153

Jake Pearson15:01:58

Thanks, that's really helpful. Do you happen to know what network calls happen without :offline? true and there are no missing deps?

seancorfield17:01:40

No, I haven't used lein since 2015 and I never used offline mode even then.

Jake Pearson17:01:24

No problem. Thanks!!