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)
Sat, Apr 20, 5:33 PM
Unknown Object (File)
Mar 8 2024, 4:21 PM
Unknown Object (File)
Mar 8 2024, 4:21 PM
Unknown Object (File)
Mar 8 2024, 4:21 PM
Unknown Object (File)
Mar 8 2024, 4:21 PM
Unknown Object (File)
Mar 8 2024, 4:21 PM
Unknown Object (File)
Mar 8 2024, 4:21 PM
Unknown Object (File)
Mar 8 2024, 4:21 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.