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

Go install doesn't work #173

Open
atis2345 opened this issue Nov 11, 2021 · 3 comments
Open

Go install doesn't work #173

atis2345 opened this issue Nov 11, 2021 · 3 comments

Comments

@atis2345
Copy link

Hi guys.
I have next issue when try to install go.rice on my machine.
I'm using Windows sandbox but actually result is same even I use Ubuntu.

$ go version
go version go1.17.3 windows/amd64

$ go install github.com/GeertJohan/go.rice

$ go install github.com/GeertJohan/go.rice/rice

..\..\go\pkg\mod\github.com\!geert!johan\go.rice@v1.0.0\rice\identifier.go:6:2: missing go.sum entry for module providing package github.com/GeertJohan/go.incremental (imported by github.com/GeertJohan/go.rice/rice); to add:
        go get github.com/GeertJohan/go.rice/rice@v1.0.0
..\..\go\pkg\mod\github.com\!geert!johan\go.rice@v1.0.0\rice\flags.go:8:2: missing go.sum entry for module providing package github.com/jessevdk/go-flags (imported by github.com/GeertJohan/go.rice/rice); to add:
        go get github.com/GeertJohan/go.rice/rice@v1.0.0
..\..\go\pkg\mod\github.com\!geert!johan\go.rice@v1.0.0\rice\templates.go:11:2: missing go.sum entry for module providing package github.com/nkovacs/streamquote (imported by github.com/GeertJohan/go.rice/rice); to add:
        go get github.com/GeertJohan/go.rice/rice@v1.0.0
..\..\go\pkg\mod\github.com\!geert!johan\go.rice@v1.0.0\rice\templates.go:12:2: missing go.sum entry for module providing package github.com/valyala/fasttemplate (imported by github.com/GeertJohan/go.rice/rice); to add:
        go get github.com/GeertJohan/go.rice/rice@v1.0.0

@AndrewSav
Copy link

I came across the same issue, but there has not been any movement in this repo in the last couple of years. We have go:embed now, to which I've now migrated. It is not the same as go.rice, there are some more limitations.

There are some other packages, e.g. https://github.com/gobuffalo/packr and others, but they are all falling into disuse.

@fuji246
Copy link

fuji246 commented Jun 26, 2022

not working for go version go1.18.3

@yingshaoxo
Copy link

Here is how you use go built-in embed module:

cp -r ../client/dist ./dist
import (
	"io/fs"
)

//go:embed dist/*
var dist_storage embed.FS

dist_storage, _ := fs.Sub(dist_storage, "dist")
router.StaticFS("/ui/", http.FS(dist_storage))

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

4 participants