WICG / webpackage

Web packaging format
Other
1.23k stars 118 forks source link

Cannot install bundle tool "matched no packages" #875

Closed Snugug closed 1 year ago

Snugug commented 1 year ago

When attempting to install the bundle tool using the provided command go install github.com/WICG/webpackage/go/bundle/cmd/...@latest, I get the following error:

$: go install github.com/WICG/webpackage/go/bundle/cmd/...@latest
go: warning: "github.com/WICG/webpackage/go/bundle/cmd/...@latest" matched no packages

go version provides the following:

$: go version
go version go1.15.15 linux/amd64
cmfcmf commented 1 year ago

Hmm, it is working for me. I happen to be using a newer go version, though (1.21). Reading this answer, it sounds like upgrading to at least 1.18 should probably fix it for you.

If you cannot upgrade your go version, then the older go get command should probably work (commit that updated the instructions: https://github.com/WICG/webpackage/commit/fec579e4a80fce64740fb45b0b75d2ccdcf7d12d): go get -u github.com/WICG/webpackage/go/bundle/cmd/...

Snugug commented 1 year ago

Yup, it looks like go install was added in 1.18. Upgrading to that fixed the problem for me. Maybe the min Go version for that command should be included in the README for people (like me) who aren't familiar with Go but may need to use the bundler

sonkkeli commented 1 year ago

I created a https://github.com/WICG/webpackage/pull/878 now to mention the min version so closed this issue.