Skip to content

fix(build): make rule pack discovery portable - #7

Merged
intellinfra-dev merged 1 commit into
mainfrom
fix/portable-pack-discovery
Aug 24, 2026
Merged

fix(build): make rule pack discovery portable#7
intellinfra-dev merged 1 commit into
mainfrom
fix/portable-pack-discovery

Conversation

@intellinfra-dev

Copy link
Copy Markdown
Contributor

Summary

  • replace GNU find -printf pack discovery with GNU Make wildcard/patsubst
  • make empty pack discovery fail instead of returning a false-success result
  • keep explicit PACK=<pack> behavior unchanged

Why

macOS uses BSD find, which rejects -printf. The previous default make all therefore found no packs, printed no packs found, and still exited successfully.

Validation

  • macOS default make all discovered all 15 directories without PACK=
  • OPA 1.0.0 check passed for all 15 directories
  • OPA unit tests passed: 192/192
  • KubeAtlas 1.5.2 rules-test integration passed for all 15 sample directories
  • forced empty PACK_DIRS returns a non-zero exit status
  • git diff --check

Signed-off-by: dev lithastra dev@lithastra.com

Signed-off-by: dev lithastra <dev@lithastra.com>
@intellinfra-dev
intellinfra-dev merged commit f7e6ca7 into main Aug 24, 2026
6 checks passed
@intellinfra-dev
intellinfra-dev deleted the fix/portable-pack-discovery branch August 24, 2026 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant