Feedback on Átila's Vision for D
Andre Pany
andre at s-e-a-p.de
Wed Oct 30 12:11:12 UTC 2019
On Monday, 21 October 2019 at 09:45:08 UTC, Jacob Carlborg wrote:
> On Friday, 18 October 2019 at 16:07:43 UTC, Atila Neves wrote:
>
>> I agree and support all of this. I know that dmd as a library
>> right now can only be used from dub with `~master`. What is
>> the technical reason stopping a version number again?
>
> Dub needs a Git tag and it needs to follow semantic versioning,
> otherwise Dub will ignore it. The tags for the compiler do not
> follow semantic versioning. There's no technical reason. It's
> just that the compiler releases doesn't follow the semantic
> versioning model. Any release can break anything, basically.
>
> I suggested a workaround until the compiler properly follows
> the semantic versioning model. Which is to add two tags for
> each new release. One that we already add today. The other one
> would be explicitly intended only for the library and would be
> `0.x.0` and we increment `x` by one for each release. Since the
> `0.x.y` versions have special meaning, it's for the initial
> development. Semantic versioning says:
>
> "Anything MAY change at any time. The public API SHOULD NOT be
> considered stable."
>
> Nothing happened with that with that suggestion.
>
> --
> /Jacob Carlborg
Officially, yes, dub relies on git tags. Unofficially you can set
the version attribute in dub.json / dub.sdl.
This works quite well in my scenario, where the build system
needs to know the version of the package and in a later step will
create itself the git tag.
Kind regards
Andre
More information about the Digitalmars-d
mailing list