Comments (1)
I dug into this and determined two issues:
-
The symlink itself needs to be named
.bat
or Windows won't know it's an executable. This is easy enough to solve. -
When a script is invoked through a symlink on Windows, its understanding of "the script's location"—which we access through the metavariable
%~dp0
—points to the symlink rather than the original.bat
file. We could work around this by repeatedly parsing the output ofdir /a %0
to follow symlinks and eventually get to the concrete file, but that would require a lot of fairly complex batch scripting. I don't have the expertise or desire to do that and there's not a strong expectation that executables work through symlinks on Windows anyway, so I'm going to mark this as "wontfix" for now. If someone else comes along and wants to fix this in the future, I'd be more than happy to accept a patch.
from dart_cli_pkg.
Related Issues (20)
- license function searches for Dart SDK license in wrong place when Homebrew'd HOT 2
- dart2native fails on windows when past a symlink. HOT 1
- dart2native fails HOT 1
- Relative symbolic links to generated shell scripts fail to execute on linux HOT 1
- Discrepancy between executable name and entrypoint basename
- Fix Chocolatey deploy HOT 1
- Convert futures to Promise in NPM package HOT 1
- unused dart:async
- The generated github release note look weird for some kind of links HOT 1
- Add support for standalone executables
- GitHub changelog removes line breaks before list items HOT 3
- Suggestion: Chocolatey License be renamed to License.txt
- Debian package support
- Private github package deployment support
- Upload executable checksums
- Error: Your SDK doesn't have dart2aot or dart2native HOT 2
- Merge package.json "exports" with template instead of overwritting HOT 1
- Generate ESM imports for browser targets HOT 13
- Logical OR assignment operator in JS fails in Node < 15.
- Consideration for Winget HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dart_cli_pkg.