metanorma / packed-mn

Single binary for Metanorma
https://www.metanorma.org
4 stars 1 forks source link

Dynamically trigger build/release of packed-mn macOS and Linux from metanorma-cli #20

Closed ronaldtse closed 4 years ago

ronaldtse commented 4 years ago

This issue is to trigger an automatic build and release of packed-mn binaries from a release of metanorma-cli, just like metanorma-docker.

ronaldtse commented 4 years ago

@w00lf could you please help @CAMOBAP795 on this task? Thanks!

CAMOBAP commented 4 years ago

There are a couple issues was discovered during release so I working on them

cc @w00lf @ronaldtse

CAMOBAP commented 4 years ago
2020-04-08T13:53:30.4996620Z stdin:13: Error: File to import not found or unreadable: base_style/all. (SassC::SyntaxError)
2020-04-08T13:53:30.4996810Z         on line 13:1 of stdin
2020-04-08T13:53:30.4997512Z >> @import 'base_style/all';
2020-04-08T13:53:30.4997590Z 
2020-04-08T13:53:30.4997679Z    ^
2020-04-08T13:53:30.4998185Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/bundler/gems/sassc-ruby-6e07d9634af0/lib/sassc/engine.rb:49:in `render'
2020-04-08T13:53:30.4998693Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/isodoc-1.0.23/lib/isodoc/convert.rb:138:in `block in generate_css'
2020-04-08T13:53:30.4999075Z    from /__enclose_io_memfs__/lib/ruby/2.4.0/tempfile.rb:295:in `open'
2020-04-08T13:53:30.4999571Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/isodoc-1.0.23/lib/isodoc/convert.rb:136:in `generate_css'
2020-04-08T13:53:30.5000299Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/isodoc-1.0.23/lib/isodoc/convert.rb:80:in `populate_css'
2020-04-08T13:53:30.5000767Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/isodoc-1.0.23/lib/isodoc/convert.rb:149:in `block (2 levels) in convert1'
2020-04-08T13:53:30.5001221Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/builder.rb:394:in `insert'
2020-04-08T13:53:30.5001682Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/builder.rb:377:in `method_missing'
2020-04-08T13:53:30.5002131Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/isodoc-1.0.23/lib/isodoc/convert.rb:146:in `block in convert1'
2020-04-08T13:53:30.5002594Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/builder.rb:295:in `initialize'
2020-04-08T13:53:30.5003037Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/builder.rb:254:in `new'
2020-04-08T13:53:30.5003477Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/builder.rb:254:in `with'
2020-04-08T13:53:30.5003916Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/isodoc-1.0.23/lib/isodoc/function/utils.rb:29:in `noko'
2020-04-08T13:53:30.5004354Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/isodoc-1.0.23/lib/isodoc/convert.rb:145:in `convert1'
2020-04-08T13:53:30.5004786Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/isodoc-1.0.23/lib/isodoc/convert.rb:175:in `convert'
2020-04-08T13:53:30.5005224Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/isodoc-1.0.23/lib/isodoc/html_convert.rb:18:in `convert'
2020-04-08T13:53:30.5005860Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/metanorma-iso-1.3.21/lib/metanorma/iso/processor.rb:32:in `output'
2020-04-08T13:53:30.5006412Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/metanorma-1.0.1/lib/metanorma/compile.rb:208:in `block in process_extensions'
2020-04-08T13:53:30.5006853Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/metanorma-1.0.1/lib/metanorma/compile.rb:199:in `each'
2020-04-08T13:53:30.5007315Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/metanorma-1.0.1/lib/metanorma/compile.rb:199:in `process_extensions'
2020-04-08T13:53:30.5007754Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/metanorma-1.0.1/lib/metanorma/compile.rb:20:in `compile'
2020-04-08T13:53:30.5008220Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/metanorma-cli-1.2.11/lib/metanorma/cli/compiler.rb:41:in `compile_file'
2020-04-08T13:53:30.5008664Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/metanorma-cli-1.2.11/lib/metanorma/cli/compiler.rb:29:in `compile'
2020-04-08T13:53:30.5011086Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/metanorma-cli-1.2.11/lib/metanorma/cli/compiler.rb:33:in `compile'
2020-04-08T13:53:30.5011898Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/metanorma-cli-1.2.11/lib/metanorma/cli/command.rb:35:in `compile'
2020-04-08T13:53:30.5012333Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
2020-04-08T13:53:30.5012797Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
2020-04-08T13:53:30.5013352Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
2020-04-08T13:53:30.5013786Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
2020-04-08T13:53:30.5014267Z    from /__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/metanorma-cli-1.2.11/lib/metanorma/cli.rb:60:in `start'
2020-04-08T13:53:30.5014618Z    from /__enclose_io_memfs__/local/metanorma:82:in `<main>'
2020-04-08T13:53:30.5538615Z ##[error]Process completed with exit code 1.
2020-04-08T13:53:30.5683993Z Cleaning up orphan processes

Investigation in progress

ronaldtse commented 4 years ago

@CAMOBAP795 I'm not familiar with the compilation of this but @w00lf would be able to explain. He has made a fork of sassc (https://github.com/metanorma/sassc-ruby/) in order to make things work, maybe this is related?

CAMOBAP commented 4 years ago

@w00lf if you have some insights on the problem above please let me know

Here is `Gemfile.lock` diff

``` diff --git a/Gemfile.lock b/Gemfile.lock index 7804235..1ff3516 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -19,20 +19,25 @@ GEM specs: addressable (2.7.0) public_suffix (>= 2.0.2, < 5.0) - asciidoctor (1.5.8) + asciidoctor (2.0.10) asciimath (1.0.9) ast (2.4.0) - byebug (11.0.1) + bibtex-ruby (5.1.3) + latex-decode (~> 0.0) + byebug (11.1.1) camertron-eprun (1.1.1) cldr-plurals-runtime-rb (1.0.1) cnccs (0.1.5) - concurrent-ruby (1.1.5) - faraday (0.17.0) + concurrent-ruby (1.1.6) + domain_name (0.5.20190701) + unf (>= 0.0.5, < 1.0.0) + faraday (1.0.1) multipart-post (>= 1.2, < 3) - ffi (1.11.2) - gb-agencies (0.0.5) - git (1.5.0) - html2doc (0.9.0) + ffi (1.12.2) + gb-agencies (0.0.6) + git (1.6.0) + rchardet (~> 1.8) + html2doc (1.0.0) asciimath (~> 1.0.9) htmlentities (~> 4.3.4) image_size @@ -41,16 +46,19 @@ GEM thread_safe uuidtools htmlentities (4.3.4) + http-cookie (1.0.3) + domain_name (~> 0.5) iev (0.2.3) nokogiri (>= 1.10.4) image_size (2.0.2) - iso-639 (0.2.8) - isodoc (1.0.6) + iso-639 (0.3.5) + iso639 (1.3.2) + isodoc (1.0.23) asciimath - html2doc (~> 0.9.0) + html2doc (~> 1.0.0) htmlentities (~> 4.3.4) liquid - metanorma (~> 0.3.0) + metanorma (~> 1.0.0) nokogiri (>= 1.10.4) rake (~> 12.0) roman-numerals @@ -59,37 +67,40 @@ GEM uuidtools isoics (0.1.8) jaro_winkler (1.5.4) + latex-decode (0.3.1) liquid (4.0.3) - metanorma (0.3.16) + mathml2asciimath (0.0.9) + htmlentities (~> 4.3.4) + nokogiri (>= 1.10.4) + metanorma (1.0.1) asciidoctor htmlentities - metanorma-acme (1.3.5) - asciidoctor (~> 1.5.7) + nokogiri + metanorma-acme (1.4.4) htmlentities (~> 4.3.4) isodoc (~> 1.0.0) metanorma-standoc (~> 1.3.0) ruby-jing - metanorma-cli (1.2.7.1) + metanorma-cli (1.2.11) git (~> 1.5) isodoc (~> 1.0.0) - metanorma (~> 0.3.9) - metanorma-acme (~> 1.3.0) - metanorma-csand (~> 1.3.0) + metanorma (~> 1.0.0) + metanorma-csa (~> 1.4.0) metanorma-csd (~> 1.3.0) metanorma-gb (~> 1.3.0) - metanorma-iec (~> 0.0.5) - metanorma-ietf (~> 1.0.1) + metanorma-generic (~> 1.4.0) + metanorma-iec (~> 1.0.0) + metanorma-ietf (~> 2.0.0) metanorma-iso (~> 1.3.0) - metanorma-itu (~> 0.2.0) + metanorma-itu (~> 1.0.0) metanorma-m3d (~> 1.3.0) - metanorma-nist (~> 0.2.0) - metanorma-ogc (~> 0.2.0) - metanorma-standoc (~> 1.3.0) - metanorma-unece (~> 0.2.0) + metanorma-nist (~> 1.0.0) + metanorma-ogc (~> 1.0.0) + metanorma-standoc (~> 1.3.0, >= 1.3.18) + metanorma-un (~> 0.3.1) + relaton-cli (>= 0.8.2) thor (~> 0.20.3) - metanorma-csand (1.3.5) - asciidoctor (~> 1.5.7) - asciimath + metanorma-csa (1.4.8) htmlentities (~> 4.3.4) image_size isodoc (~> 1.0.0) @@ -98,36 +109,47 @@ GEM ruby-jing thread_safe uuidtools - metanorma-csd (1.3.5) + metanorma-csand (1.3.9) + htmlentities (~> 4.3.4) + image_size isodoc (~> 1.0.0) metanorma-standoc (~> 1.3.0) - metanorma-gb (1.3.6) + mime-types + ruby-jing + thread_safe + uuidtools + metanorma-csd (1.3.17) + isodoc (~> 1.0.0) + metanorma-standoc (~> 1.3.0) + metanorma-gb (1.3.20) gb-agencies (~> 0.0.4) htmlentities (~> 4.3.4) isodoc (~> 1.0.0) metanorma-iso (~> 1.3.0) twitter_cldr (~> 4.4.4) - metanorma-iec (0.0.9) - asciidoctor (~> 1.5.7) + metanorma-generic (1.4.6) + htmlentities (~> 4.3.4) + isodoc (~> 1.0.0) + metanorma-standoc (~> 1.3.0) + ruby-jing + metanorma-iec (1.0.3) isodoc (~> 1.0.0) metanorma-iso (~> 1.3.0) ruby-jing - metanorma-ietf (1.0.6) + metanorma-ietf (2.0.7) isodoc (~> 1.0.0) + mathml2asciimath metanorma-standoc (~> 1.3.0) - metanorma-iso (1.3.6) - asciidoctor (~> 1.5.7) + metanorma-iso (1.3.21) isodoc (~> 1.0.0) metanorma-standoc (~> 1.3.0) ruby-jing - metanorma-itu (0.2.8) - asciidoctor (~> 1.5.7) + metanorma-itu (1.0.12) htmlentities (~> 4.3.4) isodoc (~> 1.0.0) metanorma-standoc (~> 1.3.0) ruby-jing - metanorma-m3d (1.3.5) - asciidoctor (~> 1.5.7) + metanorma-m3d (1.3.16) asciimath htmlentities (~> 4.3.4) image_size @@ -137,46 +159,50 @@ GEM ruby-jing thread_safe uuidtools - metanorma-mpfd (0.3.5) - asciidoctor (~> 1.5.7) + metanorma-mpfd (0.3.16) htmlentities (~> 4.3.4) isodoc (~> 1.0.0) metanorma-standoc (~> 1.3.0) twitter_cldr - metanorma-nist (0.2.3) - asciidoctor (~> 1.5.7) + metanorma-nist (1.0.4) htmlentities (~> 4.3.4) isodoc (~> 1.0.0) metanorma-standoc (~> 1.3.0) ruby-jing twitter_cldr tzinfo-data - metanorma-ogc (0.2.6) - asciidoctor (~> 1.5.7) + metanorma-ogc (1.0.4) htmlentities (~> 4.3.4) iso-639 - isodoc (~> 1.0.0) - metanorma-standoc (~> 1.3.0) + isodoc (~> 1.0.20) + metanorma-standoc (~> 1.3.20) ruby-jing - metanorma-rsd (1.3.5) - asciidoctor (~> 1.5.7) + metanorma-rsd (1.4.4) htmlentities (~> 4.3.4) isodoc (~> 1.0.0) + metanorma-generic (~> 1.4.0) metanorma-standoc (~> 1.3.0) - metanorma-standoc (1.3.6) - asciidoctor (~> 1.5.7) + metanorma-standoc (1.3.23) + asciidoctor (~> 2.0.0) concurrent-ruby - html2doc (~> 0.9.0) iev (~> 0.2.1) - isodoc (~> 1.0.0) + isodoc (~> 1.0.20) + mathml2asciimath mimemagic - relaton (~> 0.5.0) + relaton (~> 0.11.0) relaton-iev (~> 0.1.0) ruby-jing sterile (~> 1.0.14) unicode2latex (~> 0.0.1) - metanorma-unece (0.2.7) - asciidoctor (~> 1.5.7) + metanorma-un (0.3.5) + htmlentities (~> 4.3.4) + iso-639 + isodoc (~> 1.0.0) + metanorma-standoc (~> 1.3.0) + roman-numerals + ruby-jing + twitter_cldr + metanorma-unece (0.2.14) htmlentities (~> 4.3.4) iso-639 isodoc (~> 1.0.0) @@ -184,69 +210,92 @@ GEM roman-numerals ruby-jing twitter_cldr - mime-types (3.3) + mime-types (3.3.1) mime-types-data (~> 3.2015) mime-types-data (3.2019.1009) - mimemagic (0.3.3) + mimemagic (0.3.4) mini_portile2 (2.4.0) multipart-post (2.1.1) - nokogiri (1.10.5) + nokogiri (1.10.9) mini_portile2 (~> 2.4.0) optout (0.0.2) - parallel (1.18.0) - parser (2.6.5.0) + parallel (1.19.1) + parser (2.7.1.0) ast (~> 2.4.0) - public_suffix (4.0.1) + public_suffix (4.0.4) rainbow (3.0.0) rake (12.3.3) - relaton (0.5.9) - relaton-gb (~> 0.6.0) - relaton-iec (~> 0.4.0) - relaton-ietf (~> 0.6.0) - relaton-iso (~> 0.6.0) - relaton-itu (~> 0.3.0) - relaton-nist (~> 0.3.0) - relaton-ogc (~> 0.1.0) - relaton-bib (0.3.12) + rchardet (1.8.0) + relaton (0.11.1) + relaton-calconnect (~> 0.7.0) + relaton-gb (~> 0.12.0) + relaton-iec (~> 0.10.0) + relaton-ietf (~> 0.12.0) + relaton-iso (~> 0.12.0) + relaton-itu (~> 0.9.0) + relaton-nist (~> 0.9.0) + relaton-ogc (~> 0.7.0) + relaton-omg (~> 0.3.0) + relaton-un (~> 0.2.0) + relaton-w3c (~> 0.1.0) + relaton-bib (0.9.2) addressable + bibtex-ruby + iso639 nokogiri - relaton-gb (0.6.7) + relaton-calconnect (0.7.0) + faraday + relaton-iso-bib (~> 0.9.0) + relaton-cli (0.9.0) + liquid + relaton (~> 0.11.0) + thor + relaton-gb (0.12.0) cnccs (~> 0.1.1) gb-agencies (~> 0.0.1) - relaton-iso-bib (~> 0.3.0) - relaton-iec (0.4.10) + relaton-iso-bib (~> 0.9.0) + relaton-iec (0.10.0) addressable - relaton-iso-bib (~> 0.3.0) - relaton-ietf (0.6.8) - relaton-bib (~> 0.3.0) - relaton-iev (0.1.1) - relaton (~> 0.5.0) - relaton-iso (0.6.9) - relaton-iec (~> 0.4.0) - relaton-iso-bib (~> 0.3.0) - relaton-iso-bib (0.3.12) + relaton-iso-bib (~> 0.9.0) + relaton-ietf (0.12.1) + relaton-bib (~> 0.9.0) + relaton-iev (0.1.4) + relaton (~> 0.7) + relaton-iso (0.12.1) + relaton-iec (~> 0.10.0) + relaton-iso-bib (~> 0.9.0) + relaton-iso-bib (0.9.1) isoics (~> 0.1.6) - relaton-bib (~> 0.3.0) - ruby_deep_clone (~> 0.8.0) - relaton-itu (0.3.7) - relaton-iso-bib (~> 0.3.0) - relaton-nist (0.3.8) - relaton-bib (~> 0.3.0) + relaton-bib (~> 0.9.0) + relaton-itu (0.9.0) + relaton-iso-bib (~> 0.9.0) + relaton-nist (0.9.0) + relaton-bib (~> 0.9.0) rubyzip - relaton-ogc (0.1.4) + relaton-ogc (0.7.1) + faraday (~> 1.0.0) + relaton-iso-bib (>= 0.9.1) + relaton-omg (0.3.0) + relaton-bib (~> 0.9.0) + relaton-un (0.2.0) faraday - relaton-iso-bib (~> 0.3.0) + http-cookie + relaton-bib (~> 0.9.0) + unf_ext (>= 0.0.7.7) + relaton-w3c (0.1.0) + relaton-bib (>= 0.9.2) + rexml (3.2.4) roman-numerals (0.3.0) - rubocop (0.76.0) + rubocop (0.81.0) jaro_winkler (~> 1.5.1) parallel (~> 1.10) - parser (>= 2.6) + parser (>= 2.7.0.1) rainbow (>= 2.2.2, < 4.0) + rexml ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 1.7) + unicode-display_width (>= 1.4.0, < 2.0) ruby-progressbar (1.10.1) - ruby_deep_clone (0.8.0) - rubyzip (2.0.0) + rubyzip (2.3.0) sterile (1.0.14) nokogiri thor (0.20.3) @@ -255,11 +304,14 @@ GEM camertron-eprun cldr-plurals-runtime-rb (~> 1.0) tzinfo - tzinfo (2.0.0) + tzinfo (2.0.2) concurrent-ruby (~> 1.0) tzinfo-data (1.2019.3) tzinfo (>= 1.0.0) - unicode-display_width (1.6.0) + unf (0.1.4) + unf_ext + unf_ext (0.0.7.7) + unicode-display_width (1.7.0) unicode2latex (0.0.3) uuidtools (2.1.5) @@ -270,7 +322,7 @@ DEPENDENCIES byebug metanorma metanorma-acme - metanorma-cli (~> 1.2) + metanorma-cli (= 1.2.11) metanorma-csand metanorma-csd metanorma-gb ```

w00lf commented 4 years ago

@w00lf if you have some insights on the problem above please let me know

Here is Gemfile.lock diff

diff --git a/Gemfile.lock b/Gemfile.lock
index 7804235..1ff3516 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -19,20 +19,25 @@ GEM
   specs:
     addressable (2.7.0)
       public_suffix (>= 2.0.2, < 5.0)
-    asciidoctor (1.5.8)
+    asciidoctor (2.0.10)
     asciimath (1.0.9)
     ast (2.4.0)
-    byebug (11.0.1)
+    bibtex-ruby (5.1.3)
+      latex-decode (~> 0.0)
+    byebug (11.1.1)
     camertron-eprun (1.1.1)
     cldr-plurals-runtime-rb (1.0.1)
     cnccs (0.1.5)
-    concurrent-ruby (1.1.5)
-    faraday (0.17.0)
+    concurrent-ruby (1.1.6)
+    domain_name (0.5.20190701)
+      unf (>= 0.0.5, < 1.0.0)
+    faraday (1.0.1)
       multipart-post (>= 1.2, < 3)
-    ffi (1.11.2)
-    gb-agencies (0.0.5)
-    git (1.5.0)
-    html2doc (0.9.0)
+    ffi (1.12.2)
+    gb-agencies (0.0.6)
+    git (1.6.0)
+      rchardet (~> 1.8)
+    html2doc (1.0.0)
       asciimath (~> 1.0.9)
       htmlentities (~> 4.3.4)
       image_size
@@ -41,16 +46,19 @@ GEM
       thread_safe
       uuidtools
     htmlentities (4.3.4)
+    http-cookie (1.0.3)
+      domain_name (~> 0.5)
     iev (0.2.3)
       nokogiri (>= 1.10.4)
     image_size (2.0.2)
-    iso-639 (0.2.8)
-    isodoc (1.0.6)
+    iso-639 (0.3.5)
+    iso639 (1.3.2)
+    isodoc (1.0.23)
       asciimath
-      html2doc (~> 0.9.0)
+      html2doc (~> 1.0.0)
       htmlentities (~> 4.3.4)
       liquid
-      metanorma (~> 0.3.0)
+      metanorma (~> 1.0.0)
       nokogiri (>= 1.10.4)
       rake (~> 12.0)
       roman-numerals
@@ -59,37 +67,40 @@ GEM
       uuidtools
     isoics (0.1.8)
     jaro_winkler (1.5.4)
+    latex-decode (0.3.1)
     liquid (4.0.3)
-    metanorma (0.3.16)
+    mathml2asciimath (0.0.9)
+      htmlentities (~> 4.3.4)
+      nokogiri (>= 1.10.4)
+    metanorma (1.0.1)
       asciidoctor
       htmlentities
-    metanorma-acme (1.3.5)
-      asciidoctor (~> 1.5.7)
+      nokogiri
+    metanorma-acme (1.4.4)
       htmlentities (~> 4.3.4)
       isodoc (~> 1.0.0)
       metanorma-standoc (~> 1.3.0)
       ruby-jing
-    metanorma-cli (1.2.7.1)
+    metanorma-cli (1.2.11)
       git (~> 1.5)
       isodoc (~> 1.0.0)
-      metanorma (~> 0.3.9)
-      metanorma-acme (~> 1.3.0)
-      metanorma-csand (~> 1.3.0)
+      metanorma (~> 1.0.0)
+      metanorma-csa (~> 1.4.0)
       metanorma-csd (~> 1.3.0)
       metanorma-gb (~> 1.3.0)
-      metanorma-iec (~> 0.0.5)
-      metanorma-ietf (~> 1.0.1)
+      metanorma-generic (~> 1.4.0)
+      metanorma-iec (~> 1.0.0)
+      metanorma-ietf (~> 2.0.0)
       metanorma-iso (~> 1.3.0)
-      metanorma-itu (~> 0.2.0)
+      metanorma-itu (~> 1.0.0)
       metanorma-m3d (~> 1.3.0)
-      metanorma-nist (~> 0.2.0)
-      metanorma-ogc (~> 0.2.0)
-      metanorma-standoc (~> 1.3.0)
-      metanorma-unece (~> 0.2.0)
+      metanorma-nist (~> 1.0.0)
+      metanorma-ogc (~> 1.0.0)
+      metanorma-standoc (~> 1.3.0, >= 1.3.18)
+      metanorma-un (~> 0.3.1)
+      relaton-cli (>= 0.8.2)
       thor (~> 0.20.3)
-    metanorma-csand (1.3.5)
-      asciidoctor (~> 1.5.7)
-      asciimath
+    metanorma-csa (1.4.8)
       htmlentities (~> 4.3.4)
       image_size
       isodoc (~> 1.0.0)
@@ -98,36 +109,47 @@ GEM
       ruby-jing
       thread_safe
       uuidtools
-    metanorma-csd (1.3.5)
+    metanorma-csand (1.3.9)
+      htmlentities (~> 4.3.4)
+      image_size
       isodoc (~> 1.0.0)
       metanorma-standoc (~> 1.3.0)
-    metanorma-gb (1.3.6)
+      mime-types
+      ruby-jing
+      thread_safe
+      uuidtools
+    metanorma-csd (1.3.17)
+      isodoc (~> 1.0.0)
+      metanorma-standoc (~> 1.3.0)
+    metanorma-gb (1.3.20)
       gb-agencies (~> 0.0.4)
       htmlentities (~> 4.3.4)
       isodoc (~> 1.0.0)
       metanorma-iso (~> 1.3.0)
       twitter_cldr (~> 4.4.4)
-    metanorma-iec (0.0.9)
-      asciidoctor (~> 1.5.7)
+    metanorma-generic (1.4.6)
+      htmlentities (~> 4.3.4)
+      isodoc (~> 1.0.0)
+      metanorma-standoc (~> 1.3.0)
+      ruby-jing
+    metanorma-iec (1.0.3)
       isodoc (~> 1.0.0)
       metanorma-iso (~> 1.3.0)
       ruby-jing
-    metanorma-ietf (1.0.6)
+    metanorma-ietf (2.0.7)
       isodoc (~> 1.0.0)
+      mathml2asciimath
       metanorma-standoc (~> 1.3.0)
-    metanorma-iso (1.3.6)
-      asciidoctor (~> 1.5.7)
+    metanorma-iso (1.3.21)
       isodoc (~> 1.0.0)
       metanorma-standoc (~> 1.3.0)
       ruby-jing
-    metanorma-itu (0.2.8)
-      asciidoctor (~> 1.5.7)
+    metanorma-itu (1.0.12)
       htmlentities (~> 4.3.4)
       isodoc (~> 1.0.0)
       metanorma-standoc (~> 1.3.0)
       ruby-jing
-    metanorma-m3d (1.3.5)
-      asciidoctor (~> 1.5.7)
+    metanorma-m3d (1.3.16)
       asciimath
       htmlentities (~> 4.3.4)
       image_size
@@ -137,46 +159,50 @@ GEM
       ruby-jing
       thread_safe
       uuidtools
-    metanorma-mpfd (0.3.5)
-      asciidoctor (~> 1.5.7)
+    metanorma-mpfd (0.3.16)
       htmlentities (~> 4.3.4)
       isodoc (~> 1.0.0)
       metanorma-standoc (~> 1.3.0)
       twitter_cldr
-    metanorma-nist (0.2.3)
-      asciidoctor (~> 1.5.7)
+    metanorma-nist (1.0.4)
       htmlentities (~> 4.3.4)
       isodoc (~> 1.0.0)
       metanorma-standoc (~> 1.3.0)
       ruby-jing
       twitter_cldr
       tzinfo-data
-    metanorma-ogc (0.2.6)
-      asciidoctor (~> 1.5.7)
+    metanorma-ogc (1.0.4)
       htmlentities (~> 4.3.4)
       iso-639
-      isodoc (~> 1.0.0)
-      metanorma-standoc (~> 1.3.0)
+      isodoc (~> 1.0.20)
+      metanorma-standoc (~> 1.3.20)
       ruby-jing
-    metanorma-rsd (1.3.5)
-      asciidoctor (~> 1.5.7)
+    metanorma-rsd (1.4.4)
       htmlentities (~> 4.3.4)
       isodoc (~> 1.0.0)
+      metanorma-generic (~> 1.4.0)
       metanorma-standoc (~> 1.3.0)
-    metanorma-standoc (1.3.6)
-      asciidoctor (~> 1.5.7)
+    metanorma-standoc (1.3.23)
+      asciidoctor (~> 2.0.0)
       concurrent-ruby
-      html2doc (~> 0.9.0)
       iev (~> 0.2.1)
-      isodoc (~> 1.0.0)
+      isodoc (~> 1.0.20)
+      mathml2asciimath
       mimemagic
-      relaton (~> 0.5.0)
+      relaton (~> 0.11.0)
       relaton-iev (~> 0.1.0)
       ruby-jing
       sterile (~> 1.0.14)
       unicode2latex (~> 0.0.1)
-    metanorma-unece (0.2.7)
-      asciidoctor (~> 1.5.7)
+    metanorma-un (0.3.5)
+      htmlentities (~> 4.3.4)
+      iso-639
+      isodoc (~> 1.0.0)
+      metanorma-standoc (~> 1.3.0)
+      roman-numerals
+      ruby-jing
+      twitter_cldr
+    metanorma-unece (0.2.14)
       htmlentities (~> 4.3.4)
       iso-639
       isodoc (~> 1.0.0)
@@ -184,69 +210,92 @@ GEM
       roman-numerals
       ruby-jing
       twitter_cldr
-    mime-types (3.3)
+    mime-types (3.3.1)
       mime-types-data (~> 3.2015)
     mime-types-data (3.2019.1009)
-    mimemagic (0.3.3)
+    mimemagic (0.3.4)
     mini_portile2 (2.4.0)
     multipart-post (2.1.1)
-    nokogiri (1.10.5)
+    nokogiri (1.10.9)
       mini_portile2 (~> 2.4.0)
     optout (0.0.2)
-    parallel (1.18.0)
-    parser (2.6.5.0)
+    parallel (1.19.1)
+    parser (2.7.1.0)
       ast (~> 2.4.0)
-    public_suffix (4.0.1)
+    public_suffix (4.0.4)
     rainbow (3.0.0)
     rake (12.3.3)
-    relaton (0.5.9)
-      relaton-gb (~> 0.6.0)
-      relaton-iec (~> 0.4.0)
-      relaton-ietf (~> 0.6.0)
-      relaton-iso (~> 0.6.0)
-      relaton-itu (~> 0.3.0)
-      relaton-nist (~> 0.3.0)
-      relaton-ogc (~> 0.1.0)
-    relaton-bib (0.3.12)
+    rchardet (1.8.0)
+    relaton (0.11.1)
+      relaton-calconnect (~> 0.7.0)
+      relaton-gb (~> 0.12.0)
+      relaton-iec (~> 0.10.0)
+      relaton-ietf (~> 0.12.0)
+      relaton-iso (~> 0.12.0)
+      relaton-itu (~> 0.9.0)
+      relaton-nist (~> 0.9.0)
+      relaton-ogc (~> 0.7.0)
+      relaton-omg (~> 0.3.0)
+      relaton-un (~> 0.2.0)
+      relaton-w3c (~> 0.1.0)
+    relaton-bib (0.9.2)
       addressable
+      bibtex-ruby
+      iso639
       nokogiri
-    relaton-gb (0.6.7)
+    relaton-calconnect (0.7.0)
+      faraday
+      relaton-iso-bib (~> 0.9.0)
+    relaton-cli (0.9.0)
+      liquid
+      relaton (~> 0.11.0)
+      thor
+    relaton-gb (0.12.0)
       cnccs (~> 0.1.1)
       gb-agencies (~> 0.0.1)
-      relaton-iso-bib (~> 0.3.0)
-    relaton-iec (0.4.10)
+      relaton-iso-bib (~> 0.9.0)
+    relaton-iec (0.10.0)
       addressable
-      relaton-iso-bib (~> 0.3.0)
-    relaton-ietf (0.6.8)
-      relaton-bib (~> 0.3.0)
-    relaton-iev (0.1.1)
-      relaton (~> 0.5.0)
-    relaton-iso (0.6.9)
-      relaton-iec (~> 0.4.0)
-      relaton-iso-bib (~> 0.3.0)
-    relaton-iso-bib (0.3.12)
+      relaton-iso-bib (~> 0.9.0)
+    relaton-ietf (0.12.1)
+      relaton-bib (~> 0.9.0)
+    relaton-iev (0.1.4)
+      relaton (~> 0.7)
+    relaton-iso (0.12.1)
+      relaton-iec (~> 0.10.0)
+      relaton-iso-bib (~> 0.9.0)
+    relaton-iso-bib (0.9.1)
       isoics (~> 0.1.6)
-      relaton-bib (~> 0.3.0)
-      ruby_deep_clone (~> 0.8.0)
-    relaton-itu (0.3.7)
-      relaton-iso-bib (~> 0.3.0)
-    relaton-nist (0.3.8)
-      relaton-bib (~> 0.3.0)
+      relaton-bib (~> 0.9.0)
+    relaton-itu (0.9.0)
+      relaton-iso-bib (~> 0.9.0)
+    relaton-nist (0.9.0)
+      relaton-bib (~> 0.9.0)
       rubyzip
-    relaton-ogc (0.1.4)
+    relaton-ogc (0.7.1)
+      faraday (~> 1.0.0)
+      relaton-iso-bib (>= 0.9.1)
+    relaton-omg (0.3.0)
+      relaton-bib (~> 0.9.0)
+    relaton-un (0.2.0)
       faraday
-      relaton-iso-bib (~> 0.3.0)
+      http-cookie
+      relaton-bib (~> 0.9.0)
+      unf_ext (>= 0.0.7.7)
+    relaton-w3c (0.1.0)
+      relaton-bib (>= 0.9.2)
+    rexml (3.2.4)
     roman-numerals (0.3.0)
-    rubocop (0.76.0)
+    rubocop (0.81.0)
       jaro_winkler (~> 1.5.1)
       parallel (~> 1.10)
-      parser (>= 2.6)
+      parser (>= 2.7.0.1)
       rainbow (>= 2.2.2, < 4.0)
+      rexml
       ruby-progressbar (~> 1.7)
-      unicode-display_width (>= 1.4.0, < 1.7)
+      unicode-display_width (>= 1.4.0, < 2.0)
     ruby-progressbar (1.10.1)
-    ruby_deep_clone (0.8.0)
-    rubyzip (2.0.0)
+    rubyzip (2.3.0)
     sterile (1.0.14)
       nokogiri
     thor (0.20.3)
@@ -255,11 +304,14 @@ GEM
       camertron-eprun
       cldr-plurals-runtime-rb (~> 1.0)
       tzinfo
-    tzinfo (2.0.0)
+    tzinfo (2.0.2)
       concurrent-ruby (~> 1.0)
     tzinfo-data (1.2019.3)
       tzinfo (>= 1.0.0)
-    unicode-display_width (1.6.0)
+    unf (0.1.4)
+      unf_ext
+    unf_ext (0.0.7.7)
+    unicode-display_width (1.7.0)
     unicode2latex (0.0.3)
     uuidtools (2.1.5)

@@ -270,7 +322,7 @@ DEPENDENCIES
   byebug
   metanorma
   metanorma-acme
-  metanorma-cli (~> 1.2)
+  metanorma-cli (= 1.2.11)
   metanorma-csand
   metanorma-csd
   metanorma-gb

Hi there, can you send me the command you are testing with? As well as compiled distr

CAMOBAP commented 4 years ago

@w00lf you can build it with env GITHUB_REF=refs/tags/v1.2.11 make build on master

Should I pack build or $TEMP_DIR/metanorma directory?

w00lf commented 4 years ago

@w00lf you can build it with env GITHUB_REF=refs/tags/v1.2.11 make build on master

Should I pack build or $TEMP_DIR/metanorma directory?

Can you send me the command and adoc file you are trying to compile?

CAMOBAP commented 4 years ago

@w00lf ./build/metanorma --type iso -x html ./sources/iso/iso-rice-en.adoc

More details here: https://github.com/metanorma/packed-mn/runs/570819019?check_suite_focus=true#step:14:97

w00lf commented 4 years ago

https://github.com/metanorma/packed-mn/runs/570819019?check_suite_focus=true#step:14:97

Thx

w00lf commented 4 years ago

@ronaldtse @CAMOBAP795 after some debugging i have found the issue. We use sassc mixins extensively, load path for them is set in isodoc:

SassC.load_paths << File.join(Gem.loaded_specs['isodoc'].full_gem_path,
                                    "lib", "isodoc")
SassC.load_paths << File.dirname(filename)

https://github.com/metanorma/isodoc/blob/c8b6f3127712f8e582980fd983118acdffec9dc1/lib/isodoc/convert.rb#L132

Because of ruby packer, these specs paths all start with /__enclose_io_memfs__/ and exists only inside memfs. Thats why libsass don't understand these paths and throws this error. I think i can alternate bin/metanorma script that will take css files from specs and move them into temporary dir, after that i can set these temp paths to be used in isodoc. Kind of a hack, but alternative is to patch libsass clang code)

CAMOBAP commented 4 years ago

@w00lf thanks for the investigation.

To be on the same page tests are passed on master (for currently committed Gemfile.lock). The problem only happens on release flow when we do bundle update for specific version of metanorma-cli

According to diff on Gemfile.lock

...
-    isodoc (1.0.6)
+    isodoc (1.0.23)
...

So it works for isodoc@1.0.6 but doesn't work for isodoc@1.0.23

According to diff, more likely it's related to this line of code (because the one which you mentioned above are the same in those two versions)

https://github.com/metanorma/isodoc/compare/v1.0.6...v1.0.23#diff-046372203253a7905645bbe2f6a38e05L132

@w00lf @ronaldtse how do you think?

w00lf commented 4 years ago

@w00lf thanks for the investigation.

To be on the same page tests are passed on master (for currently committed Gemfile.lock). The problem only happens on release flow when we do bundle update for specific version of metanorma-cli

According to diff on Gemfile.lock

...
-    isodoc (1.0.6)
+    isodoc (1.0.23)
...

So it works for isodoc@1.0.6 but doesn't work for isodoc@1.0.23

According to diff, more likely it's related to this line of code (because the one which you mentioned above are the same in those two versions)

metanorma/isodoc@v1.0.6...v1.0.23diff-046372203253a7905645bbe2f6a38e05L132

@w00lf @ronaldtse how do you think?

The reason why it works on 1.0.6 is because recently we released new versions to all flavors(iso, nist, rsd and others) and in this new version we have rewritten scss to use isodoc mixins, before that it was just simple scss file.

CAMOBAP commented 4 years ago

@w00lf thanks for the explanation, I'm not very familiar with rubyc & memfs, is it possible to write some custom "path resolver" for memfs to be able to avoid tmp copy?

@ronaldtse @w00lf because the original topic is done (CI triggered by metanorma-cli) I propose to continue work in a separate task or rename this one, how do you think?

w00lf commented 4 years ago

@w00lf thanks for the explanation, I'm not very familiar with rubyc & memfs, is it possible to write some custom "path resolver" for memfs to be able to avoid tmp copy?

@ronaldtse @w00lf because the original topic is done (CI triggered by metanorma-cli) I propose to continue work in a separate task or rename this one, how do you think?

Unfortunately, I dont have that much clang experience to do that. I can only create ruby patch.

CAMOBAP commented 4 years ago

@ronaldtse how do you think?

ronaldtse commented 4 years ago

Because of ruby packer, these specs paths all start with /enclose_io_memfs/ and exists only inside memfs. Thats why libsass don't understand these paths and throws this error. I think i can alternate bin/metanorma script that will take css files from specs and move them into temporary dir, after that i can set these temp paths to be used in isodoc. Kind of a hack, but alternative is to patch libsass clang code)

@w00lf could you please help make this happen? We need to make packed-mn workable and auto-releasing. Thanks!

ronaldtse commented 4 years ago

@CAMOBAP795 if #23 is fixed, can you help make GHA auto-release the executables on GitHub Packages? Just like: https://github.com/fontist/source-fonts/blob/master/.github/workflows/release.yml

We want to auto-release both macOS and Linux binaries. Thanks!

CAMOBAP commented 4 years ago

@ronaldtse done https://github.com/metanorma/packed-mn/releases/tag/v1.2.11

ronaldtse commented 4 years ago

Awesome thanks @CAMOBAP795 !