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/linx-server@v1.3.3/auth.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/linx-server@v1.3.3/csp.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/linx-server@v1.3.3/csrf.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/linx-server@v1.3.3/delete.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/linx-server@v1.3.3/display.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/linx-server@v1.3.3/expiry.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/linx-server@v1.3.3/fileserve.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/linx-server@v1.3.3/headers.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/linx-server@v1.3.3/meta.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/linx-server@v1.3.3/pages.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/linx-server@v1.3.3/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/linx-server@v1.3.3/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/linx-server@v1.3.3/torrent.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/linx-server@v1.3.3/upload.go"
2021/12/13 22:02:02 scanning file "/home/beerpsi/go/pkg/mod/github.com/extradummythicc/linx-server@v1.3.3/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