aero icon indicating copy to clipboard operation
aero copied to clipboard

#hostname broken sinсe 1.1.4

Open onoga opened this issue 3 years ago • 1 comments

function env was renamed to get-env, but forgot to rename call (env "HOSTNAME")

https://github.com/juxt/aero/pull/104

onoga avatar Aug 02 '22 15:08 onoga

While waiting for the PR containing the fix for this to be merged, it is possible to recreate this functionality using your own tagged literal e.g. #host instead of #hostname:

e.g. Add this to a namespace before reading in configuration file:

(defmethod aero.alpha.core/eval-tagged-literal 'host
  [tl {:keys [hostname] :as opts} env ks]
  (aero.alpha.core/expand-case (or hostname (System/getenv "HOSTNAME"))
               tl opts env ks))

wardle avatar Jun 20 '23 10:06 wardle