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
F147325808: D37387.id113095.diff
Tue, Mar 10, 12:14 AM
Unknown Object (File)
Sun, Mar 1, 10:53 PM
Unknown Object (File)
Sun, Mar 1, 8:20 AM
Unknown Object (File)
Sun, Mar 1, 4:41 AM
Unknown Object (File)
Thu, Feb 26, 5:07 AM
Unknown Object (File)
Feb 8 2026, 8:34 AM
Unknown Object (File)
Feb 8 2026, 8:07 AM
Unknown Object (File)
Feb 8 2026, 2:27 AM
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
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 48335
Build 45221: arc lint + arc unit

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.