Opam: pin external dev packages

This is temporary, we should either: release new version and stop
using development version; or import sources in the tezos-repo (and
compile them with jbuilder, especially sodium (or part of it) if it is
not maintened anymore.
This commit is contained in:
Grégoire Henry 2017-12-06 19:51:54 +01:00 committed by Grégoire
parent 38ca0b8ad0
commit be04cb027b
3 changed files with 28 additions and 0 deletions

View File

@ -16,9 +16,15 @@ fi
set -e
set -x
### Temporary HACK
## Should be in sync with `opam-pin.sh` and `opam-unpin.sh`
opam pin --yes add --no-action --dev-repo sodium
opam pin --yes add --no-action --dev-repo ocp-ocamlres
opam pin --yes add --no-action --dev-repo ocplib-json-typed
### End of temporary HACK
## Force opam to take account of the new `tezos-deps.opam`
opam pin --yes remove tezos-deps
opam pin --yes add --no-action tezos-deps $src_dir

View File

@ -19,3 +19,14 @@ for opam in $opams; do
done
packages=$(opam list --short --all --sort $packages)
### Temporary HACK
## Should be in sync with `install-build-deps.sh` and `opam-unpin.sh`
opam pin add --no-action --dev-repo sodium
opam pin add --no-action --dev-repo ocp-ocamlres
opam pin add --no-action --dev-repo ocplib-json-typed
opam remove tezos-deps || true
### End of temporary HACK

View File

@ -9,3 +9,14 @@ src_dir="$(dirname "$script_dir")"
opam pin remove $packages
### Temporary HACK
## Should be in sync with `install-build-deps.sh` and `opam-pin.sh`
opam pin remove --no-action sodium
opam pin remove --no-action ocp-ocamlres
opam pin remove --no-action ocplib-json-typed
## Unpin package we used to pin...
opam pin remove --no-action ocplib-resto
### End of temporary HACK