Skip to content

Commit

Permalink
fix filename for versioned apis
Browse files Browse the repository at this point in the history
  • Loading branch information
timothypratley committed Sep 2, 2024
1 parent 9c7d603 commit 8ee2e88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dev/happyapi/gen/google/lion.clj
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
(try
;; if we have it already just use it.
(println (str "Building" (when idx (str " " idx " of " (count monkey/apis)))) name)
(let [target (io/file beaver/out-dir (str name "_" version ".clj"))
api-file (io/file beaver/resource-dir (str name "_" version ".edn"))
(let [filename (str name "_" (str/replace version "." "_"))
target (io/file beaver/out-dir (str filename ".clj"))
api-file (io/file beaver/resource-dir (str filename ".edn"))
api (if (.exists api-file)
(edn/read-string (slurp api-file))
(doto (raven/get-json discoveryRestUrl)
Expand Down

0 comments on commit 8ee2e88

Please sign in to comment.