Skip to content

fix(builder): fix linter exception loading and sandbox file access - #159

Merged
abn merged 1 commit into
mainfrom
add_linter_exception_support
Aug 23, 2026
Merged

fix(builder): fix linter exception loading and sandbox file access#159
abn merged 1 commit into
mainfrom
add_linter_exception_support

Conversation

@abn

@abn abn commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes flatpak-builder-lint exception handling during builds:

  • Infers application ID from manifest before pre-build linting to ensure exceptions are matched by App ID rather than unmatched wildcard *.
  • Creates consolidated linter exceptions file inside stateDir (.state/) instead of $XDG_RUNTIME_DIR//tmp, ensuring the file is accessible within Flatpak's sandboxed container execution environment.
  • Adds test coverage for manifest-based App ID inference and exceptions generation in pkg/builder/builder_test.go.

Infer application ID from manifest before linting and write consolidated exceptions file inside state directory to enable Flatpak sandbox access.
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Aug 23, 2026
@abn
abn merged commit 50c118d into main Aug 23, 2026
6 checks passed
@abn
abn deleted the add_linter_exception_support branch August 23, 2026 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant