na4zagin3 / satyrographos

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

Don't read libraries that are not declared to be dependent #287

Closed na4zagin3 closed 2 years ago

na4zagin3 commented 2 years ago

Satyrographos may fail to build a library when installed libraries are removed, even if they are not dependent on by the current target library. Satyrographos should ignore the error or keep from reading unneeded libraries at all.

#=== ERROR while compiling satysfi-parallel-doc.0.1.0 =========================#
# context     2.1.2 | linux/x86_64 | ocaml-base-compiler.4.12.0 | git+file:///home/runner/work/satyrographos-repo/satyrographos-repo
# path        ~/work/satyrographos-repo/satyrographos-repo/_opam/.opam-switch/build/satysfi-parallel-doc.0.1.0
# command     ~/.opam/opam-init/hooks/sandbox.sh build satyrographos opam build --name parallel-doc --prefix /home/runner/work/satyrographos-repo/satyrographos-repo/_opam --script /home/runner/work/satyrographos-repo/satyrographos-repo/_opam/.opam-switch/build/satysfi-parallel-doc.0.1.0/Satyristes
# exit-code   1
# env-file    ~/.opam/log/satysfi-parallel-doc-40284-0cfab0.env
# output-file ~/.opam/log/satysfi-parallel-doc-40284-0cfab0.out
### output ###
# Reading runtime dist: /home/runner/work/satyrographos-repo/satyrographos-repo/_opam/share/satysfi/dist
# Read user libraries: ()
# Reading opam libraries: (arrows arrows-doc assert-eq assert-eq-doc azmath azmath-doc base bibyfi
#  bibyfi-doc cancel class-exdesign class-exdesign-doc class-jlreq
#  class-mdbook-satysfi class-mdbook-satysfi-doc class-slydifi
#  class-slydifi-doc class-stjarticle class-stjarticle-doc class-yabaitech
#  class-yabaitech-doc code-printer code-printer-doc csv csv-doc
#  debug-show-value debug-show-value-doc derive dist easytable easytable-doc
#  enumitem enumitem-doc figbox figbox-doc fonts-asana-math
#  fonts-asana-math-doc fonts-bodoni-star fonts-bodoni-star-doc
#  fonts-charis-sil fonts-charis-sil-doc fonts-computer-modern-unicode
#  fonts-computer-modern-unicode-doc fonts-cormorant fonts-cormorant-doc
#  fonts-dejavu fonts-dejavu-doc fonts-han-sans-jp fonts-han-sans-jp-doc
#  fonts-han-serif-jp fonts-han-serif-jp-doc fonts-inconsolata
#  fonts-inconsolata-doc fonts-junicode fonts-junicode-doc fonts-noto-emoji
#  fonts-noto-emoji-doc fonts-noto-sans fonts-noto-sans-cjk-jp
#  fonts-noto-sans-cjk-jp-doc fonts-noto-sans-cjk-sc fonts-noto-sans-cjk-sc-doc
#  fonts-noto-sans-doc fonts-noto-serif fonts-noto-serif-cjk-jp
#  fonts-noto-serif-cjk-jp-doc fonts-noto-serif-doc fonts-theano
#  fonts-theano-doc fss fss-doc fss-fontset-bodoni-star grcnum grcnum-doc image
#  image-doc json json-doc karnaugh latexcmds lipsum lipsum-doc make-html
#  make-html-doc make-latex make-latex-doc make-markdown matrix matrix-doc
#  matrixcd md2latex md2latex-doc musikui musikui-doc ncsq ncsq-doc
#  num-conversion num-conversion-doc pagenumber pagenumber-doc pagestyle
#  pagestyle-doc parallel parallel-doc quotation quotation-doc railway
#  railway-doc ruby ruby-doc simple-itemize simple-itemize-doc siunitx
#  siunitx-doc test texlogo texlogo-doc tombo tombo-doc uline uline-doc zrbase)
# Uncaught exception:
#   
#   (Failure
#    "/home/runner/work/satyrographos-repo/satyrographos-repo/_opam/share/satysfi/karnaugh is not a library directory")
# 
# Raised at Shexp_process__Process.With_debug.exec in file "process-lib/src/process.ml", line 412, characters 11-22
# Called from Shexp_process__Process.Traced.eval_exn in file "process-lib/src/process.ml", line 516, characters 14-54
# Called from Satyrographos_command__Build.build.build in file "src/command/build.ml", line 78, characters 6-148
# Called from Dune__exe__CommandOpam.opam_with_build_module_command.(fun) in file "bin/commandOpam.ml", line 29, characters 10-128
# Called from Core_kernel__Command.For_unix.run.(fun) in file "src/command.ml", line 2453, characters 8-238
# Called from Base__Exn.handle_uncaught_aux in file "src/exn.ml", line 111, characters 6-10