GeertJohan/go.rice

feature request: Support exclude(ignore) using .riceignore

Open

#83 创建于 2016年8月21日

在 GitHub 查看
 (7 评论) (6 反应) (0 负责人)Go (2,442 star) (187 fork)user submission
enhancementhelp wanted

描述

Similar issues: #80 #37

go.rice does not support excluding files and this result in huge binary if you have folders like node_modules, and due to the way rice find boxes (related #47 ), it's hard to specify different box location for same box during development and production. So similar to git and docker, which has .gitignore and .dockeringore, a .riceignore file can be introduced to make rice more flexible without changing how rice find boxes.

The implementation in docker for dockerignore can be a good start, also there is a dockerignore library

I have already tried it in my own fork in this commit. It works for append zip only, and use the library mentioned above, it works for this small project. Though the behavior is not exactly same as gitingore and only .riceignore file at box root is supported.

I can make a pull request if go.rice is still under development. Thanks~

贡献者指南