Ticket #790 (closed enhancement: wontfix)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: guest Owned by:
Priority: normal Milestone:
Component: Cabal library Version: 1.8.0.6
Severity: normal Keywords:
Cc: ndmitchell@…, robin@… Difficulty: unknown
GHC Version: Platform:

Description

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  http://hackage.haskell.org/package/turni-2011.1.15 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.

Change History

Changed 2 years ago by benmachine

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.

Changed 2 years ago by robin.bateboerop

  • status changed from new to closed
  • resolution set to wontfix

Changed 2 years ago by robin.bateboerop

  • cc robin@… added
Note: See TracTickets for help on using tickets.