Skip to content

v.util.recompilation #

fn disabling_file #

fn disabling_file(vroot string) string

disabling_file returns the path to a file, which if present, will disable the automatic recompilation that V attempts, when it detects that itself is newer than a tool .v source file. That file is intended to be made by touch cmd/tools/.disable_autorecompilation by package managers, so that tools like v up and v self will not work anymore, instead they will direct users to install V from source.

fn must_be_enabled #

fn must_be_enabled(vroot string, error_message string)

must_be_enabled is intended to be used by tools like v self and v up, to abort them early, when they detect that the V installation is part of a distro package, that has disabled autorecompilation.

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant