Comments (2)
<img src="https://avatars.githubusercontent.com/u/46275?v=3" align="left" width="48" height="48"hspace="10"> Comment by munificent
I recall we had to add some special case support in the Dart code for pub to handle this, but I don't remember exactly why. I think support for leading zeroes may have initially been a bug in pub that we then had to deliberately support for backwards compatibility.
Natalie might remember the details. If not, I can dig through the commit history.
cc @nex3.
from pub.
<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3
For reasons I can get into further if you're curious, Pub supports semantic versioning 2.0.0-rc.1 (http://semver.org/spec/v2.0.0-rc.1.html), which has nothing in particular to say about leading zeros. The pub_semver package treats them as identical to versions without leading zeros, but will display them with the leading zeros. Can the server use the "display version" for linking?
from pub.
Related Issues (20)
- Create binstubs atomically. HOT 1
- Add a way to find the `package_config.json` file for a given `pubspec.yaml` file HOT 13
- Entry error, can not include space in path ? HOT 3
- `getExecutableForCommand` requires reading pubspec.yaml
- Random errors when running pub get through melos bootstrap HOT 3
- Error: No active package pub HOT 13
- Enable solve suggestions for workspaces
- Check for duplicate package names
- Review suggestions for fixing version resolution conflicts. HOT 1
- Improve handling of faulty binstubs
- Document workspaces.
- Validate that the same package is only overridden once across workspace.
- Update the `ensureUptodate` procedure to handle workspaces HOT 2
- Lower bounds in pubspecs
- Using non-default resolution temporarily HOT 3
- Rename/alias `dependency_overrides` to `override_dependencies` HOT 5
- Handle overrides in workspaces
- `pub outdated` support for showing outdated dependencies for whole workspace
- Confirm `pub publish` works in workspace. HOT 1
- "pub upgrade" sometimes hangs for around 30s after it appears to have finished HOT 2
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 pub.