Closed ronaldtse closed 1 year ago
For every relaton-data- update, we must run relaton- tests to ensure they pass.
@ronaldtse the format of index.yaml was update some time ago. This issue caused by an old index file stored locally. The file should be updated automatically every day. The relaton-bipm keeps an old index in the relaton-data-bipm for previous relaton-bipm releases, but it is stored locally with same name (which was my mistake). So the old relaton-bipm was used and it loaded and old index, then the relaton-bipm was updated same day and tried to use the old index. As I said the local index file is updated daily, so the issue should gone today. Please try in again.
@andrew2net I'm not sure if this is really an update issue. The fetches are still all failing:
$ bundle exec relaton fetch "CGPM Resolution 1901-01"
[relaton-bipm] ("CGPM Resolution 1901-01") fetching...
bundler: failed to load command: relaton (/Users/me/.asdf/installs/ruby/3.1.2/bin/relaton)
/Users/me/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/relaton-bipm-1.14.3/lib/relaton_bipm/bipm_bibliography.rb:48:in `block in get_bipm': no implicit conversion of Symbol into Integer (TypeError)
from /Users/me/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/relaton-index-0.1.6/lib/relaton/index/type.rb:61:in `block in search'
from /Users/me/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/relaton-index-0.1.6/lib/relaton/index/type.rb:60:in `select'
from /Users/me/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/relaton-index-0.1.6/lib/relaton/index/type.rb:60:in `search'
from /Users/me/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/relaton-bipm-1.14.3/lib/relaton_bipm/bipm_bibliography.rb:48:in `get_bipm'
from /Users/me/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/relaton-bipm-1.14.3/lib/relaton_bipm/bipm_bibliography.rb:13:in `search'
from /Users/me/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/relaton-bipm-1.14.3/lib/relaton_bipm/bipm_bibliography.rb:70:in `get'
from /Users/me/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/relaton-bipm-1.14.3/lib/relaton_bipm/processor.rb:20:in `get'
from /Users/me/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/relaton-1.15.1/lib/relaton/db.rb:187:in `fetch_doc'
@ronaldtse hmm... I don't get the error. Can you send me the file ~/.relaton/bipm/index.yaml
?
Please try to remove the ~/.relaton/bipm/index.yaml
and fetch again.
After removing ~/.relaton/bipm/index.yaml
, fetching worked.
Here's the index.yaml file: index.yaml.zip
In any case we have the following two follow up tasks:
Thanks!
From https://github.com/metanorma/bipm-si-brochure
Fetching a single item already fails: