Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to use Relaton structure #3

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

calconnect-ci
Copy link

In GitLab by @ronaldtse on Nov 1, 2019, 15:21

@andrew2net I am trying to migrate to the Relaton structure like https://github.com/CalConnect/csd-subscription-upgrade, but Relaton-CLI is throwing an error.

NoMethodError: undefined method `text' for nil:NilClass
  /Users/ronaldtse/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/bundler/gems/relaton-ietf-f95c15fd629f/lib/relaton_ietf/scrapper.rb:223:in `affiliation'
  /Users/ronaldtse/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/bundler/gems/relaton-ietf-f95c15fd629f/lib/relaton_ietf/scrapper.rb:150:in `block in persons'
  /Users/ronaldtse/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/nokogiri-1.10.4/lib/nokogiri/xml/node_set.rb:238:in `block in each'
  /Users/ronaldtse/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/nokogiri-1.10.4/lib/nokogiri/xml/node_set.rb:237:in `upto'
  /Users/ronaldtse/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/nokogiri-1.10.4/lib/nokogiri/xml/node_set.rb:237:in `each'
  /Users/ronaldtse/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/bundler/gems/relaton-ietf-f95c15fd629f/lib/relaton_ietf/scrapper.rb:147:in `map'
  /Users/ronaldtse/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/bundler/gems/relaton-ietf-f95c15fd629f/lib/relaton_ietf/scrapper.rb:147:in `persons'
  /Users/ronaldtse/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/bundler/gems/relaton-ietf-f95c15fd629f/lib/relaton_ietf/scrapper.rb:142:in `contributors'
  /Users/ronaldtse/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/bundler/gems/relaton-ietf-f95c15fd629f/lib/relaton_ietf/scrapper.rb:54:in `fetch_rfc'
  /Users/ronaldtse/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/bundler/gems/relaton-cli-8a8877214892/lib/relaton/cli/relaton_file.rb:144:in `block in concatenate_files'
  /Users/ronaldtse/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/bundler/gems/relaton-cli-8a8877214892/lib/relaton/cli/relaton_file.rb:139:in `map'

Please help fix this, thanks.

@calconnect-ci
Copy link
Author

In GitLab by @andrew2net on Nov 1, 2019, 23:45

It needs to add -n to relaton concatenate command. Which means use a new Relaton format.

@calconnect-ci
Copy link
Author

In GitLab by @ronaldtse on Nov 2, 2019, 05:49

Could you help make the edits? Thanks!

@calconnect-ci
Copy link
Author

In GitLab by @andrew2net on Nov 2, 2019, 21:13

Replace the code above with this:

documents.rxl: $(XML)
	bundle exec relaton concatenate \
	  -t "$(shell yq r metanorma.yml relaton.collection.name)" \
	  -g "$(shell yq r metanorma.yml relaton.collection.organization)" \
	  -n documents $@

Actually the diffrerence is in the last line.

@calconnect-ci
Copy link
Author

In GitLab by @andrew2net on Nov 1, 2019, 23:39

@ronaldtse try to use relaton-cli version 0.3.11. You use the committee which on relaton-itu which has an issue with Travis test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants