na4zagin3 / satyrographos

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

internal call `opam install --yes PACKAGES` fail in `satyrographos build` #306

Open yasuo-ozu opened 1 year ago

yasuo-ozu commented 1 year ago

It occurs when Satyristes has no dependencies, like:

(lang 0.0.3)
(doc
  (name "aaa")
  (workingDirectory "./")
  (build (
    (make-with-env-var "aaa.pdf")
  ))
  (dependencies ())
)

The cause is the following line. https://github.com/na4zagin3/satyrographos/blob/master/src/command/build.ml#L138 The code does not consider when dependencies has no item.