na4zagin3 / satyrographos

Package manager for SATySFi
GNU Lesser General Public License v3.0
44 stars 13 forks source link

`(file ...)` does not work in `opam install` subcommand #93

Closed na4zagin3 closed 4 years ago

na4zagin3 commented 4 years ago

Reproduction example:

File

Satyristes

(version "0.0.2")
(library
  (name "test")
  (version "0.1")
  (sources
    ((file "doc/README-test.md" "README.md")))
  (opam "satysfi-test.opam"))

README.md

Test

Result

Exception

(Failure
  "Filename.concat called with an empty string as its first argument (second argument: doc/grcnum.md)")

Stack trace

Raised at file "pervasives.ml", line 32, characters 17-33
Called from file "src/core_filename.ml", line 25, characters 4-138
Called from file "src/buildScript.ml", line 202, characters 57-84
Called from file "src/list.ml", line 322, characters 13-17
Called from file "src/buildScript.ml", line 203, characters 20-47
Called from file "src/commandOpam.ml", line 14, characters 10-55
Called from file "src/commandOpam.ml", line 82, characters 13-71
Called from file "test/testcases/testLib.ml", line 46, characters 36-76
Called from file "test/testcases/testLib.ml", line 15, characters 10-15
Called from file "test/testcases/testLib.ml", line 46, characters 8-103