diff --git a/.gitlab/ci/templates.yml b/.gitlab/ci/templates.yml index 1e14b3fdbe53c02568f94e512c0498d8b53252ac..2ce52814ea5d7381dfe4790c9ebeb2e80db83f97 100644 --- a/.gitlab/ci/templates.yml +++ b/.gitlab/ci/templates.yml @@ -2,7 +2,7 @@ variables: # /!\ CI_REGISTRY is overriden to use a private Docker registry mirror in AWS ECR # in GitLab namespaces `nomadic-labs` and `tezos` ## This value MUST be the same as `opam_repository_tag` in `scripts/version.sh` - build_deps_image_version: df8d0aa9d9a08a49cf97f27e58662c10fb3f70f2 + build_deps_image_version: 5f32b741ce4e3f5adb661002d2d93eeb70819d09 build_deps_image_name: "${CI_REGISTRY}/tezos/opam-repository" GIT_STRATEGY: fetch GIT_DEPTH: "1" diff --git a/scripts/version.sh b/scripts/version.sh index 57350db7585a6b08f95e583b018f26d9484813cf..f914c5df8850d1d1df5804891b22576a45f72e70 100755 --- a/scripts/version.sh +++ b/scripts/version.sh @@ -20,12 +20,12 @@ export recommended_node_version=14.12.0 ## full_opam_repository is a commit hash of the public OPAM repository, i.e. ## https://github.com/ocaml/opam-repository -export full_opam_repository_tag=5b15e5ee8adbd7522032018e1694f547555ba2b6 +export full_opam_repository_tag=f0b73342dac7ff49e1746ba37b975462ad3ae91b ## opam_repository is an additional, tezos-specific opam repository. ## This value MUST be the same as `build_deps_image_version` in `.gitlab/ci/templates.ym export opam_repository_url=https://gitlab.com/tezos/opam-repository -export opam_repository_tag=df8d0aa9d9a08a49cf97f27e58662c10fb3f70f2 +export opam_repository_tag=5f32b741ce4e3f5adb661002d2d93eeb70819d09 export opam_repository_git=$opam_repository_url.git export opam_repository=$opam_repository_git\#$opam_repository_tag diff --git a/src/lib_context/disk/context.ml b/src/lib_context/disk/context.ml index ce1e7c196eb74e2905a1a5e6491b213b37a0bc73..223fc413b26752b5205344defa8a69ca89dbb22a 100644 --- a/src/lib_context/disk/context.ml +++ b/src/lib_context/disk/context.ml @@ -783,7 +783,9 @@ module Make (Encoding : module type of Tezos_context_encoding.Context) = struct in {path = root; repo; patch_context; readonly} - let close index = Store.Repo.close index.repo + let close index = + let _interrupted_gc = Store.Gc.cancel index.repo in + Store.Repo.close index.repo let get_branch chain_id = Format.asprintf "%a" Chain_id.pp chain_id @@ -942,7 +944,8 @@ module Make (Encoding : module type of Tezos_context_encoding.Context) = struct (* All commit objects in the context are indexed, so it's safe to build a hash-only key referencing them. *) List.map - (fun h -> Hash.of_context_hash h |> Irmin_pack.Pack_key.v_indexed) + (fun h -> + Hash.of_context_hash h |> Irmin_pack_unix.Pack_key.v_indexed) parents in let+ c = Store.Commit.v ctxt.index.repo ~info ~parents ctxt.tree in