Fork me on GitHub
#tools-build
<
2023-04-05
>
practicalli-johnny10:04:56

With a project that has not yet been added to Git version control, when using tasks from a build.clj script I get the error

fatal: not a git repository (or any of the parent directories): .git
Am I right in assuming that tools.build (or something it depends upon) requires the project to be versioned by Git? (which seems a reasonable requirement) Or should I investigate my build script further?

seancorfield11:04:12

I expect you have some git command in your build script, like the commit count or something in version?

practicalli-johnny11:04:39

Ooops, it seems I am calling git-count-revs from the tools.build API to set :project-version I wonder if I need a project-version for an uberjar if it's deployed through Docker (seems simpler without a version of the uberjar filename)

Alex Miller (Clojure team)14:04:32

doesn't seem very relevant if you're not making a unit for others to consume

👍 4