Skip to content

Make cabal check warn if copyright field doesn't have current year #780

bos opened this Issue May 24, 2012 · 1 comment

1 participant

Haskell member
bos commented May 24, 2012

(Imported from Trac #790, reported by guest on 2011-01-15)

Quite a few packages being uploaded on Hackage have 2010 as the copyright year, probably because developers forgot to update the year. As an example, see which was uploaded in 2011, but puts the copyright as 2010 (that's just the first I encountered, but there are loads).

I suggest cabal check should warn if copyright doesn't have the current year in the field.

Haskell member
bos commented May 24, 2012

(Imported comment by @benmachine on 2011-01-15)

Copyright fields can in general contain an arbitrary string (or frequently, no string at all) so I imagine it being tricky to parse a year out of it reliably unless we also standardised the format. Think about things like (c) 2006-9 John Smith, 2009-10 Martha Jones.
Plus there are plenty of packages that aren't the original work of the uploader (e.g. forks, maintainerships, cabalizations, etc.), in which case it might be inappropriate to update the copyright field.

@bos bos closed this May 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.