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

./v up deletes itself when .git is missing #19964

Closed
skull-squadron opened this issue Nov 22, 2023 · 0 comments · Fixed by #19965
Closed

./v up deletes itself when .git is missing #19964

skull-squadron opened this issue Nov 22, 2023 · 0 comments · Fixed by #19965
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@skull-squadron
Copy link
Contributor

skull-squadron commented Nov 22, 2023

Describe the bug

v be:

image

Reproduction Steps

cd {{tmpdir}}
git clone https://github.com/vlang/v --depth 1
cd v
make -j
mv .{,x}git
./v up

Expected Behavior

No-op

$ ls
CHANGELOG.md        CONTRIBUTING.md  Dockerfile.alpine  GNUmakefile  Makefile   ROADMAP.md  bench          cmd  examples  thirdparty  v      vc
CODE_OF_CONDUCT.md  Dockerfile       Dockerfile.cross   LICENSE      README.md  TESTS.md    changelogs0.x  doc  make.bat  tutorials   v.mod  vlib

Current Behavior

Updating V...
V is already updated.
Current V version: sh: {{tmpdir}}/v/v: No such file or directory
$ ls
CHANGELOG.md        CONTRIBUTING.md  Dockerfile.alpine  GNUmakefile  Makefile   ROADMAP.md  bench          cmd  examples  thirdparty  v.mod  vlib
CODE_OF_CONDUCT.md  Dockerfile       Dockerfile.cross   LICENSE      README.md  TESTS.md    changelogs0.x  doc  make.bat  tutorials   vc
$

Possible Solution

Fix attached shortly

Additional Information/Context

No response

V version

0.4.3 01e6f64

Environment details (OS name and version, etc.)

V full version: V 0.4.3 01e6f64
OS: macos, macOS, 14.1.1, 23B81
Processor: 10 cpus, 64bit, little endian, Apple M1 Max

getwd: {{tmpdir}}/v
vexe: {{tmpdir}}/v/v
vexe mtime: 2023-11-22 01:13:49

vroot: OK, value: {{tmpdir}}/v
VMODULES: OK, value: /Users/ba/.vmodules
VTMP: OK, value: /tmp/v_501

Git version: git version 2.42.1
Git vroot status: weekly.2023.45.1-101-g01e6f647
.git/config present: true

CC version: Apple clang version 15.0.0 (clang-1500.0.40.1)
thirdparty/tcc status: thirdparty-macos-arm64 a668e5a0

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.

@skull-squadron skull-squadron added the Bug This tag is applied to issues which reports bugs. label Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant