You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Azure Devops git repository is published in following url https://{organization}@dev.azure.com/{organization}/{project-name}/_git/{repo-name} . Unlike other git repo that ends with .git , the Azure Devops git repository doesnt end with .git.
When I run following command copier copy https://{organization}@dev.azure.com/{organization}/{project-name}/_git/{repo-name} sample
it always throws following exception ValueError: Local template must be a directory.
Template
# Project optionsteam_project:
type: strhelp: | The name of the Azure DevOps project where the pipelines will be created. This is the name of the project, not the organization , not the name of the repository.project_name:
type: strhelp: "What is your project name"_message_after_copy: | Your project "{{ project_name }}" has been created successfully! Next steps: 1. cd {{ project_name }} 2. Read the README.md file and update it with your project information 3. Run 'python -m venv venv' to create a virtual environment and activate it 4. Run 'pip install -r requirements.txt' to install the project dependencies 5. Start coding!_message_after_update: | Your project "{{ project_name }}" has been updated successfully! In case there are any conflicts, please resolve them. Then, you're done._tasks:
# OS-specific task (supported values are "linux", "macos", "windows" and `None`)
- command: find docs -type f -name "*.md" ! -name "Readme.md" -exec rm {} +when: "{{ _copier_conf.os in ['linux', 'macos'] }}"
- command: for %i in (docs\*.md) do @if /i not "%~nxi"=="Readme.md" del "%i"when: "{{ _copier_conf.os == 'windows' }}"
Traceback (most recent call last): File "...\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "...\Python\Python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "....local\bin\copier.exe\__main__.py", line 7, in <module> File "...pipx\venvs\copier\lib\site-packages\plumbum\cli\application.py", line 640, in run inst, retcode = subapp.run(argv, exit=False) File "...pipx\venvs\copier\lib\site-packages\plumbum\cli\application.py", line 635, in run retcode = inst.main(*tailargs) File "...pipx\venvs\copier\lib\site-packages\copier\cli.py", line 281, in main return _handle_exceptions(inner) File "...pipx\venvs\copier\lib\site-packages\copier\cli.py", line 70, in _handle_exceptions method() File "...pipx\venvs\copier\lib\site-packages\copier\cli.py", line 279, in inner worker.run_copy() File "...pipx\venvs\copier\lib\site-packages\copier\main.py", line 237, in __exit__ raise value File "...pipx\venvs\copier\lib\site-packages\copier\cli.py", line 279, in inner worker.run_copy() File "...pipx\venvs\copier\lib\site-packages\copier\main.py", line 832, in run_copy self._print_message(self.template.message_before_copy) File "...\Python\Python39\lib\functools.py", line 993, in __get__ val = self.func(instance) File "...pipx\venvs\copier\lib\site-packages\copier\template.py", line 352, in message_before_copy return self.config_data.get("message_before_copy", "") File "...\Python\Python39\lib\functools.py", line 993, in __get__ val = self.func(instance) File "...pipx\venvs\copier\lib\site-packages\copier\template.py", line 300, in config_data result = filter_config(self._raw_config)[0] File "...\Python\Python39\lib\functools.py", line 993, in __get__ val = self.func(instance) File "...pipx\venvs\copier\lib\site-packages\copier\template.py", line 257, in _raw_config for p in self.local_abspath.glob("copier.*") File "...\Python\Python39\lib\functools.py", line 993, in __get__ val = self.func(instance) File "...pipx\venvs\copier\lib\site-packages\copier\template.py", line 559, in local_abspath raise ValueError("Local template must be a directory.")ValueError: Local template must be a directory.
Expected behavior
Should works.
I can clone the repo and do copier cloned_path target_path
Screenshots/screencasts/logs
No response
Operating system
Windows
Operating system distribution and version
Windows 11
Copier version
copier 9.4.1
Python version
Python 3.9.13
Installation method
pipx+pypi
Additional context
pipx
The text was updated successfully, but these errors were encountered:
Describe the problem
Azure Devops git repository is published in following url https://{organization}@dev.azure.com/{organization}/{project-name}/_git/{repo-name} . Unlike other git repo that ends with .git , the Azure Devops git repository doesnt end with .git.
When I run following command
copier copy https://{organization}@dev.azure.com/{organization}/{project-name}/_git/{repo-name} sample
it always throws following exception
ValueError: Local template must be a directory.
Template
To Reproduce
copier copy https://{organization}@dev.azure.com/{organization}/{project-name}/_git/{repo-name} sample
Logs
Expected behavior
Should works.
I can clone the repo and do
copier cloned_path target_path
Screenshots/screencasts/logs
No response
Operating system
Windows
Operating system distribution and version
Windows 11
Copier version
copier 9.4.1
Python version
Python 3.9.13
Installation method
pipx+pypi
Additional context
pipx
The text was updated successfully, but these errors were encountered: