Skip to content

Keep .github out of the release tarball - #12

Merged
mastacontrola merged 1 commit into
mainfrom
gitattributes-exclude-github
Aug 17, 2026
Merged

Keep .github out of the release tarball#12
mastacontrola merged 1 commit into
mainfrom
gitattributes-exclude-github

Conversation

@mastacontrola

Copy link
Copy Markdown
Member

.github/workflows/tests.yml landed in #11 and is tracked, but the release asset is a git archive of the tag — so without an export-ignore the next release unpacks a .github/workflows/ directory into every FOG web root as lib/plugins/.github/workflows/tests.yml.

That is exactly the case the existing exclusions are there for; the comment at the top of .gitattributes already says why ("the installer untars this straight into lib/plugins, so anything exported here ends up served by the web server"). README.md, LICENSE, .gitattributes, make-release.sh and tests/ are already excluded — .github/ was simply missed because it did not exist when the list was written.

Caught while preparing the v1.6.6 release that ships the OIDC provider-group tabs from #10.

🤖 Generated with Claude Code

https://claude.ai/code/session_017aBSWrDArXHTpKWkkN27LR

The workflow directory added in #11 is tracked, and the release asset is a
git archive of the tag, so without an export-ignore it unpacks into the web
root as lib/plugins/.github/workflows/tests.yml. That is the same reason
README.md, LICENSE and tests/ are already excluded: the installer untars this
straight into a directory the web server serves.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017aBSWrDArXHTpKWkkN27LR
@mastacontrola
mastacontrola merged commit 87176fd into main Aug 17, 2026
2 checks passed
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