Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Cabal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
0d870746
Commit
0d870746
authored
Jul 30, 2018
by
quasicomputational
Committed by
Mikhail Glushenkov
Jul 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
outdated: document and test last-one-wins behaviour of new-freeze flags
parent
eb0a3ff0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletion
+25
-1
Cabal/doc/developing-packages.rst
Cabal/doc/developing-packages.rst
+3
-1
cabal-testsuite/PackageTests/Outdated/outdated-project-file.out
...testsuite/PackageTests/Outdated/outdated-project-file.out
+10
-0
cabal-testsuite/PackageTests/Outdated/outdated-project-file.test.hs
...suite/PackageTests/Outdated/outdated-project-file.test.hs
+12
-0
No files found.
Cabal/doc/developing-packages.rst
View file @
0d870746
...
...
@@ -1336,10 +1336,12 @@ The following flags are supported by the ``outdated`` command:
``--new-freeze-file``
Read dependency version bounds from the new-style freeze file
(``cabal.project.freeze``) instead of the package description file.
This is equivalent to ``--project-file cabal.project``.
``--project-file`` *PROJECTFILE*
Read dependendency version bounds from the new-style freeze file
related to the named project file (i.e., ``$PROJECTFILE.freeze``)
instead of the package desctription file.
instead of the package desctription file. If multiple ``--project-file``
flags are provided, only the final one is considered.
``--simple-output``
Print only the names of outdated dependencies, one per line.
``--exit-code``
...
...
cabal-testsuite/PackageTests/Outdated/outdated-project-file.out
View file @
0d870746
...
...
@@ -3,3 +3,13 @@ Downloading the latest package list from test-local-repo
# cabal outdated
Outdated dependencies:
base ==3.0.3.2 (latest: 4.0.0.0)
# cabal outdated
Outdated dependencies:
base ==3.0.3.2 (latest: 4.0.0.0)
# cabal outdated
Outdated dependencies:
base ==3.0.3.2 (latest: 4.0.0.0)
# cabal outdated
Outdated dependencies:
base ==3.0.3.2 (latest: 4.0.0.0)
template-haskell ==2.3.0.0 (latest: 2.4.0.0)
cabal-testsuite/PackageTests/Outdated/outdated-project-file.test.hs
View file @
0d870746
...
...
@@ -4,3 +4,15 @@ main = cabalTest $ withRepo "repo" $ do
assertOutputContains
"base"
res
assertOutputDoesNotContain
"template-haskell"
res
-- Test last-one-wins behaviour.
res
<-
cabal'
"outdated"
[
"--project-file"
,
"cabal.project"
,
"--project-file"
,
"variant.project"
]
assertOutputContains
"base"
res
assertOutputDoesNotContain
"template-haskell"
res
res
<-
cabal'
"outdated"
[
"--new-freeze-file"
,
"--project-file"
,
"variant.project"
]
assertOutputContains
"base"
res
assertOutputDoesNotContain
"template-haskell"
res
res
<-
cabal'
"outdated"
[
"--project-file"
,
"variant.project"
,
"--new-freeze-file"
]
assertOutputContains
"base"
res
assertOutputContains
"template-haskell"
res
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment