Skip to content

Commit 20dcb1a

Browse files
quasicomputational23Skidoo
authored andcommitted
outdated: accept v1/v2 aliases for freeze-file flags
1 parent 2dd3bbc commit 20dcb1a

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Cabal/doc/developing-packages.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1333,10 +1333,12 @@ The following flags are supported by the ``outdated`` command:
13331333
``--freeze-file``
13341334
Read dependency version bounds from the freeze file (``cabal.config``)
13351335
instead of the package description file (``$PACKAGENAME.cabal``).
1336+
``--v1-freeze-file`` is an alias for this flag starting in Cabal 2.4.
13361337
``--new-freeze-file``
13371338
Read dependency version bounds from the new-style freeze file
13381339
(by default, ``cabal.project.freeze``) instead of the package
1339-
description file.
1340+
description file. ``--v2-freeze-file`` is an alias for this flag
1341+
starting in Cabal 2.4.
13401342
``--project-file`` *PROJECTFILE*
13411343
:since: 2.4
13421344

cabal-install/Distribution/Client/Setup.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,12 +1166,12 @@ outdatedCommand = CommandUI {
11661166
optionVerbosity outdatedVerbosity
11671167
(\v flags -> flags { outdatedVerbosity = v })
11681168

1169-
,option [] ["freeze-file"]
1169+
,option [] ["freeze-file", "v1-freeze-file"]
11701170
"Act on the freeze file"
11711171
outdatedFreezeFile (\v flags -> flags { outdatedFreezeFile = v })
11721172
trueArg
11731173

1174-
,option [] ["new-freeze-file"]
1174+
,option [] ["new-freeze-file", "v2-freeze-file"]
11751175
"Act on the new-style freeze file (default: cabal.project.freeze)"
11761176
outdatedNewFreezeFile (\v flags -> flags { outdatedNewFreezeFile = v })
11771177
trueArg

cabal-install/changelog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
* Add 'v1-' prefixes for the commands that will be replaced in the
3232
new-build universe, in preparation for it becoming the default.
3333
(#5358)
34+
* 'outdated' accepts '--v1-freeze-file' and '--v2-freeze-file'
35+
in the same spirit.
3436
* Completed the 'new-clean' command (#5357). The functionality is
3537
equivalent to old-style clean, but for nix-style builds.
3638
* Ensure that each package selected for a build-depends dependency

0 commit comments

Comments
 (0)