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

does not handle -o properly #34

Open
markfink opened this issue Mar 5, 2016 · 12 comments
Open

does not handle -o properly #34

markfink opened this issue Mar 5, 2016 · 12 comments
Assignees

Comments

@markfink
Copy link

markfink commented Mar 5, 2016

I am just getting started with your tool. Great job!

I noticed an error message when I use it for my assets:

$ go-bindata-assetfs -pkg gogrinder -o gogrinder/assetfs.go web/...
Cannot read bindata.go open bindata.go: no such file or directory

creates the asset file but this is section missing:

func assetFS() *assetfs.AssetFS {
    for k := range _bintree.Children {
        return &assetfs.AssetFS{Asset: Asset, AssetDir: AssetDir, AssetInfo: AssetInfo, Prefix: k}
    }
    panic("unreachable")
}
@elazarl
Copy link
Owner

elazarl commented Mar 6, 2016

Hi,

I'll look into it, but I seriously suggest to you moving to rice.go, it looks like a better solution which I was not aware of when starting this project.

@markfink
Copy link
Author

markfink commented Mar 6, 2016

hmm. I moved to here because go.rice is a bit buggy and apparently dead GeertJohan/go.rice#79

@andreynering
Copy link

I'm also having problems with the -o flag:

//go:generate go-bindata-assetfs -nometadata -pkg mypkg -o ./bindata/mypkg/myfile.go public/bundle

I'm facing the following error:

Cannot read bindata.go open bindata.go: O sistema não pode encontrar o arquivo especificado.

Works OK without the flag. I'm on Windows.

@donatj
Copy link

donatj commented Sep 9, 2016

I'm getting the same issue:

» go-bindata-assetfs -o ./assets.go  assets                   1↵ 16:26:08
Cannot read bindata.go open bindata.go: no such file or directory

@binary132
Copy link

ditto

@andreynering
Copy link

For anyone looking for an alternative, fileb0x is much more stable and complete. I moved to it.

@codeskyblue
Copy link

+1 about

Cannot read bindata.go open bindata.go: no such file or directory

@elazarl
Copy link
Owner

elazarl commented Oct 25, 2016

I'd also mention rice.go which I personally use.
One of the reasons I'm not putting too much effort in this project, is
because there are better alternative available.
I'm still keeping it, since some people depend on it, but I'm trying not to
break things, and I only accept PR, and do not invest in it myself.
At the time I wrote this project, those other projects didn't exist (or
maybe they didn't but I didn't find them).

On Thu, Oct 20, 2016 at 11:15 PM Andrey Nering notifications@github.com
wrote:

For anyone looking for an alternative, fileb0x
https://github.com/UnnoTed/fileb0x is much more stable and complete. I
moved to it.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#34 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAP4on8NyrxPTDS4V9f9ai_GQ7MEUMYpks5q18vqgaJpZM4Hp8Xf
.

@codeskyblue
Copy link

so which project do you suggest?

@iiinsomnia
Copy link

+1

Cannot read bindata.go open bindata.go: no such file or directory

@sunshinekitty
Copy link

I had issues with the index route on my Vue app infinitely redirecting to "..//" while using this to embed my assets. I've moved to https://github.com/UnnoTed/fileb0x which works fine.

@mfindlater mfindlater self-assigned this Feb 23, 2018
@tsarna
Copy link

tsarna commented Jul 11, 2020

Look like a fix was merged, we just need a new release that contains it.

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

10 participants