Page MenuHomeFreeBSD

framework: new hook to only allow 'default' files in category/port
ClosedPublic

Authored by tcberner on Nov 14 2022, 6:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 30, 8:51 AM
Unknown Object (File)
Sun, Dec 15, 1:35 PM
Unknown Object (File)
Dec 8 2024, 3:23 PM
Unknown Object (File)
Nov 28 2024, 5:05 PM
Unknown Object (File)
Nov 8 2024, 2:37 AM
Unknown Object (File)
Nov 6 2024, 2:53 PM
Unknown Object (File)
Oct 30 2024, 9:12 AM
Unknown Object (File)
Oct 6 2024, 2:29 PM
Subscribers
None

Details

Summary

This hooks enforces that all files in the top-directory of a port match:

  • .*\.mk
  • Makefile.*
  • dist-info.*
  • pkg-descr.*
  • pkg-message.*
  • pkg-plist.*
  • pkg-post.*

An example error message would look like:

[pre-commit] ERROR: invalid file 'Foo' in 'kate/editors'
            Consider moving non-standard files to files/ or force-ignore this hook.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tcberner created this revision.
  • fix pkg-* regex (don't enforce presence of a '.' on suffix)

fix error message "category/port"

only check port-category subdirecotries

This revision was not accepted when it landed; it landed in state Needs Review.Nov 15 2022, 6:22 PM
This revision was automatically updated to reflect the committed changes.