Skip to content

(URGENT) isodoc requiring sassc in normal execution, and metanorma-* gems should not be published without compiled CSS #367

@ronaldtse

Description

@ronaldtse

This is a regression. When generating the https://github.com/metanorma/iso-19626-1 document:

https://github.com/metanorma/iso-19626-1/pull/8

$ bundle exec metanorma site generate
...
#<Thread:0x00000001316cde00 /Users/me/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/metanorma-1.4.4/lib/metanorma/worker_pool.rb:7 run> terminated with exception (report_on_exception is true):
/Users/me/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/isodoc-1.8.4/lib/isodoc/css.rb:78:in `require': cannot load such file -- sassc (LoadError)
	from /Users/me/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/isodoc-1.8.4/lib/isodoc/css.rb:78:in `convert_scss'
	from /Users/me/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/isodoc-1.8.4/lib/isodoc/css.rb:100:in `generate_css'

This task is to:

  • Make sure metanorma-* gems when released, they always have the compiled CSS files, through an automated gem validation mechanism.
  • Maybe there should be a spec that tests against that to ensure that if the metanorma-* gem does not have compiled CSS included, the tests will fail.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

🌋 Urgent

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions