Saturday, May 18, 2024
HomeGolangBeego flag redefined: sleek - Getting Assist

Beego flag redefined: sleek – Getting Assist


Hello! I’ve easy mvc beego. And when I attempt to add my package deal I obtain such error. For the primary time I confronted with this downside once I added cron (third-party performance).
I’ve run into this downside twice and don’t perceive what I’m doing flawed?
I’m positive this isn’t code downside, possibly battle with my $GOPATH or one thing any.

go env

jk@jk-MS-7B00:/usr/native/go/src$ go env
GO111MODULE="auto"
GOARCH="amd64"
GOBIN=""
GOCACHE="/dwelling/jk/.cache/go-build"
GOENV="/dwelling/jk/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/dwelling/jk/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/dwelling/jk/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/native/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/native/go/pkg/device/linux_amd64"
GOVCS=""
GOVERSION="go1.20"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/usr/native/go/src/go.mod"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1501291865=/tmp/go-build -gno-record-gcc-switches"

echo $PATH

jk@jk-MS-7B00:/usr/native/go/src$ echo $PATH
/usr/native/sbin:/usr/native/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/video games:/usr/native/video games:/snap/bin:/dwelling/jk/go/bin:/usr/native/go/bin

I pushed this commit with error. Could also be somebody needs to attempt to run. If you’ll take away package deal fashions from controllers/default.go all will likely be okay.

git clone https://github.com/NeverhoodRUS/TFOMS.git

Hello @Neverhood ,

I get the identical error once I open your mission in GitPod.

sleek is a Beego flag.

The go.mod file requires Beego v1.12.12 and Beego v2.0.1 on the identical time.

I might guess that that is the supply of the error. Attempt utilizing just one model of Beego and confirm if this eliminates the error.


Replace: Yep, after I modified "github.com/beego/beego" to "github.com/beego/beego/v2" in abstractDB.go (the one file that imports v1 of Beego), the error vanished. (I get follow-up errors as an alternative, however that’s a distinct matter.)

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments