whyrusleeping / gx-go

gx subtool for golang
MIT License
80 stars 28 forks source link

object/new: 1: This command can't be called directly. Try one of its subcommands. #14

Open fiatjaf opened 8 years ago

fiatjaf commented 8 years ago

When calling gx-go import, I get this error repeatedly:

fiatjaf@cantillon ~/c/g/s/g/f/summadb> gx-go import github.com/fiatjaf/summadb
vendoring package github.com/fiatjaf/summadb
- processing dep golang.org/x/crypto for github.com/fiatjaf/summadb [1 / 11]
enter name for import 'golang.org/x/crypto' (default: 'crypto') 
- processing dep golang.org/x/net for golang.org/x/crypto [1 / 2]
- processing dep golang.org/x/net for golang.org/x/net [1 / 3]
- processing dep golang.org/x/text for golang.org/x/net [2 / 3]
- processing dep golang.org/x/text for golang.org/x/text [1 / 1]
ERROR: object/new: 1: This command can't be called directly. Try one of its subcommands. 
fiatjaf@cantillon ~/c/g/s/g/f/summadb> gx-go import github.com/fiatjaf/summadb
vendoring package github.com/fiatjaf/summadb
- processing dep github.com/docopt/docopt-go for github.com/fiatjaf/summadb [1 / 11]
- processing dep github.com/docopt/docopt-go for github.com/docopt/docopt-go [1 / 1]
ERROR: object/new: 1: This command can't be called directly. Try one of its subcommands. 
fiatjaf@cantillon ~/c/g/s/g/f/summadb> gx-go import github.com/fiatjaf/summadb
vendoring package github.com/fiatjaf/summadb
- processing dep github.com/Sirupsen/logrus for github.com/fiatjaf/summadb [1 / 11]
- processing dep github.com/stretchr/testify for github.com/Sirupsen/logrus [1 / 3]
- processing dep github.com/davecgh/go-spew for github.com/stretchr/testify [1 / 5]
enter name for import 'github.com/davecgh/go-spew' (default: 'go-spew') 
ERROR: object/new: 1: This command can't be called directly. Try one of its subcommands.

the version:

fiatjaf@cantillon ~/c/g/s/g/f/summadb> gx-go -v
gx-go version 1.2.1
fiatjaf@cantillon ~/c/g/s/g/f/summadb> ipfs version
ipfs version 0.4.2
jbenet commented 8 years ago

Yeah getting the same.

Looks like i need a running ipfs daemon. gx-go should warn me about that, and ideally provide its own?

whyrusleeping commented 7 years ago

Yeah, we need to better detect when we can do publish style commands. They cant be done against the gateways