forked from ocaml/opam
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ocaml#5047 from rjbou/pin-dpx
Fix auto pinning and depext handling
- Loading branch information
Showing
5 changed files
with
124 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
N0REP0 | ||
### : depext update : | ||
### OPAMYES=1 | ||
### opam option depext-run-installs=false | ||
Set to 'false' the field depext-run-installs in global configuration | ||
### <pin:bar/bar.opam> | ||
opam-version: "2.0" | ||
depends: "qux" | ||
depexts: [ "inexistant" ] | ||
### <add_pin_depends.sh> | ||
echo "pin-depends: [ \"qux.dev\" \"file://$BASEDIR/qux\" ]" >> bar/bar.opam | ||
### sh add_pin_depends.sh | ||
### <pin:qux/qux.opam> | ||
opam-version: "2.0" | ||
depexts: [ "another-inexistant" ] | ||
### opam switch create pinning --empty | ||
### opam pin ./bar | '(apt-get|brew|port)' -> 'syspkgmanager' | ||
Package bar does not exist, create as a NEW package? [Y/n] y | ||
The following additional pinnings are required by bar.~dev: | ||
- qux.dev at file://${BASEDIR}/qux | ||
Pin and install them? [Y/n] y | ||
Package qux does not exist, create as a NEW package? [Y/n] y | ||
[qux.dev] synchronised (no changes) | ||
qux is now pinned to file://${BASEDIR}/qux (version dev) | ||
bar is now pinned to file://${BASEDIR}/bar (version ~dev) | ||
|
||
The following actions will be performed: | ||
- install qux dev* | ||
- install bar ~dev* | ||
===== 2 to install ===== | ||
|
||
The following system packages will first need to be installed: | ||
another-inexistant inexistant | ||
|
||
<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><> | ||
This command should get the requirements installed: | ||
|
||
syspkgmanager install another-inexistant inexistant | ||
|
||
You can retry with '--assume-depexts' to skip this check, or run 'opam option depext=false' to permanently disable handling of system packages altogether. | ||
[NOTE] Pinning command successful, but your installed packages may be out of sync. | ||
# Return code 10 # | ||
### opam unpin bar qux | ||
Ok, qux is no longer pinned to file://${BASEDIR}/qux (version dev) | ||
Ok, bar is no longer pinned to file://${BASEDIR}/bar (version ~dev) | ||
### opam option 'depext-bypass-=["another-inexistant" "inexistant"]' | ||
No modification in switch pinning | ||
### opam install ./bar | '(apt-get|brew|port)' -> 'syspkgmanager' | ||
Package bar does not exist, create as a NEW package? [Y/n] y | ||
The following additional pinnings are required by bar.~dev: | ||
- qux.dev at file://${BASEDIR}/qux | ||
Pin and install them? [Y/n] y | ||
Package qux does not exist, create as a NEW package? [Y/n] y | ||
[qux.dev] synchronised (no changes) | ||
qux is now pinned to file://${BASEDIR}/qux (version dev) | ||
bar is now pinned to file://${BASEDIR}/bar (version ~dev) | ||
The following actions will be performed: | ||
- install qux dev* [required by bar] | ||
- install bar ~dev* | ||
===== 2 to install ===== | ||
|
||
The following system packages will first need to be installed: | ||
another-inexistant inexistant | ||
|
||
<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><> | ||
This command should get the requirements installed: | ||
|
||
syspkgmanager install another-inexistant inexistant | ||
|
||
You can retry with '--assume-depexts' to skip this check, or run 'opam option depext=false' to permanently disable handling of system packages altogether. | ||
# Return code 10 # |