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

Cannot run executable after resources have been appended to it #15

Open
beer-psi opened this issue Dec 13, 2021 · 0 comments
Open

Cannot run executable after resources have been appended to it #15

beer-psi opened this issue Dec 13, 2021 · 0 comments

Comments

@beer-psi
Copy link

As the title have said, I have had difficulty making a self-contained executable with go.rice. The executable made with go build works fine as-is, but it cannot be run after I do rice append -v --exec linx-server:

> go build
> ./linx-server
2021/12/13 22:01:29 Serving over http, bound on 127.0.0.1:8080
> rice append -v --exec linx-server
2021/12/13 22:02:01 using pwd as import path
2021/12/13 22:02:01 using import paths: [github.com/extradummythicc/linx-server]
2021/12/13 22:02:02 Will create tmp zipfile: /tmp/ricebox-1639407722-1p2stqnrfd.zip
2021/12/13 22:02:02 Will append to file: /home/beerpsi/go/src/github.com/extradummythicc/linx-server/linx-server
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/[email protected]/auth.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/[email protected]/csp.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/[email protected]/csrf.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/[email protected]/delete.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/[email protected]/display.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/[email protected]/expiry.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/[email protected]/fileserve.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/[email protected]/headers.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/[email protected]/meta.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/[email protected]/pages.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/[email protected]/server.go"
2021/12/13 22:02:02     found box "static"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/[email protected]/templates.go"
2021/12/13 22:02:02     found box "templates"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/[email protected]/torrent.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/[email protected]/upload.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/[email protected]/util.go"
2021/12/13 22:02:02 
2021/12/13 22:02:02 
2021/12/13 22:02:02 rice finished successfully
> ./linx-server
2021/12/13 22:02:53 Error: could not load templates[Error (where: fromfile) in access.html] unable to resolve template

I've tried clean-building using Go 1.14 on GitHub Actions, it is either hit or miss whether the executable runs or returns the exact same error.

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

1 participant