You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Being able to specify how to increment the package version would be useful for ci managing pull requests.
Pragma increment-version [version-index] where the optional version index specifies the version number (major, minor, ...) to be incremented. When cabal-gild is run
the version will be incremented
the version-index will be removed from the pragma line
the new version will be printed to stdout
zero exit
If the version index is not specified and the new --no-increment-version flag is not given to the cabal-gild command, then cabal-gild should have a non-zero exit. The --no-increment-version allows the other features of cabal-gild to be run without incrementing the version or having the command fail if no version index is specified.
I don't understand how this pragma is any better or different than simply changing the version number directly.
Aside from that, I think this is beyond the scope of what I want Gild to do. This type of "bump version" command really belongs in the build tool (like cabal bump major), or it belongs in a tool specifically meant for changing precise parts of the package description (like some hypothetical cabal-edit version 1.2.3.4). A principled approach to that requires something like haskell/cabal#7544.
Being able to specify how to increment the package version would be useful for ci managing pull requests.
Pragma
increment-version [version-index]
where the optional version index specifies the version number (major, minor, ...) to be incremented. Whencabal-gild
is runIf the version index is not specified and the new
--no-increment-version
flag is not given to thecabal-gild
command, thencabal-gild
should have a non-zero exit. The--no-increment-version
allows the other features of cabal-gild to be run without incrementing the version or having the command fail if no version index is specified.For example with the cabal file
running
$ cabal-gild --io=*.cabal new-version: 1.0.0.1
the new version would be printed to stdout (shown above)
and the cabal file would be changed to
Solves the issue specifed in snoyberg/mono-traversable#238
The text was updated successfully, but these errors were encountered: