tools-build 2022-02-03

@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?

Alex Miller (Clojure team) 2022-02-03T22:00:07.279119Z

Any more to the message than that?

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.

Alex Miller (Clojure team) 2022-02-03T22:10:48.737129Z

Well you might have cached classpath now

Alex Miller (Clojure team) 2022-02-03T22:11:16.711369Z

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

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

๐Ÿ‘ 1

is it intentional behaviour?

Alex Miller (Clojure team) 2022-02-03T22:12:48.553129Z

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

Alex Miller (Clojure team) 2022-02-03T22:13:28.642769Z

Might be some optional thing we could do

๐Ÿ‘