This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-18
Channels
- # announcements (1)
- # babashka (15)
- # beginners (152)
- # calva (28)
- # circleci (1)
- # clj-kondo (24)
- # cljsrn (8)
- # clojure (137)
- # clojure-berlin (3)
- # clojure-czech (2)
- # clojure-dev (20)
- # clojure-europe (69)
- # clojure-finland (5)
- # clojure-france (3)
- # clojure-italy (11)
- # clojure-my (1)
- # clojure-nl (4)
- # clojure-uk (15)
- # clojuredesign-podcast (1)
- # clojurescript (13)
- # conjure (15)
- # cursive (13)
- # datomic (41)
- # deps-new (50)
- # events (1)
- # fulcro (9)
- # graalvm (27)
- # joker (2)
- # kaocha (11)
- # off-topic (22)
- # pathom (48)
- # rdf (6)
- # reagent (25)
- # reitit (47)
- # reveal (10)
- # ring-swagger (1)
- # rum (4)
- # sci (27)
- # shadow-cljs (73)
- # tools-deps (49)
- # vrac (2)
- # xtdb (4)
is there a way to get clj
working on a machine without access to internet? specifically I'd want clj + project dependencies on a machine behind a very restrictive firewall. I'm able to transfer files to it, and when building I use uperdeps.
I know that with leiningen I could download a jar-file and a bat-file, then it didn't need access to internet. is it possible to do something like that with clj
?
@saikyun the installer just downloads a couple jar files and puts them on the filesystem, then puts a script in /bin/ to run that jar.
The void linux install script is the simplest version I know of, but others might have good examples too 🙂 https://github.com/SevereOverfl0w/void-packages/blob/master/srcpkgs/clojure/template#L15-L23
@saikyun Alternative if you end up running into issues: with deps.clj it's just a matter of downloading the executable and placing the tools jar in ~/.deps.clj
(as documented here: https://github.com/borkdude/deps.clj/issues/20)
@borkdude thanks, something like that is what I wanted 🙂 what is the analogue to ~
on windows?
@saikyun Here is one user working around firewalls copying his .m2 deps with bb: https://twitter.com/MrGung1/status/1305906562746253315
Github releases: https://github.com/borkdude/deps.clj/releases
or install via scoop etc, but since you're having firewall issues, Github releases is probably the easiest
I'm getting this error now:
Error building classpath. Failed to read artifact descriptor for org.clojure:clojure:jar:1.10.1
org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.clojure:clojure:ja
r:1.10.1
this is what prompted me to try to install tools.deps in an alternative way in the first place
I wonder if there's some old stuff lying around, trying to find tools.deps in the directory specified when I ran the .ps1 installation script...
when running clj -P
, where do the dependencies end up? I'm looking in ~/.m2
but can't find clojure :S
got it all working by removing my local, existing .m2
, then ran clj -P
, then I copied my new local .m2
to the firewalled machine and now it works 🙂
I think the .m2/repository is also configurable in deps.edn (can't remember it from the top of my head)
which probably also works with -Sdeps? then that could be used for populating an ad hoc repo @saikyun
I use this for testing "clean cache" cases all the time
(without having to muck with my actual ~/.m2/repository)
I’m setting up a dev environment on a pretty locked down production machine, so these things are invaluable
One issue I had while developing on a train is that I forgot to download deps for certain aliases
Hi all! Does clojure take MAVEN_OPTS from environment variables? I can’t use keystore with clojure, but it’s work with mvn (directly)
@just.sultanov I just grepped the source of brew-install, homebrew-tools, and tools.deps.alpha and didn't see that var in any files so I would say "no".
It does handle ~/.m2/settings.xml
for Maven stuff tho' so maybe you could put credentials in there?
I need to use keystore.jks with self-signed corp certificates. I don’t have problems with credentials. Maven by default pick up settings from .mavenrc and MAVEN_OPTS, but I didn’t see any usages in sources of tools.deps
doesn't use it right now
you can log the request at https://ask.clojure.org