You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.
I had an issue while using Packr with Gomigrate. The issue being that file content was being output twice which is a combination of how Gomigrate reads files and that virtaulfile(s) reset their internal cursror/file position to 0 after a complete read. The correct behaviour here is return 0 bytes and EOF when a file has been completely read.
The issue is better explained in the link below but can be recreated exactly in Packr.
I had an issue while using Packr with Gomigrate. The issue being that file content was being output twice which is a combination of how Gomigrate reads files and that virtaulfile(s) reset their internal cursror/file position to 0 after a complete read. The correct behaviour here is return 0 bytes and EOF when a file has been completely read.
The issue is better explained in the link below but can be recreated exactly in Packr.
GeertJohan/go.rice#108
Code (largely copied from the above link)
`var DefaultBufferSize = uint(1000000)
func main() {
box := packr.Folder("./embedded-migrate/migrations")
}`
Which outputs the file content twice.
The text was updated successfully, but these errors were encountered: