When running dktl init in a folder with only a vanilla dkan project instance, I received the following error:
No local dkan folder in project root.
Solution
It seems the logic used to determine the location of the current DKAN project was incorrect. It expected a "dktl.yml" file to be present in the current directory, or in some parent directory. It then noticed I had a stray "dktl.yml" file in my home directory and thought my home directory was the project directory.
I've updated the project directory detection logic to assume that the current directory is the project directory when dktl init or dktl make is called.
QA Instructions
Create a directory containing only an empty "dktl.yml" file.
Create a subdirectory within that directory.
In the subdirectory, clone a copy of DKAN core into a directory named "dkan".
In the subdirectory, run dktl init --dkan-local and make sure the command finished successfully and that you do not receive the error message:
Problem
When running
dktl init
in a folder with only a vanilla dkan project instance, I received the following error:Solution
It seems the logic used to determine the location of the current DKAN project was incorrect. It expected a "dktl.yml" file to be present in the current directory, or in some parent directory. It then noticed I had a stray "dktl.yml" file in my home directory and thought my home directory was the project directory. I've updated the project directory detection logic to assume that the current directory is the project directory when
dktl init
ordktl make
is called.QA Instructions
dktl init --dkan-local
and make sure the command finished successfully and that you do not receive the error message: