Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bee pack 可以默认忽略.开头的文件和目录 #2

Closed
yaofangou opened this issue Dec 13, 2013 · 8 comments
Closed

bee pack 可以默认忽略.开头的文件和目录 #2

yaofangou opened this issue Dec 13, 2013 · 8 comments

Comments

@yaofangou
Copy link

目前bee pack打包的时候会把git的.git, .gitignore这样的文件打包进去,类似的还有.hg .hgignore .hgtags,可以默认忽略掉

@slene
Copy link
Contributor

slene commented Dec 13, 2013

目前有个 -exs 参数可以忽略文件的,你可以直接用这个选项的。

已有的api不好更改参数,以免产生不兼容

@slene slene closed this as completed Dec 13, 2013
@yaofangou
Copy link
Author

老谢怕忘了,让我提的issue……

@slene
Copy link
Contributor

slene commented Dec 13, 2013

哦。。。原来是这么回事,@astaxie 这个api可以改么

@slene slene reopened this Dec 13, 2013
@yaofangou
Copy link
Author

我觉得,按照go的设计哲学,约定俗成,加了.的文件和目录就是不可见的,那么打包的时候是要忽略的

@slene
Copy link
Contributor

slene commented Dec 13, 2013

有道理,这样做如何,增加一个参数,-exh 忽略 . 开头的文件,默认 false

@yaofangou
Copy link
Author

也可以,只是这样做了,以后就没机会改了,三思呀

@unknwon
Copy link
Contributor

unknwon commented Dec 13, 2013

我觉得都没什么人用,随便改!

@yaofangou
Copy link
Author

严重同意楼上的

astaxie added a commit that referenced this issue Dec 15, 2013
set exp default . to fix issue #2
@astaxie astaxie closed this as completed Dec 31, 2013
astaxie pushed a commit that referenced this issue Jul 13, 2016
ComradeProgrammer referenced this issue in casbin/bee Dec 1, 2021
merge with astaxie master
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

No branches or pull requests

4 participants