Closed ghobona closed 1 year ago
The error is being triggered by this check in metanorma-cli:
def download
remove!
clone_git_template(options[:repo])
rescue Git::GitExecuteError
UI.say("Invalid template reoository!")
nil
end
That code (which I did not write, four years ago) is failing to print what the error actually is, and that is going to change now.
When you do print what the error is, you find that it is:
output: "Cloning into '/Users/nickn/.metanorma/templates/git/ogc'...\nremote: Repository not found.
fatal: repository 'https://github.com/metanorma/metanorma-templates-ogc/' not found"!
And indeed, @ghobona , you got the URL of the repo wrong. It is https://github.com/metanorma/mn-templates-ogc
When running the following command...
docker run --rm -v "$(pwd)":/metanorma metanorma/metanorma metanorma new -d standard -t ogc -l https://github.com/metanorma/metanorma-templates-ogc folder_for_standard
The template is generated but the top of the console output reads
Invalid template reoository!
.See attached.