Revision a5fbbb3fb52309c968f1feffb2d371245081a451 authored by Marge Bot on 16 January 2024, 13:14:25 UTC, committed by Marge Bot on 16 January 2024, 13:14:25 UTC
Co-authored-by: Killian Delarue <killian.delarue@nomadic-labs.com>

Approved-by: Arvid Jakobsson <arvid.jakobsson@nomadic-labs.com>
Approved-by: Boubacar Sall <boubacar@nomadic-labs.com>
Approved-by: pietro <pietro.abate@nomadic-labs.com>

See merge request https://gitlab.com/tezos/tezos/-/merge_requests/11518
2 parent s f00145a + 815e15a
Raw File
install_build_deps.raw.sh
#!/bin/sh

set -e

script_dir="$(cd "$(dirname "$0")" && echo "$(pwd -P)/")"

#shellcheck source=scripts/version.sh
. "$script_dir"/version.sh

export OPAMYES="${OPAMYES:=true}"

# install_build_deps.sh calls install_build_deps.rust.sh which checks whether
# Rust is installed with the right version and explains how to install it if
# needed, so here we only make opam acknowledge that we have a rust compiler
# we installed by our own.
# If we use opam depext, it will probably not install the right version.
OPAMASSUMEDEPEXTS=true opam install conf-rust conf-rust-2021

# Opam < 2.1 uses opam-depext as a plugin, later versions provide the option
# `--depext-only`:
case $(opam --version) in
2.0.*)
  opam pin add -n -y octez-deps opam/virtual/ && opam depext octez-deps
  opam pin remove octez-deps
  ;;
*) opam install --depext-only opam/virtual/octez-deps.opam ;;
esac

opam install opam/virtual/octez-deps.opam --deps-only --criteria="-notuptodate,-changed,-removed"

if [ "$1" = "--tps" ]; then
  opam install caqti-driver-postgresql
fi
back to top