Skip to content

Package linux SDK shell scripts also into windows SDK for use with msysgit #19980

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

Closed
DartBot opened this issue Jul 11, 2014 · 4 comments
Closed
Labels
area-sdk Use area-sdk for general purpose SDK issues (packaging, distribution, …). closed-stale Closed as the issue or PR is assumed stale os-windows type-enhancement A request for a change that isn't a bug

Comments

@DartBot
Copy link

DartBot commented Jul 11, 2014

This issue was originally filed by @friegger


What steps will clearly show the issue / need for enhancement?

  1. Running pub from msysgit does not work
  2. Copying the pub.sh from the linux SDK to the dart-sdk/bin folder solves this.

What is the current output?
Cannot find pub

What would you like to see instead?
Pub executing

What version of the product are you using? On what operating system?
1.5.x

Please provide any additional information below.
To work with git on windows many use msysgit. It's basically a bash environment that provides everything required to run git. While already working in this bash, it would be convenient to be able to execute all script based tools from the dart-sdk as well. Please consider to package all the sh scripts also in the windows SDK.

I have only tested the pub.sh from the linux SDK and it just works.

@anders-sandholm
Copy link
Contributor

Added Area-SDK, OpSys-Windows, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Oct 26, 2014

This comment was originally written by [email protected]


Would be a great improvement indeed.

For those who cannot wait, download

https://raw.githubusercontent.com/dart-lang/bleeding_edge/master/dart/sdk/bin/pub_sdk

rename it to "pub" and put it into

C:\Program Files\dart\dart-sdk\bin

Works for me, at least.

@DartBot
Copy link
Author

DartBot commented Oct 26, 2014

This comment was originally written by @Emasoft


Or even better: write those scripts directly in Dart. Dart should already have implemented crossplatform I/O functionality, polyfilling any difference betwen Linux, Win, Osx, ChromeOS, etc.
Dart is an excellent shell scripting language, much better bash or python. It's time we start using it as a standard script for all things.

@DartBot
Copy link
Author

DartBot commented Apr 27, 2015

This comment was originally written by @seaneagan


Also for cygwin, see issue #20822.

Currently I have to run pub.bat ..., since pub ... doesn't work, and same for any pub global activated scripts (oops, I mean pub.bat global activated), I have to run those as e.g. script.bat instead of just script. This also means that I can't write a cross-platform bash script which calls any of these things, and works locally in windows and in my CI/deploy targets/non-windows dev envs.

@DartBot DartBot added Type-Enhancement area-sdk Use area-sdk for general purpose SDK issues (packaging, distribution, …). os-windows labels Apr 27, 2015
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed triaged labels Mar 1, 2016
@lrhn lrhn closed this as not planned Won't fix, can't repro, duplicate, stale Apr 8, 2024
@lrhn lrhn added the closed-stale Closed as the issue or PR is assumed stale label Apr 8, 2024
@lrhn lrhn closed this as completed Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-sdk Use area-sdk for general purpose SDK issues (packaging, distribution, …). closed-stale Closed as the issue or PR is assumed stale os-windows type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants