The dify-plugin-windows-amd64 will package all contents in project folder? #225

Closed
opened 2026-02-16 01:15:01 -05:00 by yindo · 1 comment
Owner

Originally created by @simonjhy on GitHub (Dec 18, 2025).

Self Checks

To make sure we get to you in time, please check the following :)

  • [Y ] I have searched for existing issues search for existing issues, including closed ones.
  • [ Y] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [ Y] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [ Y] "Please do not modify this template :) and fill in all the required fields."

Versions

  1. dify-plugin-daemon Version: 0.5.1
  2. dify-api Version: V1.11.1

Describe the bug
While I use dify-plugin-windows-amd64 to build a dify plugin package in windows. The dify plugin will package all contents in project folder, it will package the .venv, .idea and pycache ?
How can I exclude them?

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Originally created by @simonjhy on GitHub (Dec 18, 2025). **Self Checks** To make sure we get to you in time, please check the following :) - [Y ] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify-plugin-daemon/issues), including closed ones. - [ Y] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [ Y] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [ Y] "Please do not modify this template :) and fill in all the required fields." **Versions** 1. dify-plugin-daemon Version: 0.5.1 2. dify-api Version: V1.11.1 **Describe the bug** While I use dify-plugin-windows-amd64 to build a dify plugin package in windows. The dify plugin will package all contents in project folder, it will package the .venv, .idea and __pycache__ ? How can I exclude them? **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. **Additional context** Add any other context about the problem here.
yindo added the bug label 2026-02-16 01:15:01 -05:00
yindo closed this issue 2026-02-16 01:15:01 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Dec 18, 2025):

Yes, by default dify-plugin-windows-amd64 will package all files and folders in your project directory, including .venv, .idea, and pycache.

To exclude these (or any other) directories or files, create a .difyignore file in your project root (or use .gitignore if .difyignore is not present). List the patterns you want to exclude, for example:

.venv/
.idea/
__pycache__/

The packager will read these patterns and skip matching files and directories during packaging. This exclusion logic is implemented in the codebase and works similarly to how .gitignore files operate. There is currently no CLI flag for exclusions; the ignore file is the intended mechanism. Documentation for this feature is not yet available, but you can see the implementation details in the FSPluginDecoder.Walk method and discussion in issue #257.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Dec 18, 2025): <!-- Answer --> Yes, by default dify-plugin-windows-amd64 will package all files and folders in your project directory, including .venv, .idea, and __pycache__. To exclude these (or any other) directories or files, create a `.difyignore` file in your project root (or use `.gitignore` if `.difyignore` is not present). List the patterns you want to exclude, for example: ``` .venv/ .idea/ __pycache__/ ``` The packager will read these patterns and skip matching files and directories during packaging. This exclusion logic is implemented in the codebase and works similarly to how .gitignore files operate. There is currently no CLI flag for exclusions; the ignore file is the intended mechanism. Documentation for this feature is not yet available, but you can see the implementation details in the [FSPluginDecoder.Walk method](https://github.com/langgenius/dify-plugin-daemon/blob/4b75eed6b7c14d1d755c3e9cac59c4d847bec2c1/pkg/plugin_packager/decoder/fs.go#L63-L122) and discussion in [issue #257](https://github.com/langgenius/dify-plugin-daemon/issues/257). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/34ea1781-4959-4e85-8f12-a96e47bc434d?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/34ea1781-4959-4e85-8f12-a96e47bc434d?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/34ea1781-4959-4e85-8f12-a96e47bc434d?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/34ea1781-4959-4e85-8f12-a96e47bc434d?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/34ea1781-4959-4e85-8f12-a96e47bc434d?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/34ea1781-4959-4e85-8f12-a96e47bc434d?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/34ea1781-4959-4e85-8f12-a96e47bc434d?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=Yes%2C%20by%20default%20dify-plugin-windows-amd64%20will%20package%20all%20files%20and%20folders%20in%20your%20project%20directory%2C%20including%20.venv%2C%20.idea%2C%20and%20__pycache__.%0A%0ATo%20exclude%20these%20%28or%20any%20other%29%20directories%20or%20files%2C%20create%20a%20%60.difyignore%60%20file%20in%20your%20project%20root%20%28or%20use%20%60.gitignore%60%20if%20%60.difyignore%60%20is%20not%20present%29.%20List%20the%20patterns%20you%20want%20to%20exclude%2C%20for%20example%3A%0A%0A%60%60%60%0A.venv/%0A.idea/%0A__pycache__/%0A%60%60%60%0A%0AThe%20packager%20will%20read%20these%20patterns%20and%20skip%20matching%20files%20and%20directories%20during%20packaging.%20This%20exclusion%20logic%20is%20implemented%20in%20the%20codebase%20and%20works%20similarly%20to%20how%20.gitignore%20files%20operate.%20There%20is%20currently%20no%20CLI%20flag%20for%20exclusions%3B%20the%20ignore%20file%20is%20the%20intended%20mechanism.%20Documentation%20for%20this%20feature%20is%20not%20yet%20available%2C%20but%20you%20can%20see%20the%20implementation%20details%20in%20the%20%5BFSPluginDecoder.Walk%20method%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/blob/4b75eed6b7c14d1d755c3e9cac59c4d847bec2c1/pkg/plugin_packager/decoder/fs.go%23L63-L122%29%20and%20discussion%20in%20%5Bissue%20%23257%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/issues/257%29.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-plugin-daemon/issues/546)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#225