Skip to content

Commit

Permalink
fixup! fixup! allow to version with any fn source
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenet committed Jul 18, 2024
1 parent 7e91538 commit d27447c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/exoscale/tools/project/api/version.clj
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@

(defn get-version
[{:as _opts :exoscale.project/keys [version-file version-fn version]}]
(or version
(some-> version-file version/read-version-file*)
(qualified-ident? version-fn) (run-version-fn version-fn)))
(let [version-from-file (some-> version-file version/read-version-file*)]
(cond
(string? version) version
(string? version-from-file) version-from-file
(qualified-ident? version-fn) (run-version-fn version-fn))))

(defn remove-snapshot
[{:as _opts
Expand Down

0 comments on commit d27447c

Please sign in to comment.