@seancorfield Hello. I'm trying to use build-clj to build uberjar and noticed that it cannot be used without internet.
If I switch off wifi on my mac, then during the building uberjar I got this message "fatal: ยซhttps://github.com/seancorfield/build-clj.git/ยป unavailable: Could not resolve host: http://github.com"
Is it possible to use local cache .gitlibs on machine to build artifact?
This is in my deps.edn
:build {:deps {io.github.seancorfield/build-clj {:git/tag "v0.6.7" :git/sha "22c2d09"}}
:ns-default build}
have you run the build with wifi turned on?
Any more to the message than that?
nope
this is with internet
oops. something changed and now build is succesful without internet.
false alarm.
but I can't understand why I got such messages before. Magic.
Well you might have cached classpath now
It wouldn't surprise me if there was something that didn't work where it maybe could
yes. with internet the build is succesfull
I don't believe build-clj adds any dependencies or downloads anything, that is all in the hands of tools.deps
ah, using a :git/tag looks like it causes gitlibs (https://github.com/clojure/tools.gitlibs/blob/master/src/main/clojure/clojure/tools/gitlibs/impl.clj#L179) to unconditionally do a fetch
which, I guess makes sense, given that tags can be mutated
hmm. This error is flawing. Sometimes it appears, sometime disappears.
it will depend on if there is a .cpcache I bet
is it intentional behaviour?
It's intentional for there to be a cache, but I would be happy to see if we can address it if existing project is in gitlibs and it resolved the url but didn't need to
Might be some optional thing we could do
๐