canonical / chisel

GNU Affero General Public License v3.0
270 stars 42 forks source link

Can't install chisel #139

Closed mcollins78728 closed 3 months ago

mcollins78728 commented 3 months ago

The command to install chisel does not seem to work.

go install github.com/canonical/chisel/cmd/chisel@latest

Results in an error message

can't load package: package github.com/canonical/chisel/cmd/chisel@latest: cannot use path@version syntax in GOPATH mode

cjdcordeiro commented 3 months ago

Hi @mcollins78728

I am unable to reproduce this. Please double check your Golang version and working environment, and re-open the issue if you still encounter the problem:

root@06f4240c518b:/go# go install github.com/canonical/chisel/cmd/chisel@latest

go: downloading github.com/canonical/chisel v0.9.1
go: downloading github.com/jessevdk/go-flags v1.5.0
go: downloading golang.org/x/term v0.12.0
go: downloading golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
go: downloading github.com/blakesmith/ar v0.0.0-20190502131153-809d4375e1fb
go: downloading github.com/juju/fslock v0.0.0-20160525022230-4d5c94c67b4b
go: downloading github.com/klauspost/compress v1.15.4
go: downloading github.com/ulikunitz/xz v0.5.10
go: downloading gopkg.in/yaml.v3 v3.0.0-20220512140231-539c8e751b99
go: downloading go.starlark.net v0.0.0-20220328144851-d1966c6b9fcd
go: downloading golang.org/x/sys v0.12.0
root@06f4240c518b:/go# 
root@06f4240c518b:/go# 
root@06f4240c518b:/go# go version
go version go1.22.4 linux/amd64
root@06f4240c518b:/go# 
root@06f4240c518b:/go# 
root@06f4240c518b:/go# chisel --help
Chisel can slice a Linux distribution using a release database
and construct a new filesystem using the finely defined parts.

Usage: chisel <command> [<options>...]

Commands can be classified as follows:

   Basic: help, version
  Action: cut

For more information about a command, run 'chisel help <command>'.
For a short summary of all commands, run 'chisel help --all'.
root@06f4240c518b:/go# 

(the above snippet was executed on a fresh golang:latest container)

mcollins78728 commented 3 months ago

It looks like you are correct. I have an older version of go.