File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ users)
126126 * Homogenise here document usage [ #6671 @rjbou ]
127127 * Add a test showing that ` opam upgrade ` allows downgrades when necessary [ #6690 @kit-ty-kate ]
128128 * Add a test showing the behaviour of ` opam tree ` on local packages that happen to be already pinned [ #6688 @kit-ty-kate ]
129+ * Add a test showing the behaviour of version pins when one of the dependencies isn't up-to-date [ #6691 @kit-ty-kate ]
129130
130131### Engine
131132 * Fix gcc < 14.3 bug on mingw i686 [ #6624 @kit-ty-kate ]
Original file line number Diff line number Diff line change @@ -1623,3 +1623,40 @@ Done.
16231623file1
16241624### opam-cat OPAM/flag-edit/.opam-switch/overlay/tide/opam | grep install
16251625install: [["mkdir" "%{lib}%/%{name}%"] ["cp" "file1" "%{lib}%/%{name}%/file1"]]
1626+ ### :C:h: opam pin doesn't upgrade outdated dependencies
1627+ ### opam switch create no-upgrade --empty
1628+ ### <pkg:dep.1>
1629+ opam-version: "2.0"
1630+ ### <pkg:dep.2>
1631+ opam-version: "2.0"
1632+ ### <pkg:pkg.1>
1633+ opam-version: "2.0"
1634+ depends: "dep"
1635+ ### opam install pkg dep.1
1636+ The following actions will be performed:
1637+ === install 2 packages
1638+ - install dep 1
1639+ - install pkg 1
1640+
1641+ <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
1642+ -> installed dep.1
1643+ -> installed pkg.1
1644+ Done.
1645+ ### opam pin add pkg 1
1646+ pkg is now pinned to version 1
1647+
1648+ Already up-to-date.
1649+ Nothing to do.
1650+ ### opam upgrade
1651+ The following actions will be performed:
1652+ === recompile 1 package
1653+ - recompile pkg 1 (pinned) [uses dep]
1654+ === upgrade 1 package
1655+ - upgrade dep 1 to 2
1656+
1657+ <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
1658+ -> removed pkg.1
1659+ -> removed dep.1
1660+ -> installed dep.2
1661+ -> installed pkg.1
1662+ Done.
You can’t perform that action at this time.
0 commit comments