tools-build

practicalli-johnny 2023-04-05T10:22:56.008719Z

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?

seancorfield 2023-04-05T11:34:12.236829Z

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

practicalli-johnny 2023-04-05T11:49:39.780019Z

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) 2023-04-05T14:05:32.062029Z

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

👍 2