-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
tools: make ./v symlink
work platform independent in CI
#21453
Conversation
./v symlink
work platform independent in CI
i.e. that is the last thing that should be changed, after we are sure that |
|
That will be nice, if true. I am not confident in it. |
The goal is to make the it work without the flag. And it works without the flag. As it is a simple change idk what is wrong. Trying to understand the problem if you would share what is not tested here, it would help. In the theoretical case of scenarios where nix systems would require V in the |
…bci` flag the same
Too small steps for me, considering the relation to time, chance of breakage and easy possibilities to fix. The request of making the change of removing the |
Many of the CI jobs do use They are written like that, in part because of how flaky |
Symlinking to Writing to a file, whose location is described in
Once After several months, all other CIs for V projects will have had time to upgrade, and we can remove the behavior for |
I did not object to removing the I do strongly object to removing the functionality of passing |
The current state, after e012ca8 is fine. |
That is true but of relevance for local symlinking. In GitHub CI the folder should have write permissions in the same way as it is not required to add credentials when running commands as sudo. When those default permissions are changed it's a custom case where the one doing those permission changes will need to take care of it. I'll try that patience thing when making the smallest possible steps so that data can better cover things than words can. |
Splits up changes to make
./v symlink
work platform independent in CI.The PR:
vsymlink_windows.c.v
code. On unix-like systems regular symlinking will be used, whether or not-githubci
was passed.os.getwd()
to the GITHUB_PATH,new_sys_env_path
is used. It is the path used on a regular windows systems -> Brings tests in Windows CI closer to a regular scenario, makes them more reliable../v symlink
should already work platform independent. The-githubci
flag is not required anymore. Cases withsudo
and the-githubci
flag are still covered by the current, unchanged CI jobs. They should continue to work and there are no plans in changing this inside the PRs that are implementing this enhancement. Only adding an info that the flag is not required anymore.