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
fix(build): support tilde expansion on windows #563
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code is currently broken
Hm, first time I see this. Is the Also: Isn't the code here currently already exactly for making it possible to use |
=> It take me to 5 hours to learn that there is no documented or any suggestion from google ( I was read about 10 google pages <=> 50 web page with a lot of try times) but it have nothing. Then, I go to read the source code. The document is lack of this.
=> yes it support windows. that very nice, except: that was take a lot of time. |
Codecov Report
@@ Coverage Diff @@
## master #563 +/- ##
==========================================
- Coverage 62.11% 61.92% -0.19%
==========================================
Files 17 17
Lines 1985 1991 +6
Branches 371 374 +3
==========================================
Hits 1233 1233
- Misses 752 758 +6
Continue to review full report at Codecov.
|
So your issue is that you develop your app on different computers. To be able to use the same And to "fix" that, you now implemented this PR that allows the usage of Wouldn't it make more sense to try to replace Is the usage of |
After writing this, I decided to look into why this tilde code is there in the first place: Your original issue nd problem seems more like an unintended side effect of this "hack" that was used to work around this node problem. Anyway, the usage of environment variables in the path itself is a totally new and different feature and I am not sure this is the way to go. |
Thanks @hiepxanh for the proposal, my response is in apache/cordova-cli#359 (comment). |
@janpio I'm not aware that the lack of tilde expansion has ever been accepted as being a bug in Node.js. AFAIK, it had always been like that and there are a variety of libraries for this use-case. I prefer https://www.npmjs.com/package/untildify |
Thanks @raphinesse for this necessary context. So if we decide to keep this functionality, it would probably make sense to switch over to using this package (any maybe make this available to all platforms along the way?). The package uses |
Agreed on my part and I would definitely favor making this available to all platforms. (I was about to suggest the same idea.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggested changes don't actually solve the underlying problem and create more unrelated problems
I think that means changes suggested 2 days ago and not the recent suggestion to use untildify. |
@brodybits Pull Request reviews relate to the code being suggested in the Pull Request, so of course yes, this does not refer to the comments and discussion made here - I just made sure it is clear that the suggested code should not be merged by anyone. |
@janpio @brodybits thank you for reviewing my small idea. I think this will be helpful and help alot of people like me. Have to build code with team have different develop enviroment. I agree that my solution not work with all platforms and not a global solution. So I think that we should use @raphinesse suggested library. It will be nice. |
@brodybits yes sir. I will do it |
Codecov Report
@@ Coverage Diff @@
## master #563 +/- ##
==========================================
+ Coverage 73.20% 73.26% +0.06%
==========================================
Files 21 21
Lines 1646 1646
==========================================
+ Hits 1205 1206 +1
+ Misses 441 440 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I redid the fix using untildify
Co-authored-by: Raphael von der Grün <raphinesse@gmail.com>
Platforms affected
Android, ios, Browser
What does this PR do?
I struggeling with home path every time changing build computer or transfer code to my teammate computer. the
build.json
config does not find home path on window with "command line" or "power shell". there is no tutorial about this. I have to go to build file to know that there is~
equivalent with$HOME
and%HOMEPATH%
on window.I think it is feature?
What testing has been done on this change?
Checklist