I added git_ops to my mix.exs but forgot to put in the config.exs stuff before I ran mix git_ops.release --initial for the first time. The resulting error message doesn't make it obvious what the problem was:
** (UndefinedFunctionError) function nil.project/0 is undefined. If you are using the dot syntax, such as map.field or module.function, make sure the left side of the dot is an atom or a map
nil.project()
lib/mix/tasks/git_ops.release.ex:62: Mix.Tasks.GitOps.Release.run/1
(mix) lib/mix/task.ex:316: Mix.Task.run_task/3
(mix) lib/mix/cli.ex:79: Mix.CLI.run_task/2
I mean't to push this to a branch, but I was careless and pushed it to master. Either way, its a small and entirely harmless change so I think I will leave it :)
I added
git_ops
to mymix.exs
but forgot to put in theconfig.exs
stuff before I ranmix git_ops.release --initial
for the first time. The resulting error message doesn't make it obvious what the problem was: