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

About issue #764 (Add bee generate routers command) Command is missing #4681

Closed
FWangZil opened this issue Jun 30, 2021 · 2 comments
Closed

Comments

@FWangZil
Copy link

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go and beego are you using (bee version)?
    v1.12.3

  2. What operating system and processor architecture are you using (go env)?

GO111MODULE="on"
GOARCH="amd64"
GOBIN="/Users/wang/go/bin"
GOCACHE="/Users/wang/Library/Caches/go-build"
GOENV="/Users/wang/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/wang/go/pkg/mod"
GONOPROXY="e.coding.*"
GONOSUMDB="e.coding.*"
GOOS="darwin"
GOPATH="/Users/wang/go"
GOPRIVATE="e.coding.*"
GOPROXY="https://goproxy.cn,direct"
GOROOT="/usr/local/Cellar/go/1.16.5/libexec"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.16.5/libexec/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16.5"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/1f/1pvhwc_x2z78fzht135w5sfh0000gn/T/go-build4266524057=/tmp/go-build -gno-record-gcc-switches -fno-common"
  1. What did you do?
    If possible, provide a recipe for reproducing the error.
    A complete runnable program is good.

beego/bee#762

Run this command "bee generate routers [-ctrlDir=/path/to/controller/directory] [-routersFile=/path/to/routers/file.go] [-routersPkg=myPackage]"
---> FATAL ▶ 0001 Command is missing

  1. What did you expect to see?
    The commentsRouter_controllers.go update

  2. What did you see instead?
    bee error "Command is missing"

@flycash
Copy link
Collaborator

flycash commented Jun 30, 2021

You need to upgrade your bee to develop branch. And it works for BeegoV2.

@flycash flycash closed this as completed Jun 30, 2021
@jerryrt
Copy link

jerryrt commented Apr 1, 2022

You need to upgrade your bee to develop branch. And it works for BeegoV2.

Please mention this in the release note of v2.0.2. Hit by this and took hours to dig the issue.

For late comers, this is the command to install the develop branch:

go install github.com/beego/bee/v2@develop

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

3 participants