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)
Tue, Sep 9, 1:31 PM
Unknown Object (File)
Wed, Aug 27, 11:08 AM
Unknown Object (File)
Mon, Aug 25, 11:56 AM
Unknown Object (File)
Aug 12 2025, 10:37 PM
Unknown Object (File)
Jul 28 2025, 6:48 AM
Unknown Object (File)
Jul 26 2025, 1:34 AM
Unknown Object (File)
Jul 25 2025, 5:07 PM
Unknown Object (File)
Jul 15 2025, 3:13 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
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 48336
Build 45222: 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.