Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to install v modules from local checkout of a repository #16946

Closed
2 tasks
brandonpille opened this issue Jan 11, 2023 · 3 comments
Closed
2 tasks

Ability to install v modules from local checkout of a repository #16946

brandonpille opened this issue Jan 11, 2023 · 3 comments
Labels
Feature Request This issue is made to request a feature.

Comments

@brandonpille
Copy link
Contributor

Describe the feature

It would be amazing to be able to install the modules of a repository that you cloned (and also altered in a branch for example). I encouter many times where I'm working on a repository (making changes to code or adding new modules) and I quickly want to test it. I first have to create a symlink to ~/.vmodules for it to work.

Use Case

See description

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Version used

0.3.2

Environment details (OS name and version, etc.)

OS: linux, Ubuntu 22.04.1 LTS
Processor: 16 cpus, 64bit, little endian, 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
CC version: cc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0

getwd: /work/crystallib/rmbproxy
vmodules: /home/brandon/.vmodules
vroot: /work/v
vexe: /work/v/v
vexe mtime: 2023-01-06 10:15:19
is vroot writable: true
is vmodules writable: true
V full version: V 0.3.2 f0a252d.3b594d6

Git version: git version 2.34.1
Git vroot status: weekly.2023.01-26-g3b594d6c (31 commit(s) behind V master)
.git/config present: true
thirdparty/tcc status: thirdparty-linux-amd64 12f392c3

@brandonpille brandonpille added the Feature Request This issue is made to request a feature. label Jan 11, 2023
@JalonSolov
Copy link
Contributor

There are 2 other ways to achieve this already...

  1. Have a v.mod file in the root of your project, and clone the module to a subdir of your project. V will see it as a "local module" due to the v.mod file anchor.

  2. Set the VMODULES env var to point to the clone location as well as .vmodules (so it can find everything).

@aynh
Copy link
Contributor

aynh commented Jan 11, 2023

It's also possible to install a local git repository, but you need to use absolute path. For example v install --git $PWD will install the git repository in current working directory.

@MatejMagat305
Copy link
Contributor

There are 2 other ways to achieve this already...

1. Have a `v.mod` file in the root of your project, and clone the module to a subdir of your project.  V will see it as a "local module" due to the `v.mod` file anchor.

2. Set the `VMODULES` env var to point to the clone location as well as `.vmodules` (so it can find everything).

I think that is excelent tool and it is enuoght for vlang ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request This issue is made to request a feature.
Projects
None yet
Development

No branches or pull requests

4 participants