Installing package from local git repository fails
Describe the bug
Installing a package from a local git repository fails with
error: failed to retrieve metadata for `<path>`.
Reproduction Steps
Initialize a V package in <directory>
use any of
v install <directory>
v install file:///<directory>
v install --git <directory>
v install --git file:///<directory>
v install <directory>.git
v install file:///<directory>.git
v install --git <directory>.git
v install --git file:///<directory>.git
Expected Behavior
Any repository URL that is supported by git should work.
https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols
Otherwise, the documentation should explain the restrictions.
Current Behavior
Unable to install a local repository and documentation does not mention whether that should be supported.
Possible Solution
No response
Additional Information/Context
No response
V version
0.4.6
Environment details (OS name and version, etc.)
V full version: V 0.4.6 b5ba466.d186c39 OS: linux, Ubuntu 22.04.4 LTS Processor: 12 cpus, 64bit, little endian, AMD Ryzen 5 5600X 6-Core Processor
getwd: /home/joel/Development vexe: /opt/v/v vexe mtime: 2024-07-24 14:48:07
vroot: OK, value: /opt/v VMODULES: OK, value: /home/joel/.vmodules VTMP: OK, value: /tmp/v_1000
Git version: git version 2.34.1 Git vroot status: weekly.2024.30-11-gd186c394 (54 commit(s) behind V master) .git/config present: true
CC version: cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 thirdparty/tcc status: thirdparty-linux-amd64 a0799a5b
[!NOTE] You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote. Other reactions and those to comments will not be taken into account.