haskell / cabal

Official upstream development repository for Cabal and cabal-install
https://haskell.org/cabal
Other
1.59k stars 685 forks source link

Cabal version: provide (document?) a way to denote it's a development version #6002

Open domenkozar opened 5 years ago

domenkozar commented 5 years ago

Problem

Currently, there is no way to denote a certain cabal version is in development.

Motivation

Most cabal packages I've seen won't bump version until next release.

But imagine that the package in question talks to some service and reports its version, if someone checkouts git master branch, they would report the same as version as previously released version.

Solutions

a) use git revision

b) hash all sources

c) encode versioning (odd-even, suffix .999)

I don't want to go into PROS/CONS right now but plan to fill those in later on.

23Skidoo commented 5 years ago

See also #1506, #3909.

hvr commented 5 years ago

@domenkozar as a meta-solution in case this is about people reporting bugs against non-released versions: many issue trackers support issue-templates where you can mention in hard to miss big letters whether you accept bug reports against unreleased snapshots and if you do, for them to provide the Git hash