Describe the bug
Having a tilde character ~ in an external repo segment causes apm install to fail with the error below. Bitbucket Data Center and Server installations use the ~ character prefix to indicate a personal user repository.
apm install
[>] Installing dependencies from apm.yml...
[x] Failed to parse apm.yml: Invalid APM dependency 'https://example.com/scm/path/~myuser/my-apm-repo.git': Invalid repository path component: ~myuser
[!] Install interrupted after 0.0s
To Reproduce
Steps to reproduce the behavior:
- Add an apm dependency to your apm.yml file with a tilde like:
name: my-app
version: 0.1.0
targets:
- copilot
dependencies:
apm:
- https://example.com/scm/path/~myuser/my-apm-repo.git
- Run command
apm install
- See error
Expected behavior
Repository URL is handled properly and apm dependency is installed from repo.
Environment (please complete the following information):
- OS: macOS
- Python Version: 3.12.5
- APM Version: 0.13.0
- VSCode Version (if relevant): N/A
Logs
See above - logs provided in bug description.
Additional context
N/A
Describe the bug
Having a tilde character
~in an external repo segment causesapm installto fail with the error below. Bitbucket Data Center and Server installations use the~character prefix to indicate a personal user repository.To Reproduce
Steps to reproduce the behavior:
apm installExpected behavior
Repository URL is handled properly and apm dependency is installed from repo.
Environment (please complete the following information):
Logs
See above - logs provided in bug description.
Additional context
N/A