-
Notifications
You must be signed in to change notification settings - Fork 229
msys / cygwin support for pub #1120
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
Comments
<img src="https://avatars.githubusercontent.com/u/5479?v=3" align="left" width="48" height="48"hspace="10"> Comment by sethladd |
<img src="https://avatars.githubusercontent.com/u/444270?v=3" align="left" width="48" height="48"hspace="10"> Comment by seaneagan This is also an issue with the new package executables implemented in issue #970, they have to be called with The equivalent feature in npm does not have this issue. Npm's generated "binstubs" for package executables look almost exactly like the npm shell script embedded above: ''' case if [ -x "$basedir/node" ]; then |
<img src="https://avatars.githubusercontent.com/u/444270?v=3" align="left" width="48" height="48"hspace="10"> Comment by seaneagan This also affects these executables: dartfmt So not necessarily Area-Pub |
<img src="https://avatars.githubusercontent.com/u/444270?v=3" align="left" width="48" height="48"hspace="10"> Comment by seaneagan It would be nice to run the same build script from from travis-ci.org (linux, osx) and appveyor.com (windows), which could be done via the use of cygwin. Appveyor has an image with cygwin preinstalled: http://help.appveyor.com/discussions/suggestions/427-pre-install-cygwin However, due to this issue no pub commands, or For projects that use a task runner like grinder (https://github.com/google/grinder.dart) for their build, that can take care of most of the platform abstraction, but not all, and not all projects will use a task runner. |
<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3 Cygwin is not currently a supported platform for Dart. This means that we aren't going to allocate any resources towards it, including engineering time or test coverage. You're welcome to submit patches to improve support, but bear in mind that since they won't be tested, we can't guarantee that we won't break them in the future. Added NotPlanned label. |
<img src="https://avatars.githubusercontent.com/u/444270?v=3" align="left" width="48" height="48"hspace="10"> Comment by seaneagan Ugh, this makes dart really painful to use from a windows machine. Using a standard windows shell like CMD might be bearable if at least color were supported (issue dart-lang/sdk#21337). |
<img src="https://avatars.githubusercontent.com/u/444270?v=3" align="left" width="48" height="48"hspace="10"> Comment by seaneagan Thanks for the update though, I may take a crack at it after the move to github. |
<img src="https://avatars.githubusercontent.com/u/4522109?v=3" align="left" width="48" height="48"hspace="10"> Comment by MetaMemoryT Should this issue be re-opened? was it fixed, or did the DartBot close it when it moved it here? |
<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3 This isn't planned. See my comment above. |
As a workaround, a simple script named pub with the following content and added to the global path works fine on cygwin (dart in c:\tools\dart-sdk here)
|
Having some trouble getting it to work when Dart is installed into C:\Program Files\Dart.
Gives the error
|
tweak to above script to make more cygwin friendly using cygpath -m
|
<img src="https://avatars.githubusercontent.com/u/4522109?v=3" align="left" width="96" height="96"hspace="10"> Issue by MetaMemoryT
Originally opened as dart-lang/sdk#20822
pub should support being ran on a cygwin terminal more easily.
npm "Node Package Manager" supports this by adding a "npm" shell script to the windows distribution that cygwin terminals can execute:
file npm:
'''
!/bin/sh
basedir=
dirname "$0"
case
uname
inCYGWIN) basedir=
cygpath -w "$basedir"
;;esac
if [ -x "$basedir/node.exe" ]; then
"$basedir/node.exe" "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
else
node "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
fi
'''
The text was updated successfully, but these errors were encountered: