v icon indicating copy to clipboard operation
v copied to clipboard

os: fix `os.join_path('/', 'file.txt')` and `os.join_path_single('/', 'file.txt')` (fix #20231)

Open spytheman opened this issue 1 year ago • 4 comments

Fix #20231 .

spytheman avatar May 05 '24 05:05 spytheman

@spytheman what are you doing? are you stealing my PR? Let's not waste double efforts into solving the SAME ISSUE on multiple fronts there are 850+ issues to work on why not work together?

image

hholst80 avatar May 05 '24 07:05 hholst80

@spytheman what are you doing? are you stealing my PR? Let's not waste double efforts into solving the SAME ISSUE on multiple fronts there are 850+ issues to work on why not work together?

I am fixing it in a different way, that will require way less edits and review changes.

I am sorry, but os and join_path especially, is not the place for learning about V, and I am not in the mood of breaking bootstrapping and then fixing it slowly today.

spytheman avatar May 05 '24 07:05 spytheman

Once it passes the CI, I can push to your PR, and then you will get the credit, when it is merged. I do not care about that at all. I simply do not want problems with the bootstrap and I have enough experience to know that changes in that particular place are tricky.

spytheman avatar May 05 '24 07:05 spytheman

@hholst80, the CI passed for this PR, and imho it will be a bit less breaking, while ensuring the future stability of the behavior of os.join_path and os.join_path_single (which are now more unified in their output, and better tested).

Do you want me to push the changes here to your PR, so that I can merge them there?

spytheman avatar May 05 '24 13:05 spytheman

Obsoleted by https://github.com/vlang/v/pull/21494 .

spytheman avatar May 13 '24 07:05 spytheman