applied-science / deps-library

Publish deps.edn libraries to Clojars
Eclipse Public License 2.0
52 stars 3 forks source link

github action cannot find tag #11

Closed awb99 closed 3 years ago

awb99 commented 3 years ago

I am trying to switch from lein to clj deps deps-library works for my local machine. But in github actions it cannot find the git tag:

Warning: lein-git-version git exited 128
{:exit 128, :out "", :err "fatal: No names found, cannot describe anything.\n"}
Execution error (ExceptionInfo) at applied-science.deps-library/fail! (deps_library.clj:37).
No version specified. Add a starting tag (eg. git tag v0.1.0), pass a --version argument, or include a :version in release.edn.

This is my library: https://github.com/clojure-quant/trateg

awb99 commented 3 years ago

seems to be related to the commits that github actions load

awb99 commented 3 years ago

I found the issue. Github actions by default does not checkout tags. this makes it fail. Not related to deps-library. However it would be good to have this documented. I guess that deps-library typically wuld be used in CI pipelines.