-
Notifications
You must be signed in to change notification settings - Fork 621
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
installer upgrades #512
installer upgrades #512
Conversation
@axetroy take a look - looks like I fixed problem in Windows tests. |
I agree. For myself at least “rm $(which file_server)” works (Brevity due to phone) |
agree with this. but I don't think This may cause some module to induce users to install in It makes difficult to manage the installed module. example1: if the user reinstalls in different directories. There are two identical scripts in the example2: if there is a conflict with the native command, for example, there is a file At least for the current stage, I disapprove. The solution to allowing different installation directoriesIf the user wants to install in |
You have to explicitly tell installer that you want to install somewhere else (eg.
Your shell deals with that, nothing prevents you from doing exactly these things right now. Some people might want to keep all executable files in single place and don't want to add |
My point is to keep the computer as simple as possible. When I need make it clean and don't mess up your computer. |
@axetroy I'm of your opinion too I prefer everything located in (I kind of wish the cache was still there too...) |
Okay so I added
Maybe we should add |
Eh.. Idk. I'd prefer the DENO_DIR be controlled by the caller. |
Let's tackle that later. This PR should be landable as is. PTAL and review |
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.
Looks good - just one thing...
|
||
OPTIONS: | ||
-d, --dir <PATH> Installation directory path (defaults to ~/.deno/bin) | ||
`); |
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 wish the flags module was more like Go's... This would be generated automatically.
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.
Agreed, I was looking at porting one of more advanced CLI modules from node:
- https://github.com/yargs/yargs
- https://github.com/tj/commander.js/blob/master/index.js
- https://github.com/mattallty/Caporal.js
But I might as well look into https://golang.org/pkg/flag/
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.
LGTM
@bartlomieju Can you draft a commit message please? |
Upgrade installer
|
add test case for reading code from stdin and format update update update update update update update update update update update update update update update improve installer (denoland#512) - remove uninstall command - add --reload to deno fetch - to ensure subsequent installation upgrades script and deps - fix executable shebang - fix prompt for subsequent installation - support custom installation dir via -d/--dir flag typo (denoland#515) bundle/run handles Deno.args better. (denoland#514) fix: pin eslint version for CI (denoland#518) typescript-eslint/typescript-eslint#637 feat: add catjson example (denoland#517) file server should order filenames (denoland#511) update update update update update update update update update update
- remove uninstall command - add --reload to deno fetch - to ensure subsequent installation upgrades script and deps - fix executable shebang - fix prompt for subsequent installation - support custom installation dir via -d/--dir flag Original: denoland/std@b13441f
Relates to denoland#512
Closes #497.
Closes #501
Blocked on #509.
This PR:
installer/mod.ts
uninstall
command--reload
todeno fetch
- this ensures that subsequent installation will upgrade executable!
-d/--dir
parameter for custom installation directoryAfter we land this PR I'll upgrade
deno install
.