-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Packr Box as migration source. #116
Comments
Threw this together quickly: https://gist.github.com/chakrit/f0f685dc224013ea3b2c3e2e8ac77a34 in case anyone wants to make a proper PR out of it. |
Feel free to open a PR. Don't forget to add tests. |
I can send a PR ( plus tests ) for this before Saturday |
Would be awesome to get Packr support merged. |
Damn, I forgot about this.... Will send in the PR on Sunday evening |
Hey hey! I was just about to work on something similar. What are your thoughts on using the |
@coolaj86 What do we gain by using another interface? I see the following issues with using another interface/struct (
|
Hey @coolaj86, let me know if you are picking this one up |
@dhui @adelowo This is what I meant: #144 Obviously you'll want more docs and whatnot, but that shows how it could work.
|
They both use
Intuitively, you'd think that
The point is that packr, fileb0x, vfsgen, and most other bindata generators already implement The plugins for packr and fileb0x that I included in my PR are essentially no-op wrappers. The only reason to have such a plugin is for SEO benefit and for the benefit of people who didn't read or understand the documentation of those packages as implementing the
It's all the same interface (see the code in the PR). A single |
I believe we'll still need to register the each source driver for the following reasons:
|
This should be trivial to implement now that #293 has been merged. |
* Add pkger source driver support As go-bindata has been abandoned [1] there are open requests, #116, for alternative sources with similar functionality. The Buffalo project [2] created packr and recently pkger [3] was announced [4] with the intention to supersede packr. This change adds support for using pkger as a source. The implementation relies on httpfs.PartialDriver for pretty much all functionality. [1] jteeuwen/go-bindata#5 [2] https://gobuffalo.io/ [3] https://github.com/markbates/pkger [4] https://blog.gobuffalo.io/introducing-pkger-static-file-embedding-in-go-1ce76dc79c65 * pkger: rename Instance to Pkger * pkger: make WithInstance accept *Pkger * pkger: refactor and add access to global pkging.Pkger instance * pkger: fix typo and cleanup debug logging
Closing since pkgr is supported. If anyone wants packr support, they can still open a PR and add it. |
Is your feature request related to a problem? Please describe.
go-bindata
has been left unmaintained, unwillingly or otherwise. Seejteeuwen/go-bindata#5
This presents a problem as we're using
go-bindata
to embed our migration files into our Go binaries. The next best alternative is https://github.com/gobuffalo/packrDescribe the solution you'd like
Migration source support for packr boxes.
Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: