regro / rever

Releaser of Versions
https://regro.github.io/rever-docs/
BSD 3-Clause "New" or "Revised" License
75 stars 34 forks source link

add authors to rever #167

Closed CJ-Wright closed 5 years ago

CJ-Wright commented 5 years ago

I get the following error, but the email asmeurer@gmail.com is associated with Aaron.

Re-doing acctivity 'authors' which has already been setup!
Authors file 'AUTHORS' exists AND Mailmap file '.mailmap' exists
rever forced, overwriting files!
'asmeurer@gmail.com' does not have 'Aaron Meurer' listed! Please add the name to 'asmeurer@gmail.com' in '.authors.yml'. For example:

- name: Aaron Meurer
  email: asmeurer@gmail.com

Or add an alias:

- name: Some Body Else
  email: asmeurer@gmail.com
  aliases:
    - Aaron Meurer
Traceback (most recent call last):
  File "/home/christopher/mc/envs/regro/bin/rever", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/home/christopher/dev/rever/scripts/rever", line 3, in <module>
    main()
  File "/home/christopher/dev/rever/rever/main.xsh", line 233, in main
    env_main(args=args)
  File "/home/christopher/dev/rever/rever/main.xsh", line 225, in env_main
    setup_activities(ns)
  File "/home/christopher/dev/rever/rever/main.xsh", line 179, in setup_activities
    status = act.setup()
  File "/home/christopher/dev/rever/rever/activity.xsh", line 103, in setup
    status = self._setup()
  File "/home/christopher/dev/rever/rever/activities/authors.xsh", line 170, in setup_func
    md = self._update_authors(filename, template, format, metadata, sortby)
  File "/home/christopher/dev/rever/rever/activities/authors.xsh", line 178, in _update_authors
    md = update_metadata(metadata)
  File "/home/christopher/dev/rever/rever/authors.xsh", line 113, in update_metadata
    _verify_names_emails_aliases(y, by_names, by_emails, filename)
  File "/home/christopher/dev/rever/rever/authors.xsh", line 89, in _verify_names_emails_aliases
    raise RuntimeError("Duplicated author/email combos")
RuntimeError: Duplicated author/email combos
CJ-Wright commented 5 years ago

attn: @scopatz

CJ-Wright commented 5 years ago

I needed to add christopher to my alias as well as the email.

scopatz commented 5 years ago

This looks right to me. I'll play around with the error message.

scopatz commented 5 years ago

Thanks @CJ-Wright!