Skip to content

assertion failed when using computed versions #3716

@avsm

Description

@avsm

I'm trying to use computed versions in opam 2.0.2 to make multi-repository packages easier, but it leads to an assertion failure in opam:

+opam install depext
Fatal error:
File "src/solver/opamSolver.ml", line 231, characters 18-24: Assertion failed
'unset TESTS; OPAMYES=1 export OPAMYES; set -uex; opam install depext' exited 99. Terminating with 99

Full log: https://travis-ci.com/avsm/mirage-clock/jobs/167225256

Example of an opam file causing this:

opam-version: "2.0"
maintainer: "anil@recoil.org"
authors: ["Anil Madhavapeddy" "Daniel C. Bünzli" "Matthew Gray"]
license: "ISC"
tags: "org:mirage"
homepage: "https://github.com/mirage/mirage-clock"
doc: "https://mirage.github.io/mirage-clock/"
bug-reports: "https://github.com/mirage/mirage-clock/issues"
synopsis: "Unix-based implementation for the MirageOS Clock interface"
description: """
The Unix implementation of the MirageOS Clock interface uses
`gettimeofday` or `clock_gettime`, depending on
which OS is in use (see [clock_stubs.c](https://github.com/mirage/mirage-clock/blob/master/unix/clock_stubs.c)).
"""
depends: [
  "ocaml" {>= "4.04.2"}
  "dune" {build}
  "mirage-clock" {>= version}
  "mirage-clock-lwt" {>= versionn}
  "lwt"
]
build: [
  ["dune" "subst"] {pinned}
  ["dune" "build" "-p" name "-j" jobs]
  ["dune" "runtest" "-p" name] {with-test}
]
dev-repo: "git+https://github.com/mirage/mirage-clock.git"

And the full tree that has the offending versions: https://github.com/mirage/mirage-clock/tree/d57102ff19e43b02791ec67070f3ee315df3b147

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions