V: Hardcoded path ~/code/v has been removed. V 0.1.1 can now be installed anywhere.

Created on 25 Jun 2019  路  7Comments  路  Source: vlang/v

This also fixes Azure CI.

Announcement

Most helpful comment

Done, 0.1.1 is live.

All 7 comments

Yay!
Think you could release this as a hotfix release?
Thanks!

Of course, I'll release 0.1.1 within 15 minutes.

Done, 0.1.1 is live.

Could we update the releases page and the v.c repo to 0.1.1 please?

@medvednikov In my case I've installed it under ~/.vlang, in my .bashrc _export PATH=$PATH:$HOME/.vlang/v/compiler_ however V generates *.c files inside that directory, it could be nice to have those files generated inside ~/.vlang/cache or ~/.vlang/codegen to keep its directory clean.

One thing I noticed is that there are still platform specific third party includes with this hardcoded path, e.g:

https://github.com/vlang/v/blob/353a6edb7c2389d5d10cb0b68ff9504dd54cf392/stbi/stbi.v#L10

When I was setting up the language (very cool by the way!) I had to manually copy some of these thirdparty libraries into my OS' includes directory to get things running, I didn't realise that there was supposed to be an automatic way for this to happen.

Perhaps VROOT can be configured as an env variable, and these includes can be rewritten as #flag darwin -I$VROOT/thirdparty/stb_image


edit:

It looks like someone has opened a PR for this:
https://github.com/vlang/v/pull/559

This was fixed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oleg-kachan picture oleg-kachan  路  3Comments

cjmxp picture cjmxp  路  3Comments

vtereshkov picture vtereshkov  路  3Comments

medvednikov picture medvednikov  路  3Comments

arg2das picture arg2das  路  3Comments