Idris2/tests/idris2/pkg015/test.ipkg
Zoe Stafford 02dfd6ff6c
Trans deps v3 (#2584)
* make `depends` collect all transitive dependencies

This happens by installing the (modified) ipkg file along with ttc files

* [ fix ] parsing a package shouldn't always set sourceDir

* linter *sigh*

* Fix test, add changelog

`asDepends` has been changed to `setSrc` as that is for me more intuitive

in idris2/pkg006 the version field was removed from the ipkgs of bar-baz and quux
as idris now expects the version to match the folder

idris2/pkg010 explicitly disables incremental compilation, to prevent extra log info

* (hopefully) fix idris2/pkg13 test on windows

* Actually install the version
This should make things start working

* [ fix ] use backtracking to resolve transitive dependencies

* [ fix ] use backtracking to resolve dependencies

* [ fix ] test pkg006

* Fix missing import

Co-authored-by: stefan-hoeck <hock@zhaw.ch>
2022-09-09 07:08:39 +01:00

22 lines
672 B
Plaintext

-- dependencies:
--
-- test
-- |_______
-- | |
-- foo bar
-- | |_____
-- | | |
-- baz baz (quux for bar >= 0.3)
--
-- We can't use the latest foo, because we have a <= 0.2.0 restriction.
-- We also can't use foo-0.1.0, because it transitively depends on baz < 0.1.0,
-- which is not installed. So foo-0.2.0 it is.
--
-- foo-0.2.0 requires baz >= 0.2.0, but baz-0.3.0 requires quux, which is
-- not installed. So baz-0.2.0 it is. So, we can't use bar-0.1.1,
-- which requires baz < 0.2.0. Hence, bar-0.1.0 it is, but this
-- requires prz, which is not installed. And so this fails.
package test
depends = foo <= 0.2.0
, bar >= 0.1.0